PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | src/Addons/YouSave/YouSaveSubsection.php +16 -7 6.4.0 → 8.0.2 View file →
@@ -11,9 +11,10 @@
11 11 return __( '"You Save" Badge', 'tier-pricing-table' );
12 12 }
13 13
14 14 public function getDescription(): string {
15 - return __( 'Show customers exactly how much they save when tiered discounts are applied.', 'tier-pricing-table' );
15 + return __( 'Show customers exactly how much they save when tiered discounts are applied.',
16 + 'tier-pricing-table' );
16 17 }
17 18
18 19 public function getSlug(): string {
19 20 return 'you_save';
@@ -21,9 +22,9 @@
21 22
22 23 public function getSettings(): array {
23 24 return array(
24 25 array(
25 - 'title' => __( 'Enable "You Save" badge', 'tier-pricing-table' ),
26 + 'title' => __( 'Show savings badge on product page', 'tier-pricing-table' ),
26 27 'id' => Settings::SETTINGS_PREFIX . 'you_save_enabled',
27 28 'type' => TPTSwitchOption::FIELD_TYPE,
28 29 'default' => 'yes',
29 30 'desc' => __( 'Show the difference between the regular price and a discounted price. You can also show it via the [tiered_price_you_save] shortcode.',
@@ -29,19 +30,27 @@
29 30 'desc' => __( 'Show the difference between the regular price and a discounted price. You can also show it via the [tiered_price_you_save] shortcode.',
30 31 'tier-pricing-table' ),
31 32 ),
32 33 array(
33 - 'title' => __( 'Include sale price in calculation', 'tier-pricing-table' ),
34 + 'title' => __( 'Include WooCommerce sale discount in total savings', 'tier-pricing-table' ),
34 35 'id' => Settings::SETTINGS_PREFIX . 'you_save_consider_sale_price',
35 36 'type' => TPTSwitchOption::FIELD_TYPE,
36 37 'default' => 'yes',
37 - 'desc' => __( 'The difference between the regular and sale price will be included in the “you save” calculation.',
38 + 'desc' => __( 'If a product is already on sale, add that existing discount to the tiered pricing savings so the customer sees one large total saved.',
38 39 'tier-pricing-table' ),
39 40 ),
40 41 array(
41 - 'title' => __( 'Template', 'tier-pricing-table' ),
42 + 'title' => __( 'Show badge for standard products (non-tiered)', 'tier-pricing-table' ),
43 + 'id' => Settings::SETTINGS_PREFIX . 'you_save_non_tiered',
44 + 'type' => TPTSwitchOption::FIELD_TYPE,
45 + 'default' => 'no',
46 + 'desc' => __( 'Display the savings badge for regular WooCommerce sale products even if they don\'t have tiered pricing rules.',
47 + 'tier-pricing-table' ),
48 + ),
49 + array(
50 + 'title' => __( 'Badge text template', 'tier-pricing-table' ),
42 51 'id' => Settings::SETTINGS_PREFIX . 'you_save_template',
43 - 'default' => __( 'You save {tp_ys_total_price} ({tp_ys_percentage_discount}%)', 'tier-pricing-table' ),
52 + 'default' => __( 'You save {tp_ys_total_price}', 'tier-pricing-table' ),
44 53 'placeholders' => array(
45 54 'tp_ys_price',
46 55 'tp_ys_total_price',
47 56 'tp_ys_percentage_discount',
@@ -48,9 +57,9 @@
48 57 ),
49 58 'type' => TPTTextTemplate::FIELD_TYPE,
50 59 ),
51 60 array(
52 - 'title' => __( '"You save" price color', 'tier-pricing-table' ),
61 + 'title' => __( 'Badge text color', 'tier-pricing-table' ),
53 62 'id' => Settings::SETTINGS_PREFIX . 'you_save_text_color',
54 63 'type' => 'color',
55 64 'css' => 'width:6em;',
56 65 'default' => '#FF0000',