// data-id-product instead of using rel tag
This commit is contained in:
1 parent
68edf085d4
commit
ad6ed3dcf1
6 files changed
+401
-345
No files matched your search
@@ -35,7 +35,7 @@ var ajaxCart = {
|
||||
overrideButtonsInThePage : function(){
|
||||
//for every 'add' buttons...
|
||||
$('.ajax_add_to_cart_button').unbind('click').click(function(){
|
||||
var idProduct = $(this).attr('rel').replace('nofollow', '').replace('ajax_id_product_', '');
|
||||
var idProduct = $(this).data('id-product');
|
||||
if ($(this).attr('disabled') != 'disabled')
|
||||
ajaxCart.add(idProduct, null, false, this);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user