Show only lowest prices for variable products | WooCommerce

If you are using woocommerce as an e-commerce platform you probably get annoyed the way variable products show the price in woocommerce.

Yes, It’s just standard way to show variable prices on any e-commerce platform out there, but that doesn’t mean it is the best way to do it.

It is your personal choice as a store owner or maybe some kind of magic trick to boost conversion rate.

Okay… I don’t want to waste your precious time so, Let’s jump to the solution.


Show Only Lowest Price

Variable product price range normally looks like $10 – $20. With this snippet,

With this snippet, you will be able to hide the highest price, plus add a “From: ” in front of the minimum price.

All you need is pasting the following code in your child theme’s functions.php

If you want to hide the price completely for variable products until the customer selects variation of the product.

Guess what!

We got the solution for that as well.

Hide Price until user select variations of product

Instead of above code, use the code snippet below ( make sure don’t use both snippets together to avoid any conflict).

Where to add this code?

You can place PHP snippets at the bottom of your functions.php file, We recommend to use child them so you will not lose any changes when updating your theme

Did this snippet work?

Please let us know in the comments if snippet worked as expected. We would be happy to revise the code if you report otherwise or in case you need more assistance.

Show More

Related Articles


  1. nice this is what i was looking for. Is there the possibility to have this in the wordpress plugin repository, to have it always up to date?

Leave a Reply

Your email address will not be published. Required fields are marked *