Created
April 27, 2017 07:53
-
-
Save Tynael/60b651a5912b70ceb22db016b9719fba to your computer and use it in GitHub Desktop.
OpenCart addToCart Bug Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* -- addToCart -- */ | |
| document.getElementById(\"button-cart\").addEventListener(\"click\", raAddToCart); | |
| function raAddToCart(){ | |
| _ra.addToCart({$mouseOverAddToCart_product_id}, ".(($product_details['quantity'] > 0) ? 1 : 0).", false, function() { | |
| console.log('addToCart FIRED!') | |
| }); | |
| }; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case the website is using AJAXCart