PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.1
Tiered Pricing Table for WooCommerce v7.1.1
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
tier-pricing-table / src / Addons / CatalogPrices / CatalogPricesAddon.php

CatalogPricesAddon.php in Tiered Pricing Table for WooCommerce 7.1.1, at src/Addons/CatalogPrices/CatalogPricesAddon.php

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\CatalogPrices;
2
3 use TierPricingTable\Addons\AbstractAddon;
4
5 class CatalogPricesAddon extends AbstractAddon {
6
7 public function getName(): string {
8 return __( 'Shop & Categories Price Format', 'tier-pricing-table' );
9 }
10
11 public function getDescription() {
12 return __( 'Manage how tiered pricing appears in catalogs, loops, and widgets.', 'tier-pricing-table' );
13 }
14
15 public function getIcon(): string {
16 return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z"/></svg>';
17 }
18
19 public function getSlug() {
20 return 'catalog-prices';
21 }
22
23 public function run() {
24 $this->getContainer()->initService( CatalogPricesService::class );
25 add_filter( 'tiered_pricing_table/settings/general_subsections', array( $this, 'addSettingsSubsection' ) );
26 }
27
28 public function addSettingsSubsection( $subsections ) {
29 $subsections[] = CatalogPricesSubsection::class;
30 return $subsections;
31 }
32 }
33