• Resolved cullachie

    (@cullachie)


    We sell products on two web sites where the variation of any particular product is quantity.
    The dropdown selector gives the choice of ordering 1, 2, 4, 8, 10 or 25 units and this returns the appropriate price.

    Now, because the price per unit decreases so that if the customer selects 25 he is shown a price of £250 ( £25 per unit) whereas if he orders 1 unit the price is £29.
    On the website which is running Storefront, this results in the price range at the top showing £29 to £250.
    In the other site which is running Avada, we have been able to hide the price range by using this code in the theme editor:-
    …………………………

    //Remove Lo – Hi Price Range
    add_filter( ‘woocommerce_variable_sale_price_html’, ‘detect_variation_price_format’, 10, 2 );
    add_filter( ‘woocommerce_variable_price_html’, ‘detect_variation_price_format’, 10, 2 );
    function detect_variation_price_format( $price, $product ) {

    We tried using this code snippet in Storefront but it would not work.
    Is there any way of hiding the entire range? We do not want a “From:”- value



    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide variable product price range.’ is closed to new replies.