JosiahMaybe
Platinum Coder
Javascript events
I found that for Javascript events.
If I do prestashop.on with checkoutChangedStep will it be before event, submission, like my code, then maybe checkout change step with not checkout change step before prestashop.on ends?
Can I reject by reloading or loading an external page with that?
If not that reject and other yes then I may use updateCart.
For that I would use make document.body hidden, like my code, if success unhide document.body and let user continue. For rejection, make document.body.innerHTML a new message and show document.body.
Should any of that work?
I need no possibility of a payment with rejection and to not have cart items stay in cart upon rejection.
Mostly just need no possibility of paying for an item upon one rejection, I may always have like my Javascript code in PrestaShop so for rejection I may have a localStorage saved thing for reject upon load if set to false and no check needed if set to true.
This seems like it should work but does it?
X E.
I found that for Javascript events.
If I do prestashop.on with checkoutChangedStep will it be before event, submission, like my code, then maybe checkout change step with not checkout change step before prestashop.on ends?
Can I reject by reloading or loading an external page with that?
If not that reject and other yes then I may use updateCart.
For that I would use make document.body hidden, like my code, if success unhide document.body and let user continue. For rejection, make document.body.innerHTML a new message and show document.body.
Should any of that work?
I need no possibility of a payment with rejection and to not have cart items stay in cart upon rejection.
Mostly just need no possibility of paying for an item upon one rejection, I may always have like my Javascript code in PrestaShop so for rejection I may have a localStorage saved thing for reject upon load if set to false and no check needed if set to true.
This seems like it should work but does it?
X E.