• Resolved msbt

    (@msbt)


    Hi there!
    I’m trying to add a subscription based item to my shop and the current price tag shows “xx,xx $ / month”. Now when “Update price” is activated in WCFF, it removes the “/ month” part of the price a split second after the page is loaded. Can you give me a pointer to get that back?

    Best regards,
    M

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor sarkparanjothi

    (@sarkparanjothi)

    hi @msbt,

    You can add / month from using this filter wc_price

    add_filter('wc_price', "add_month_into_price", 99, 1);
    
    function add_month_into_price($_price_html){
       return $_price_html."/ month";
    }

    Put above line into your theme function.php

    Thread Starter msbt

    (@msbt)

    Hey sark, thanks for the fix, I’ll check it out later this week!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price update removes custom price name’ is closed to new replies.