Logo
Logo
Wordpress function

Woocommerce – Disable Variable Product Price Range

I had a client want to add From to the Woocommerce variation to remove the default price: $1000 – $3000. Simply add the code below to your function.php page.

You can also find this function.php file under the Appearance > Editor in WordPress admin panel.

In order to remove the larger value of the price, we should add the following code to function.php – before the closing tag ?> to the bottom of the file:

 

tags:

Matt

Matt has been working in the web industry for over 15 years, he is also an avid mountain biker. He discovered his love for the internet years ago and has since honed his skills to keep up with the latest trends and technologies in the industry. Matt has worked with a diverse range of clients, including small businesses, non-profits, and large corporations, delivering high-quality websites. Apart from his work, Matt loves to explore the outdoors and takes every opportunity to hit the trails on his mountain bike. His commitment to his work and passion for mountain biking have earned him a reputation as a talented and well-rounded individual. If you're in need of a skilled web developer or an adventure-seeking mountain biker, Matt is the perfect fit.