| @@ -39,12 +39,10 @@ | ||
| 39 | 39 | * @return string |
| 40 | 40 | */ |
| 41 | 41 | public function formatPrice( $priceHtml, $product ) { |
| 42 | 42 | |
| 43 | - $product_id = $product->is_type('variation') ? $product->get_parent_id() : $product->get_id(); | |
| 44 | - | |
| 45 | 43 | $formatCondition = $this->settings->get( 'tiered_price_at_product_page', |
| 46 | - 'no' ) === 'yes' || get_queried_object_id() != $product_id; | |
| 44 | + 'no' ) === 'yes' || get_queried_object_id() != $product->get_id(); | |
| 47 | 45 | |
| 48 | 46 | if ( $formatCondition ) { |
| 49 | 47 | $displayPriceType = $this->getDisplayType(); |
| 50 | 48 | |