Hide price range on product page
-
dear all,
I am using the below code in functions in a child theme to hide the price range on product page which works well but the problem is , it is hiding actual price for FEW of the variable products for example for https://sab1000.de/product/textmarker-stabilo/. Kindly suggest how can I get that price back ?
//Hide “From:$X” add_filter('woocommerce_get_price_html', 'lw_hide_variation_price', 10, 2); function lw_hide_variation_price( $v_price, $v_product ) { if ( is_product() ) { $v_product_types = array( 'variable'); if ( in_array ( $v_product->product_type, $v_product_types ) && !(is_shop()) ) { return ''; } } // return regular price return $v_price; }
Also please suggest how to keep the font size of the price in basket as original? With the css below actual price size is increased on product page but on the same product page the basket looks weird with the big Price font size
.woocommerce.single-product span.amount {
font-size: 1.7em!important ;
}Thanks a lot.
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Hide price range on product page’ is closed to new replies.