Is prestashop.on
in Javascript synchronous? That is, will the code that triggers the event be immediately followed by the code in the event handler(s), followed by the code after the code that triggers the event, with no other code running in between?
I am trying to have somewhere between cart filled with products and after that and before payment custom country check in PrestaShop.
I know I can use prestashop.on
and changedCheckoutStep
to set up a listener for this, but I've been unable to find anything in the documentation, forum, etc. regarding if this is guaranteed to be called synchronously.
https://devdocs.prestashop-project.org/8/themes/reference/javascript-events/
If the PrestaShop version is relevant, I'm looking for an answer for the current version (8, 1.7).