• is there any way to show the discount percentage on sale badge. I tried many function but its unable to grab value from that field.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Hermann LAHAMI

    (@mano88)

    Sorry that’s usually handled by the theme, not the plugins…

    Thread Starter mrityunjoydas

    (@mrityunjoydas)

    I tried to make it on theme function but instead of showing discount amount its showing 100%. Can you let me know a proper function for this.

    Plugin Author Hermann LAHAMI

    (@mano88)

    No sorry…

    yes, that is on the theme side. The theme doesn’t use the same variable where the sale price stored

    Plugin Contributor Orion WP

    (@orionorigin)

    Our plugin uses woocommerce filters to make the sale price seen by any code that uses the functions to retrieve them as woocommerce recommend. So if the theme tries to extract directly the sale price from the database, our discount price won’t be seen because it’s not stored in the database. Does that make any sense?

    how you fix, i have the same problem with woodmart, -100% in product-label

    @kervis it depends on your theme, I fix the code and use the right variable where the sales price stored.

    you have one example? or the code what you modify?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show discount percentage in sale badge’ is closed to new replies.