Home Forums Technical Support how to make woocommerce product free instead of 0

Topic Resolution: Resolved

This topic contains 9 replies, has 2 voices, and was last updated by  Louis Alviss 1 year, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1465

    Currently Digibits freebies  is displayed as 0 dollar .  I want to make it free instead of 0 .. Currently i am unable to add words and only numbers are allowed in woocommerce products .

     

    #1505

    Hello,

    Could you please provide some screenshots and url about this issue?

    Thank you 🙂

    #1536

    First of all i would like to say that it is not a issue .. It is how woo commerce currently provides. ..

    I want to make as i have highlighted in image . Instead of setting price as 0 i want to add letters free ..

    http://prntscr.com/gvijxg
    <h3 class=”r”></h3>

    #1560

    Hi,

    Please provide the page url, maybe we can use a Custom JS to sort it.

    #1565
    This reply has been marked as private.
    #1590

    Hi,

    You can try the JS below (add to Customize > System > Custom JS at the first line):

    jQuery(“span.woocommerce-Price-amount.amount”).text(function () {
    return jQuery(this).text().replace(“0.00”, “FREE”);
    });

    Actually, I added it for you to make sure it’s working, please kindly clear browser cache then recheck your page now, thank you

    #1594

    Thanks for code .. Is there  a way to remove  rupee (currency) symbol also for free content

    #1608

    Hi,

    I tried that but the problem here is there isn’t have any special class or a way to detect which product has 0 price so we can remove the currency on that product only.

    If we just remove the currency, it will remove this for all products.

    #1627

    ok no problem .. thanks for help ..

    #1654

    Hello,

    Thanks for your update, if you need any assistance, please let me know

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

The topic ‘how to make woocommerce product free instead of 0’ is closed to new replies.