Jump to content

How do I get each cart item with their total discount


Recommended Posts

Hello, im currently integrating Prestashop 1.6 to a custom accounting software, the problem is they only support per item discounts. Any info on how to achieve this would be very helpful, thanks.

Also, while looking for how to manually calculate it, I found the source code for getContextualValue() which seems to do some sort of calculations based on discounts/coupons and other fees, though I couldn't find any resource saying what it does, so any info on this or any other function would be really helpful.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...