You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I prevent the customer from changing this data manually in front-end and abuse it?
Problem 2
If user goes back to cart page and changes quantity or adds/removes an item, the shipping fee is not recalculated again.
The user can go back to checkout and pay the old stale shipping price.
How should this be handled correctly?
Should Medusa re-trigger calculation automatically when cart changes?
Or should we override a cart updated event and recalc shipping method price manually?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Problem 1
In the checkout guide Medusa says guide:
My custom fulfillment provider depends on the cart items data (for example weight).
The problem: on client request we must pass data object:
How can I prevent the customer from changing this data manually in front-end and abuse it?
Problem 2
If user goes back to cart page and changes quantity or adds/removes an item, the shipping fee is not recalculated again.
The user can go back to checkout and pay the old stale shipping price.
How should this be handled correctly?
Should Medusa re-trigger calculation automatically when cart changes?
Or should we override a cart updated event and recalc shipping method price manually?
Beta Was this translation helpful? Give feedback.
All reactions