[*] FO : Retrocompat for default theme 1.4.10
This commit is contained in:
@@ -35,7 +35,7 @@ var ajaxCart = {
|
|||||||
overrideButtonsInThePage : function(){
|
overrideButtonsInThePage : function(){
|
||||||
//for every 'add' buttons...
|
//for every 'add' buttons...
|
||||||
$('.ajax_add_to_cart_button').unbind('click').click(function(){
|
$('.ajax_add_to_cart_button').unbind('click').click(function(){
|
||||||
var idProduct = $(this).attr('rel').replace('ajax_id_product_', '');
|
var idProduct = $(this).attr('rel').replace('nofollow', '').replace('ajax_id_product_', '');
|
||||||
if ($(this).attr('disabled') != 'disabled')
|
if ($(this).attr('disabled') != 'disabled')
|
||||||
ajaxCart.add(idProduct, null, false, this);
|
ajaxCart.add(idProduct, null, false, this);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user