| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | public function initSettings() { |
| 48 | 48 | $this->settings = array( |
| 49 | 49 | [ |
| 50 | 50 | 'title' => __( 'Tiered price table settings', 'tier-pricing-table' ), |
| 51 | - 'desc' => __( 'This controls how tiered pricing table will be displayed at product page', | |
| 51 | + 'desc' => __( 'This controls how tiered pricing table will be displayed in your store', | |
| 52 | 52 | 'tier-pricing-table' ), |
| 53 | 53 | 'id' => self::SETTINGS_PREFIX . 'options', |
| 54 | 54 | 'type' => 'title', |
| 55 | 55 | ], |
| @@ -160,8 +160,9 @@ | ||
| 160 | 160 | [ |
| 161 | 161 | 'type' => 'sectionend', |
| 162 | 162 | 'id' => self::SETTINGS_PREFIX . 'options' |
| 163 | 163 | ], |
| 164 | + | |
| 164 | 165 | // Premium Here |
| 165 | 166 | [ |
| 166 | 167 | 'title' => __( 'Advanced settings', 'tier-pricing-table' ), |
| 167 | 168 | 'id' => self::SETTINGS_PREFIX . 'premium_options', |
| @@ -177,24 +178,35 @@ | ||
| 177 | 178 | 'desc_tip' => true, |
| 178 | 179 | 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => 'yes' ] |
| 179 | 180 | ], |
| 180 | 181 | [ |
| 181 | - 'title' => __( 'Enable Catalog Tiered Pricing for Products', 'tier-pricing-table' ), | |
| 182 | + 'title' => __( 'Enable price formatting on the catalog page, widgets, etc', | |
| 183 | + 'tier-pricing-table' ), | |
| 182 | 184 | 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog', |
| 183 | 185 | 'type' => 'checkbox', |
| 184 | 186 | 'default' => 'yes', |
| 185 | - 'desc' => __( 'Shows Tiered Pricing at the Catalog', | |
| 187 | + 'desc' => __( 'Change price formatting on the whole site (show range or minimal price)', | |
| 186 | 188 | 'tier-pricing-table' ), |
| 187 | 189 | 'desc_tip' => true, |
| 188 | 190 | 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] |
| 189 | 191 | ], |
| 190 | 192 | [ |
| 191 | - 'title' => __( 'Enable Catalog Tiered Pricing for Variable Products', | |
| 193 | + 'title' => __( 'Enable price formatting on product page ', 'tier-pricing-table' ), | |
| 194 | + 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_product_page', | |
| 195 | + 'type' => 'checkbox', | |
| 196 | + 'default' => 'no', | |
| 197 | + 'desc' => __( 'Change price for product at product page (show range or minimal price)', | |
| 192 | 198 | 'tier-pricing-table' ), |
| 199 | + 'desc_tip' => true, | |
| 200 | + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 201 | + ], | |
| 202 | + [ | |
| 203 | + 'title' => __( 'Enable catalog, widget price formatting for variable products', | |
| 204 | + 'tier-pricing-table' ), | |
| 193 | 205 | 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_for_variable', |
| 194 | 206 | 'type' => 'checkbox', |
| 195 | 207 | 'default' => 'yes', |
| 196 | - 'desc' => __( 'Shows tiered price at the catalog for variable products. Uses the lowest and the highest prices from all variations', | |
| 208 | + 'desc' => __( 'Show tiered price at the catalog for variable products. Uses the lowest and the highest prices from all variations', | |
| 197 | 209 | 'tier-pricing-table' ), |
| 198 | 210 | 'desc_tip' => true, |
| 199 | 211 | 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] |
| 200 | 212 | ], |
| @@ -236,9 +248,9 @@ | ||
| 236 | 248 | 'desc_tip' => true, |
| 237 | 249 | 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] |
| 238 | 250 | ], |
| 239 | 251 | [ |
| 240 | - 'title' => __( 'Change Quantity on Click', 'tier-pricing-table' ), | |
| 252 | + 'title' => __( 'Set tiered price on click', 'tier-pricing-table' ), | |
| 241 | 253 | 'id' => self::SETTINGS_PREFIX . 'clickable_table_rows', |
| 242 | 254 | 'type' => 'checkbox', |
| 243 | 255 | 'default' => 'no', |
| 244 | 256 | 'desc' => __( 'Change product quantity on click at table pricing row', |
| @@ -245,8 +257,17 @@ | ||
| 245 | 257 | 'tier-pricing-table' ), |
| 246 | 258 | 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] |
| 247 | 259 | ], |
| 248 | 260 | [ |
| 261 | + 'title' => __( 'Show total price', 'tier-pricing-table' ), | |
| 262 | + 'id' => self::SETTINGS_PREFIX . 'show_total_price', | |
| 263 | + 'type' => 'checkbox', | |
| 264 | + 'default' => 'no', | |
| 265 | + 'desc' => __( 'Calculate and show total price at product page', | |
| 266 | + 'tier-pricing-table' ), | |
| 267 | + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ] | |
| 268 | + ], | |
| 269 | + [ | |
| 249 | 270 | 'type' => 'sectionend', |
| 250 | 271 | 'id' => self::SETTINGS_PREFIX . 'premium_options' |
| 251 | 272 | ], |
| 252 | 273 | ); |
| @@ -315,8 +336,9 @@ | ||
| 315 | 336 | 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ), |
| 316 | 337 | 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ), |
| 317 | 338 | 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ), |
| 318 | 339 | 'clickable_table_rows' => $this->get( 'clickable_table_rows', 'no' ), |
| 340 | + 'show_total_price' => $this->get( 'show_total_price', 'no' ), | |
| 319 | 341 | 'head_discount_text' => $this->get( 'head_discount_text', |
| 320 | 342 | __( 'Discount (%)', 'tier-pricing-table' ) ), |
| 321 | 343 | ]; |
| 322 | 344 | } |