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/CatalogPrices/CatalogPricesAddon.php +8 -2 6.4.0 → 8.0.2 View file →
@@ -1,12 +1,13 @@
1 1 <?php namespace TierPricingTable\Addons\CatalogPrices;
2 2
3 3 use TierPricingTable\Addons\AbstractAddon;
4 +use TierPricingTable\Addons\LayoutConfigurator\LayoutConfiguratorAddon;
4 5
5 6 class CatalogPricesAddon extends AbstractAddon {
6 7
7 - public function getName() {
8 - return __( 'Catalog Price Format', 'tier-pricing-table' );
8 + public function getName(): string {
9 + return __( 'Shop & Categories Price Format', 'tier-pricing-table' );
9 10 }
10 11
11 12 public function getDescription() {
12 13 return __( 'Manage how tiered pricing appears in catalogs, loops, and widgets.', 'tier-pricing-table' );
@@ -25,8 +26,13 @@
25 26 add_filter( 'tiered_pricing_table/settings/general_subsections', array( $this, 'addSettingsSubsection' ) );
26 27 }
27 28
28 29 public function addSettingsSubsection( $subsections ) {
30 + // the layout configurator carries these options while it is on
31 + if ( LayoutConfiguratorAddon::isActive() ) {
32 + return $subsections;
33 + }
34 +
29 35 $subsections[] = CatalogPricesSubsection::class;
30 36 return $subsections;
31 37 }
32 38 }