| @@ -73,9 +73,8 @@ | ||
| 73 | 73 | 'desc' => __( 'Type of displaying', 'tier-pricing-table' ), |
| 74 | 74 | 'desc_tip' => true, |
| 75 | 75 | 'default' => 'table', |
| 76 | 76 | ], |
| 77 | - | |
| 78 | 77 | [ |
| 79 | 78 | 'title' => __( 'Tooltip icon color', 'tier-pricing-table' ), |
| 80 | 79 | 'id' => self::SETTINGS_PREFIX . 'tooltip_color', |
| 81 | 80 | 'type' => 'color', |
| @@ -157,18 +156,8 @@ | ||
| 157 | 156 | 'desc' => __( 'Add your own CSS styles for the class. The class would be added to the table.', |
| 158 | 157 | 'tier-pricing-table' ), |
| 159 | 158 | 'desc_tip' => true, |
| 160 | 159 | ], |
| 161 | - array( | |
| 162 | - 'title' => __( 'Summarize all variation during calculation product variation tiered price', | |
| 163 | - 'tier-pricing-table' ), | |
| 164 | - 'id' => self::SETTINGS_PREFIX . 'summarize_variations', | |
| 165 | - 'type' => 'checkbox', | |
| 166 | - 'default' => 'no', | |
| 167 | - 'desc' => __( 'Add all variations quantity to calculate actual tiered price for product variation.', | |
| 168 | - 'tier-pricing-table' ), | |
| 169 | - 'desc_tip' => true, | |
| 170 | - ), | |
| 171 | 160 | [ |
| 172 | 161 | 'type' => 'sectionend', |
| 173 | 162 | 'id' => self::SETTINGS_PREFIX . 'options' |
| 174 | 163 | ], |
| @@ -280,90 +269,8 @@ | ||
| 280 | 269 | [ |
| 281 | 270 | 'type' => 'sectionend', |
| 282 | 271 | 'id' => self::SETTINGS_PREFIX . 'premium_options' |
| 283 | 272 | ], |
| 284 | - // Summary section | |
| 285 | - array( | |
| 286 | - 'title' => __( 'Summary block', 'tier-pricing-table' ), | |
| 287 | - 'id' => self::SETTINGS_PREFIX . 'summary_section', | |
| 288 | - 'type' => 'title', | |
| 289 | - 'desc' => __( 'Section controls how summary block at a product page.', | |
| 290 | - 'tier-pricing-table' ), | |
| 291 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 292 | - ), | |
| 293 | - array( | |
| 294 | - 'title' => __( 'Show summary block', | |
| 295 | - 'tier-pricing-table' ), | |
| 296 | - 'id' => self::SETTINGS_PREFIX . 'display_summary', | |
| 297 | - 'type' => 'checkbox', | |
| 298 | - 'default' => 'yes', | |
| 299 | - 'desc' => __( 'Show summary block at a product page. Display information about actual unit price, product quantity and total', | |
| 300 | - 'tier-pricing-table' ), | |
| 301 | - 'desc_tip' => true, | |
| 302 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 303 | - ), | |
| 304 | - array( | |
| 305 | - 'title' => __( 'Summary block title', 'tier-pricing-table' ), | |
| 306 | - 'id' => self::SETTINGS_PREFIX . 'summary_title', | |
| 307 | - 'type' => 'text', | |
| 308 | - 'desc' => __( 'The name is displaying above the summary block.', 'tier-pricing-table' ), | |
| 309 | - 'desc_tip' => true, | |
| 310 | - 'default' => '', | |
| 311 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 312 | - ), | |
| 313 | - array( | |
| 314 | - 'title' => __( 'Summary block type', 'tier-pricing-table' ), | |
| 315 | - 'id' => self::SETTINGS_PREFIX . 'summary_type', | |
| 316 | - 'type' => 'select', | |
| 317 | - 'options' => array( | |
| 318 | - 'table' => __( 'Table', 'tier-pricing-table' ), | |
| 319 | - 'inline' => __( 'Inline', 'tier-pricing-table' ), | |
| 320 | - ), | |
| 321 | - 'desc' => __( 'Type of displaying.', 'tier-pricing-table' ), | |
| 322 | - 'desc_tip' => true, | |
| 323 | - 'default' => 'table', | |
| 324 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 325 | - ), | |
| 326 | - array( | |
| 327 | - 'title' => __( '"Total" label', 'tier-pricing-table' ), | |
| 328 | - 'id' => self::SETTINGS_PREFIX . 'summary_total_label', | |
| 329 | - 'type' => 'text', | |
| 330 | - 'default' => __( 'Total:', 'tier-pricing-table' ), | |
| 331 | - 'desc' => __( 'Label for the "total" line.', 'tier-pricing-table' ), | |
| 332 | - 'desc_tip' => true, | |
| 333 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 334 | - ), | |
| 335 | - array( | |
| 336 | - 'title' => __( '"Each" label', 'tier-pricing-table' ), | |
| 337 | - 'id' => self::SETTINGS_PREFIX . 'summary_each_label', | |
| 338 | - 'type' => 'text', | |
| 339 | - 'default' => __( 'Each: ', 'tier-pricing-table' ), | |
| 340 | - 'desc' => __( 'Label for the "each" line.', 'tier-pricing-table' ), | |
| 341 | - 'desc_tip' => true, | |
| 342 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 343 | - ), | |
| 344 | - array( | |
| 345 | - 'title' => __( 'Summary position', 'tier-pricing-table' ), | |
| 346 | - 'id' => self::SETTINGS_PREFIX . 'summary_position_hook', | |
| 347 | - 'type' => 'select', | |
| 348 | - 'options' => array( | |
| 349 | - 'woocommerce_before_add_to_cart_button' => __( 'Above buy button', 'tier-pricing-table' ), | |
| 350 | - 'woocommerce_after_add_to_cart_button' => __( 'Below buy button', 'tier-pricing-table' ), | |
| 351 | - 'woocommerce_before_add_to_cart_form' => __( 'Above add to cart form', 'tier-pricing-table' ), | |
| 352 | - 'woocommerce_after_add_to_cart_form' => __( 'Below add to cart form', 'tier-pricing-table' ), | |
| 353 | - 'woocommerce_single_product_summary' => __( 'Above product title', 'tier-pricing-table' ), | |
| 354 | - 'woocommerce_before_single_product_summary' => __( 'Before product summary', 'tier-pricing-table' ), | |
| 355 | - 'woocommerce_after_single_product_summary' => __( 'After product summary', 'tier-pricing-table' ), | |
| 356 | - ), | |
| 357 | - 'default' => 'woocommerce_after_add_to_cart_button', | |
| 358 | - 'desc' => __( 'Where to display the summary block.', 'tier-pricing-table' ), | |
| 359 | - 'desc_tip' => true, | |
| 360 | - 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 361 | - ), | |
| 362 | - array( | |
| 363 | - 'type' => 'sectionend', | |
| 364 | - 'id' => self::SETTINGS_PREFIX . 'premium_options' | |
| 365 | - ), | |
| 366 | 273 | ); |
| 367 | 274 | } |
| 368 | 275 | |
| 369 | 276 | /** |
| @@ -424,9 +331,8 @@ | ||
| 424 | 331 | |
| 425 | 332 | /* Premium */ |
| 426 | 333 | 'show_discount_in_cart' => $this->get( 'show_discount_in_cart', 'yes' ), |
| 427 | 334 | 'tiered_price_at_catalog' => $this->get( 'tiered_price_at_catalog', 'yes' ), |
| 428 | - 'tiered_price_at_product_page' => $this->get( 'tiered_price_at_product_page', 'no' ), | |
| 429 | 335 | 'tiered_price_at_catalog_for_variable' => $this->get( 'tiered_price_at_catalog_for_variable', 'yes' ), |
| 430 | 336 | 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ), |
| 431 | 337 | 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ), |
| 432 | 338 | 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ), |