I found my own way to fix this for shopkeeper theme.
In /wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php file, search for the function gtm4wp_woocommerce_enhanced_ecom_product_click()
Here I add “a:not(.getbowtied_product_quick_view_button)” to the selector to exclude the quick view from redirecting to the product page, like this:
$( '.products li:not(.product-category) a:not(.getbowtied_product_quick_view_button) a:not(.add_to_cart_button),.widget-product-item' ).click(function( event )
I know this is specific for shopkeeper getbowtied product quick view plugin but I think it can help finding the problem.
So the problem is that this plugin is not taking in count that inside ul .products
can be present a quick view link, and in those cases we don’t want to redirect to the product page.
Or maybe my solution is not the ideal and we should catch the click event here in this cases for analytics purposes but in eventCallback in case of quick_view we return nothing before the redirect.
What’s your opinion Thomas?
Best regards and thanks for the this awsome plugin.
Keep the good work,
Diogo Silva
-
This reply was modified 7 years, 8 months ago by Steven Stern (sterndata).
-
This reply was modified 7 years, 8 months ago by dsilva90.
-
This reply was modified 7 years, 8 months ago by dsilva90.
-
This reply was modified 7 years, 8 months ago by dsilva90. Reason: just styling
-
This reply was modified 7 years, 8 months ago by dsilva90. Reason: just styling