| @@ -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() ); |