• Resolved sprzedawczyk

    (@sprzedawczyk)


    Hey. I want to show an additional net price based on discounted price generated by this plugin. I tried using woocommerce_format_sale_price but it encapsulates prices with HTML and I couldn’t make it to work. I also tried getting sale price with various ways but all of them get the woocommerce discount price. Is there other way to get the discounted price generated by this plugin other than woocommerce_format_sale_price hook?

Viewing 1 replies (of 1 total)
  • @sprzedawczyk
    1. disable option “Product page” -> “Don’t modify product price on product page”
    2. enable option “Product page” -> “Show On Sale badge if product price was modified”
    3. now we are replacing WC sale price. Call $product->get_sale_price() or catch it with filter “woocommerce_product_get_sale_price” (our priority is 100).

    The calling calculation classes directly gives you more flexibility, but most of them will be deprecated soon.

Viewing 1 replies (of 1 total)

The topic ‘Manipulating discount price generated by plugin’ is closed to new replies.