When the coupon functionality is not used, the module.js is loaded nonetheless.
This causes a javascript error because the intended HTML element is not found.
Solution should be: do not load module.js when the coupon functionality isn't in use (logic in mustache template) and prevent loading of resources when not needed.
When the coupon functionality is not used, the module.js is loaded nonetheless. This causes a javascript error because the intended HTML element is not found.
Solution should be: do not load module.js when the coupon functionality isn't in use (logic in mustache template) and prevent loading of resources when not needed.