← All changes
|
src/Addons/GlobalTieredPricing/CPT/Form/Tabs/Settings.php
+25
-25
6.1.0
→
8.1.0
View file →
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | return __( 'Priority Settings', 'tier-pricing-table' ); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | public function getDescription(): string { |
| 17 | - return __( 'Handle pricing collisions with product-level prices.', 'tier-pricing-table' ); | |
| 17 | + return __( 'Manage how this rule interacts with product-level settings', 'tier-pricing-table' ); | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function render( GlobalPricingRule $pricingRule ) { |
| 21 | 21 | |
| @@ -20,21 +20,21 @@ | ||
| 20 | 20 | public function render( GlobalPricingRule $pricingRule ) { |
| 21 | 21 | |
| 22 | 22 | $this->renderSectionTitle( __( 'Priority Settings', 'tier-pricing-table' ) ); |
| 23 | 23 | |
| 24 | - $this->renderHint( __( 'Control how this global pricing rule behaves in case of collisions with product-level rules.', | |
| 24 | + $this->renderHint( __( 'Determine which rules take precedence when a product has both global and individual settings.', | |
| 25 | 25 | 'tier-pricing-table' ) ); |
| 26 | 26 | |
| 27 | 27 | $this->renderRadioOptions( array( |
| 28 | 28 | 'id' => '_tpt_settings_priority_type', |
| 29 | - 'title' => __( 'Pricing rule priority', 'tier-pricing-table' ), | |
| 29 | + 'title' => __( 'Rule priority', 'tier-pricing-table' ), | |
| 30 | 30 | 'options' => array( |
| 31 | 31 | 'default' => __( 'Use global settings', 'tier-pricing-table' ), |
| 32 | - 'prefer-product' => __( 'Product-level rules take priority over this global rule.', | |
| 32 | + 'prefer-product' => __( 'Prefer product-level rules', | |
| 33 | 33 | 'tier-pricing-table' ), |
| 34 | - 'override' => __( 'This rule takes priority over any product-level pricing rules', | |
| 34 | + 'override' => __( 'Override product-level rules', | |
| 35 | 35 | 'tier-pricing-table' ), |
| 36 | - 'flexible' => __( 'Flexible: set priorities for the pricing rule parts individually.', | |
| 36 | + 'flexible' => __( 'Custom component priorities', | |
| 37 | 37 | 'tier-pricing-table' ), |
| 38 | 38 | ), |
| 39 | 39 | 'value' => $pricingRule->getSettings()->getPriorityType(), |
| 40 | 40 | ) ); |
| @@ -42,31 +42,31 @@ | ||
| 42 | 42 | ?> |
| 43 | 43 | |
| 44 | 44 | <div class="tpt_settings_advanced_priority_settings hidden"> |
| 45 | 45 | <?php |
| 46 | - $this->renderSectionTitle( __( 'Regular prices priority', 'tier-pricing-table' ) ); | |
| 46 | + $this->renderSectionTitle( __( 'Base Prices Priority', 'tier-pricing-table' ) ); | |
| 47 | 47 | ?> |
| 48 | 48 | <div class="tpt_settings_regular_pricing"> |
| 49 | 49 | <?php |
| 50 | 50 | $this->renderRadioOptions( array( |
| 51 | 51 | 'id' => '_tpt_settings_regular_pricing_priority_type', |
| 52 | - 'title' => __( 'Regular prices priority', 'tier-pricing-table' ), | |
| 52 | + 'title' => __( 'Base prices', 'tier-pricing-table' ), | |
| 53 | 53 | 'options' => array( |
| 54 | - 'prefer-role-based-product' => __( 'Prefer role-based product-level regular prices if they exist.', | |
| 54 | + 'prefer-role-based-product' => __( 'Prefer product-level role prices', | |
| 55 | 55 | 'tier-pricing-table' ), |
| 56 | - 'override' => __( 'Override any product-level regular prices with the prices set in this rule.', | |
| 56 | + 'override' => __( 'Override all product-level prices', | |
| 57 | 57 | 'tier-pricing-table' ), |
| 58 | 58 | ), |
| 59 | 59 | 'value' => $pricingRule->getSettings()->getRegularPricingPriority(), |
| 60 | 60 | ) ); |
| 61 | 61 | |
| 62 | - $this->renderHint( __( 'If a product has role-based pricing set at the product level, you can prefer those regular prices over the ones set in this global rule.', | |
| 62 | + $this->renderHint( __( 'Prioritize product-specific role pricing over this global rule.', | |
| 63 | 63 | 'tier-pricing-table' ) ); |
| 64 | 64 | ?> |
| 65 | 65 | </div> |
| 66 | 66 | |
| 67 | 67 | <?php |
| 68 | - $this->renderSectionTitle( __( 'Tiered pricing priority', 'tier-pricing-table' ) ); | |
| 68 | + $this->renderSectionTitle( __( 'Tiered Prices Priority', 'tier-pricing-table' ) ); | |
| 69 | 69 | ?> |
| 70 | 70 | |
| 71 | 71 | <div class="tpt_settings_tiered_pricing"> |
| 72 | 72 | <?php |
| @@ -71,15 +71,15 @@ | ||
| 71 | 71 | <div class="tpt_settings_tiered_pricing"> |
| 72 | 72 | <?php |
| 73 | 73 | $this->renderRadioOptions( array( |
| 74 | 74 | 'id' => '_tpt_settings_tiered_pricing_priority_type', |
| 75 | - 'title' => __( 'Tiered pricing priority', 'tier-pricing-table' ), | |
| 75 | + 'title' => __( 'Tiered prices', 'tier-pricing-table' ), | |
| 76 | 76 | 'options' => array( |
| 77 | - 'prefer-product' => __( 'Prefer any product-level tiered prices if they exist.', | |
| 77 | + 'prefer-product' => __( 'Prefer product-level tiers', | |
| 78 | 78 | 'tier-pricing-table' ), |
| 79 | - 'prefer-role-based-product' => __( 'Prefer only role-based product-level tiered pricing if they exist.', | |
| 79 | + 'prefer-role-based-product' => __( 'Prefer product-level role tiers', | |
| 80 | 80 | 'tier-pricing-table' ), |
| 81 | - 'override' => __( 'Override any product-level tiered prices with the prices set in this rule.', | |
| 81 | + 'override' => __( 'Override all product-level tiers', | |
| 82 | 82 | 'tier-pricing-table' ), |
| 83 | 83 | ), |
| 84 | 84 | 'value' => $pricingRule->getSettings()->getTieredPricingPriority(), |
| 85 | 85 | ) ); |
| @@ -84,22 +84,22 @@ | ||
| 84 | 84 | 'value' => $pricingRule->getSettings()->getTieredPricingPriority(), |
| 85 | 85 | ) ); |
| 86 | 86 | |
| 87 | 87 | $this->renderCheckbox( array( |
| 88 | - 'title' => __( 'Mix and Match', 'tier-pricing-table' ), | |
| 88 | + 'title' => __( 'Mix & Match', 'tier-pricing-table' ), | |
| 89 | 89 | 'id' => '_tpt_settings_tiered_pricing_allow_mix_and_match', |
| 90 | 90 | 'value' => $pricingRule->getSettings()->isAllowTieredPricingMixAndMatch(), |
| 91 | - 'label' => __( 'Allow the "Mix and Match" pricing strategy (if selected) for tiered prices inherited from the product level.', | |
| 91 | + 'label' => __( 'Enable Mix & Match for product-level tiers', | |
| 92 | 92 | 'tier-pricing-table' ), |
| 93 | 93 | ) ); |
| 94 | 94 | |
| 95 | - $this->renderHint( __( 'If a product has tiered pricing set at the product level, you can prefer those tiered prices over the ones set in this global rule. You can also enable the "Mix and Match" pricing strategy for tiered prices inherited from the product level.', | |
| 95 | + $this->renderHint( __( 'Prioritize product-specific tiered pricing over this global rule, and optionally enable Mix & Match for those inherited tiers.', | |
| 96 | 96 | 'tier-pricing-table' ) ); |
| 97 | 97 | ?> |
| 98 | 98 | </div> |
| 99 | 99 | |
| 100 | 100 | <?php |
| 101 | - $this->renderSectionTitle( __( 'Quantity limits priority', 'tier-pricing-table' ) ); | |
| 101 | + $this->renderSectionTitle( __( 'Quantity Limits Priority', 'tier-pricing-table' ) ); | |
| 102 | 102 | ?> |
| 103 | 103 | |
| 104 | 104 | <div class="tpt_settings_quantity_limits"> |
| 105 | 105 | <?php |
| @@ -104,21 +104,21 @@ | ||
| 104 | 104 | <div class="tpt_settings_quantity_limits"> |
| 105 | 105 | <?php |
| 106 | 106 | $this->renderRadioOptions( array( |
| 107 | 107 | 'id' => '_tpt_settings_quantity_limits_priority_type', |
| 108 | - 'title' => __( 'Quantity limits priority', 'tier-pricing-table' ), | |
| 108 | + 'title' => __( 'Quantity limits', 'tier-pricing-table' ), | |
| 109 | 109 | 'options' => array( |
| 110 | - 'prefer-product' => __( 'Prefer any product-level quantity limits if they exist.', | |
| 110 | + 'prefer-product' => __( 'Prefer product-level limits', | |
| 111 | 111 | 'tier-pricing-table' ), |
| 112 | - 'prefer-role-based-product' => __( 'Prefer only role-based product-level quantity limits if they exist.', | |
| 112 | + 'prefer-role-based-product' => __( 'Prefer product-level role limits', | |
| 113 | 113 | 'tier-pricing-table' ), |
| 114 | - 'override' => __( 'Override any product-level quantity limits with the limits set in this rule.', | |
| 114 | + 'override' => __( 'Override all product-level limits', | |
| 115 | 115 | 'tier-pricing-table' ), |
| 116 | 116 | ), |
| 117 | 117 | 'value' => $pricingRule->getSettings()->getQuantityLimitsPriority(), |
| 118 | 118 | ) ); |
| 119 | 119 | |
| 120 | - $this->renderHint( __( 'If a product has quantity limits set at the product level, you can prefer those quantity limits over the ones set in this global rule.', | |
| 120 | + $this->renderHint( __( 'Prioritize product-specific quantity limits over this global rule.', | |
| 121 | 121 | 'tier-pricing-table' ) ); |
| 122 | 122 | ?> |
| 123 | 123 | </div> |
| 124 | 124 | </div> |