Hi,
In my e-commerce shop page, I’m displaying each variation as individual product.
The issue is that when I put some of these variations on sale, the label just showed “Sale”, instead of the calculated discount as it does with the parent (variable) products.
Investigating the issue, I noticed that the variation type was missing in the template function that generates the label html code.
It’s in the following file:
woodmart\inc\integrations\woocommerce\template-tags.php
function woodmart_product_label()
Line 1035
} elseif ( ( $product->get_type() == ‘simple’ || $product->get_type() == ‘external’ ) && $percentage_label ) {
Needs to include the variation type:
} elseif ( ( $product->get_type() == ‘simple’ || $product->get_type() == ‘external’ || $product->get_type() == ‘variation’ ) && $percentage_label ) {
Can it be fixed in a next version please?
Thanks in advance!