moduleprogrammer Posted May 11, 2021 Share Posted May 11, 2021 Hello! I've a problem, I've to get the discount percentage applied to the line of each order placed. Through query it is not viable, since the coupons are saved at the order level, not the applied line. So, I had thought about capturing the moment when PS does it, while the order is being placed, and saving it in a custom table: ID | order_id | percent_applied But I am not sure exactly where it performs that calculation, I have checked the core, I have seen several sites where it takes discounts into account but it calls hooks and classes and I lose track of it. Could someone give me a hint where I can intercept this information, so that I can save it? Thanks in advance, greetings. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now