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/CatalogPricesService.php +3 -7 6.4.0 → 8.0.2 View file →
@@ -15,15 +15,8 @@
15 15 */
16 16 class CatalogPricesService {
17 17 use ServiceContainerTrait;
18 18 /**
19 - * Price hash
20 - *
21 - * @var string
22 - */
23 - private $variablePriceHash;
24 -
25 - /**
26 19 * CatalogPriceManager constructor.
27 20 */
28 21 public function __construct() {
29 22 if ( !$this->isEnabled() ) {
@@ -43,8 +36,11 @@
43 36 return $defaultPriceHTML;
44 37 }
45 38 // Do not modify price in quick edit and inline edit in admin
46 39 if ( isset( $_POST['action'] ) && in_array( $_POST['action'], ['inline-save'], true ) ) {
40 + return $defaultPriceHTML;
41 + }
42 + if ( isset( $GLOBALS['TPT_DISABLE_CATALOG_PRICE_FORMAT'] ) ) {
47 43 return $defaultPriceHTML;
48 44 }
49 45 $currentProductPageProductId = get_queried_object_id();
50 46 $parentProductId = ( $product->is_type( 'variation' ) ? $product->get_parent_id() : $product->get_id() );