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/RoleBasedPricing/RoleBasedPricingAddon.php +6 -2 6.1.0 → 8.0.2 View file →
@@ -8,9 +8,9 @@
8 8 class RoleBasedPricingAddon extends AbstractAddon {
9 9 const SETTING_ENABLE_KEY = 'enable_role_based_pricing_addon';
10 10
11 11 public function getName() : string {
12 - return __( 'Product level role-based pricing rules', 'tier-pricing-table' );
12 + return __( 'Role-based pricing rules on individual products', 'tier-pricing-table' );
13 13 }
14 14
15 15 public function isActive() : bool {
16 16 return $this->getContainer()->getSettings()->get( self::SETTING_ENABLE_KEY, 'yes' ) === 'yes';
@@ -16,9 +16,13 @@
16 16 return $this->getContainer()->getSettings()->get( self::SETTING_ENABLE_KEY, 'yes' ) === 'yes';
17 17 }
18 18
19 19 public function getDescription() : string {
20 - return __( 'Enable role-based pricing rules at the product level. Disabling this will not affect role-based functionality for global pricing rules.', 'tier-pricing-table' );
20 + return __( 'Enable role-based pricing rules on individual products.', 'tier-pricing-table' );
21 + }
22 +
23 + public function getIcon() : string {
24 + return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>';
21 25 }
22 26
23 27 public function getSlug() : string {
24 28 return 'role-based-rules';