Sale tag missing when using ‘Current discount tier’ display
-
The Sale tag is missing when selecting ‘Show sale tag and discounted price as: Current discount tier’ in ‘YayCommerce -> YayPricing -> Settings -> Product sale display’.
It’s happening everywhere, product listings, widgets and details.
Also we only want to display the lowest available price, for both the ordinary and discount price on variable products.
Normally we can use t.ex. the following code to achieve this, but it doesn’t work with YayPricing as we can see on the image above…
add_filter('woocommerce_variable_price_html', 'woo_only_display_lowest_prices_for_variable_products', 10, 2); function woo_only_display_lowest_prices_for_variable_products( $price, $product ) { $price = ''; return $price .= wc_price( wc_get_price_including_tax( $product ) ); }
Both issues tested in both Storefront and Flatsome.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Sale tag missing when using ‘Current discount tier’ display’ is closed to new replies.