Hi,
we haven’t come accross this issue before, but if you can share the screeshot it would help us understand better.
Regards.
on my live site i have hidden it in in css coding do you have some where i can upload the pictures ?
on my old page when switching to another theme it is removed so i belive its a thing between betheme and discount plugin.
I am not a prof developer. so its just a gues from my side
Hi,
Please try this code snippet, add it to fucntions.php in the theme folder.
add_filter(‘woocommerce_get_price_html’, “xa_only_sale_price”, 99, 2);
function xa_only_sale_price($price, $product)
{
if(!is_cart() && !is_checkout() && !is_ajax()){
if ($product->is_type(‘simple’) || $product->is_type(‘variation’)) {
return regularPriceHTML_for_simple_and_variation_product($price, $product);
}
}
return $price;
}
function regularPriceHTML_for_simple_and_variation_product($price, $product){
return wc_price($product->get_price());
}
Let me know if that helps.
Removed the custom css and this is the front page where it shows price on all variation even tho they are not in stock..
settings are set to hide out of stock items.
https://snag.gy/aW4E7S.jpg
Doesent change anything. else it might be me that are not profinent in adding snippets.
-
This reply was modified 8 years, 1 month ago by
mjoedladen.
Hi,
Please raise a ticket here: https://www.xadapter.com/online-support
So that I can check this.
Regards,
Thanks, we’ll communicate in the ticket.