Home Forums WoodMart support forum onsale product label change

onsale product label change

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #290936

    ujjwal
    Participant

    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.
    #290940

    ujjwal
    Participant

    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.

    #291027

    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

    #291092

    ujjwal
    Participant

    thanks,
    it’s working.

    how can I remove the “-” sign from it.

    Attachments:
    You must be logged in to view attached files.
    #291304

    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

Viewing 5 posts - 1 through 5 (of 5 total)