Support » Plugin: Pricing Deals for WooCommerce » there is no get_sale_price()

  • Resolved liderbudowlany

    (@liderbudowlany)


    Hi, in my custom theme I have a custom badge with percent discount, which works on
    $product->get_regular_price();
    and
    $product->get_sale_price();
    On this two variables is calculated percent discount. But products discounted with your plugin (PRO Version) doesn’t have this variables.
    How I can reach the regular price and sale price?
    Or maybe just the percent calculated by plugin? In options there is variable, which can be used as suffix: {price_save_percent} – how I can use this in php code in theme?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author vark

    (@vark)

    Hi,
    You’ll need to add some code to your custom theme…

    But, as this question regards the Pro version, as per forum rules we have to take this question offline, to the support channel here:
    https://www.varktech.com/support/

    Best,
    Vark

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.