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
In handling add-to-cart event for woocomerce-enhanced plugin there's code that first prevents the link from working (e.preventDefault()) and then programatically changes location to that of the product:
That's good in the general case but e.g. Shoptimizer preventDefaults itself to add a mini sidebar on product addition instead of redirect -- in this case, gtm4wp redirects on click after the sidebar pops up.
It would be great if gtm4wp could check whether default was already prevented, and if so not change document.location to prevent this interaction.
The text was updated successfully, but these errors were encountered:
In handling add-to-cart event for woocomerce-enhanced plugin there's code that first prevents the link from working (
e.preventDefault()
) and then programatically changes location to that of the product:gtm4wp/js/gtm4wp-woocommerce-enhanced.js
Line 807 in 10e7e96
preventDefault
s itself to add a mini sidebar on product addition instead of redirect -- in this case, gtm4wp redirects on click after the sidebar pops up.It would be great if gtm4wp could check whether default was already prevented, and if so not change document.location to prevent this interaction.
The text was updated successfully, but these errors were encountered: