Data are not refreshed after affiliation change in cart #33
Unanswered
ahgamal-ms
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @ahgamal-ms - I'm not familar with how the discount calculations work, but I see a couple of requests in the API that may be useful, you could give these a try to see if they accomplish what you're looking for:
If none of those work for your scenario, if you can provide the code you're using now for the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in POS We need to exclude some Affiliation on Cart by extension, we have tried to use the OnExecuted trigger for SaveCartRequest to modify the selected Affiliation on cart. the affiliation get changed in cart but the cart discount did not get calculated.
So how can we recalculate cart discounts or force cart recalculation throw extensions or if we should use other trigger to change the affiliation.
example is:
• Customer has attached to his master data affiliations EMPLOYEE and MKT008
• In the setup table the affiliations to be excluded are MKT001, MKT002, MKT008
• Result in the cart should be that we have only the affiliation EMPLOYEE, because MKT008 coming from the customer has been excluded
We think the solution could consists of forcing a refresh on the cart after the custom code is run within “OnExecuted” method, but we haven’t found yet a way to recalculate the discounts.
Beta Was this translation helpful? Give feedback.
All reactions