We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ed063 commit 35af150Copy full SHA for 35af150
app/design/frontend/base/default/template/retargeting_tracker/triggers.phtml
@@ -204,9 +204,9 @@ $add_to_cart_id = Mage::helper('retargeting_tracker')->getConfig('retargetingtra
204
"quantity": 1,
205
"variation": false
206
};
207
-
+ var BTNRTG = "<?php echo $add_to_cart_id; ?>";
208
/* document.querySelector(".btn-cart") document.getElementsByClassName("btn-cart")[0]*/
209
- document.querySelector("<?php echo $add_to_cart_id; ?>")
+ document.querySelector(BTNRTG === "" ? ".btn-cart" : BTNRTG)
210
.addEventListener("click", function(){
211
_ra.addToCartInfo.quantity = ( document.querySelector("#qty") ?? { value:1 } ).value;
212
0 commit comments