[*] FO : Retrocompat for default theme 1.4.10

This commit is contained in:
gRoussac
2013-04-02 15:26:20 +02:00
parent 9517e1a22b
commit 1cfc0aa1d3
+1 -1
View File
@@ -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('ajax_id_product_', '');
var idProduct = $(this).attr('rel').replace('nofollow', '').replace('ajax_id_product_', '');
if ($(this).attr('disabled') != 'disabled')
ajaxCart.add(idProduct, null, false, this);
return false;