hello
Can shop page shows one price only instead of the prices range?
and Can acheived and display from the latest time instead of the oldest time
like item no.: 2015 xxxx is ahead of item no. 2014xxx?
thanks advance
add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2);
Hi,
as this is variation products, so the actual prices would be different when choose different material.
so to make it clear
I want the prices display in shop page and every single product page to be the min prices only such as
starts at: $0.00
and font size to be smaller as 18px?
Can any one help me out with this?
Hey!
We are very sorry for the late response.
Please add the following filter in the functions.php file:
add_filter('woocommerce_variable_price_html', 'avf_custom_variation_price', 10, 2);
function avf_custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->get_price());
return $price;
}
And lease refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.
Best regards,
Ismael
Hi, I will try later
this code work for single product page and shop product page?
Hey!
Yes, it will work on both pages. Please let us know if it’s working in your installation.
Best regards,
Ismael
Hi, Ismael, thanks very much.
IT WORKS GREAT!