onsale product label change
-
how can I change the product label?
now labels are showing like this:
-29%
I want to show it like this:
29% off
or
Save 79$
Attachments:
You must be
logged in to view attached files.
I don’t want to show add to cart button on a sold-out product.
instead of add to cart button sold out will display.
how can I do that?
both greed view & single product page.
Hello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .product-label.onsale:after {
content:" off"
}
body .product-labels {
max-width: 100%;
}
Woocommerce does not provide the option to change the button for sold-out products. You can hide out-of-stock products from the catalog in Woocommerce > settings > Products > Inventory.
Best Regards
Best Regards
thanks,
it’s working.
how can I remove the “-” sign from it.
Attachments:
You must be
logged in to view attached files.
Hello,
Please find this file: woodmart/inc/integrations/woocommerce/template-tags.php
and this function: function woodmart_product_label()
Then copy this code http://prntscr.com/wbj3zq to the functions.php of the child theme and change the label as per your needs.
Best Regards