Home Forums WoodMart support forum Price From £…

Price From £…

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #242572

    T1media
    Participant

    Hi Guys
    I have found the option Hide “to” price
    This option will hide a higher price for variable products and leave only a small one. this is great for us. However we would like to put the word “From” before the price. So it would show From: £79.00 in which php file and where would i ann this please? This only needs to show on variable products

    I found some code online but this returns £0:00
    add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2);
    function custom_variation_price( $price, $product ) {
    $price = ‘From: ‘;
    $price .= woocommerce_price($product->min_variation_price);
    $price .= ‘ – ‘;
    $price .= woocommerce_price($product->max_variation_price);
    return $price;
    }

    #242599

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please add this code to the Theme Settings > Custom CSS > Global:

    .price:before{
    content:"from ";
    }

    Best Regards

    #242606

    T1media
    Participant

    thank you i just tried this
    http://www.t1media.co.uk/bed/product/reo-mattress/
    I just get a white space.

    #242607

    T1media
    Participant

    also, this only needs to show on variable product please. PS YOUR THEME IS AMAZING!

    #242657

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .price span.amount:before {
    content:"from "
    }

    Best Regards

    #242662

    T1media
    Participant

    yes thank you that shows, now, i only want it on variable products, how is this done please?

    #242889

    Hello,

    Please replace the code for this one:

    .product-type-variable .price:before{
    content:"from ";
    }

    Best Regards

    #242890

    T1media
    Participant

    thank you i have tried that, it leaves just white space
    http://www.t1media.co.uk/bed/product-category/beds/

    #242898

    Hello,

    What do you mean? The price is shown and “from” is added both in grid https://prnt.sc/vm5tth and in the product page: https://prnt.sc/vm5ulk

    If you mean the variable product should have the price range, disable “Hide “to” price” in the Theme Settings > Shop page.

    Please show me the screen, what the empty space you mean.

    Best Regards

    #242902

    T1media
    Participant

    I have attached a screen shot for you. and thank you i see the others, just not in list view

    #243121

    Hello,

    Please remove all the code I provided before and add this one:

    .product-type-variable .price span.amount:before {
    content:"from "
    }

    Best Regards

    #243163

    T1media
    Participant

    thank you, one last question on mobile, when you click the menu tab, you get shown menu first, i want categories first. how can we do this please? See attachment

    Attachments:
    You must be logged in to view attached files.
    #243180

    Hello,

    Please switch to the mobile view of the Header and enter the Mobile menu item, you will find the option “Swap menu” https://prnt.sc/vmuzya

    This option would exchange the tabs on the mobile menu.

    Best Regards

Viewing 13 posts - 1 through 13 (of 13 total)