Hello all,
Can anyone point me in right direction as to how OC 2 now referecenes the Add to cart buttons on both the category page and the product page.
I need to configure Google Tag Manager what to track when the add to cart button is clicked on both the product page and category page, but as nothing is actually triggered to load as such, I need to work out what the trigger is. Maybe the green success alert box which appears can be used?
I've looked at the source code and css, but them seem to not quite be called anything I can use.
Thanks in advance.
So why not do a search in the source code for any JQuery that selects this button by ID?
paul@ant$ grep -ri "#button-cart"
upload/catalog/view/theme/default/template/product/product.tpl:$('#button-cart').on('click', function() {
And here's your answer:
/catalog/view/theme/default/template/product/product.tpl
paul@ant$ grep -ri "#button-cart"
upload/catalog/view/theme/default/template/product/product.tpl:$('#button-cart').on('click', function() {
And here's your answer:
/catalog/view/theme/default/template/product/product.tpl
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: No registered users and 6 guests