• Resolved saulevas

    (@saulevas)


    Hey everyone.

    On the store I’m currnetly building https://www.teks.lt/ I have products showing prices from smallest to highest. The price depends on the quantity purchased. Some of the products are showing from 0.00€ to whatever price is the highest. That 0.00€ appears when some variation of that product is not available… I don’t like it when it shows 0.00€, I would like smallest price available to be shown there. I tried going to Woocommerce > Settings > Products > Inventory > and checking “Hide out of stock items from the catalog”. Unfortunatelly it didn’t help ??
    Maybe you guys know how to solve this?

    Regards
    Saul

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi Saul!

    If you’d like to show only the smallest price, then you can use the following code to make that happen:

    https://gist.github.com/rynaldos/e3ebb5579de71e43c06635fbade6b8a3

    This custom code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as Code Snippets. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.

    Cheers!

    Thread Starter saulevas

    (@saulevas)

    Thank you, Rynald0s.

    I already have this solved by one guy. Though not sure what he did ?? Might as well be the same method.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying prices “From – To”’ is closed to new replies.