[-] Fix bug #PSCFV-9633 again could not see delete href in block cart
This commit is contained in:
1 parent
01bad90b29
commit
f9c5bf0bf2
1 file changed
+5
-6
@@ -348,13 +348,12 @@ var ajaxCart = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var removeLinks = $('#cart_block_product_' + domIdProduct).find('.ajax_cart_block_remove_link');
|
|
||||||
|
var removeLinks = $('#' + domIdProduct).find('.ajax_cart_block_remove_link');
|
||||||
if (!product.hasCustomizedDatas && !removeLinks.length)
|
if (!product.hasCustomizedDatas && !removeLinks.length)
|
||||||
{
|
$('#' + domIdProduct + ' span.remove_link').html('<a class="ajax_cart_block_remove_link" rel="nofollow" href="' + baseUri + '?controller=cart&delete=1&id_product=' + product['id'] + '&ipa=' + product['idCombination'] + '&token=' + static_token + '"> </a>');
|
||||||
$('#cart_block_product_' + domIdProduct + ' span.remove_link').html('<a class="ajax_cart_block_remove_link" rel="nofollow" href="' + baseUri + '?controller=cart&delete=1&id_product=' + product['id'] + '&ipa=' + product['idCombination'] + '&token=' + static_token + '"> </a>');
|
|
||||||
}
|
|
||||||
if (product.is_gift)
|
if (product.is_gift)
|
||||||
$('#cart_block_product_' + domIdProduct + ' span.remove_link').html('');
|
$('#' + domIdProduct + ' span.remove_link').html('');
|
||||||
},
|
},
|
||||||
|
|
||||||
doesCustomizationStillExist : function (product, customizationId)
|
doesCustomizationStillExist : function (product, customizationId)
|
||||||
@@ -448,7 +447,7 @@ var ajaxCart = {
|
|||||||
var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name);
|
var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name);
|
||||||
content += '<a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + name + '</a>';
|
content += '<a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + name + '</a>';
|
||||||
|
|
||||||
if (this.is_gift != undefined && this.is_gift == 1)
|
if (typeof(this.is_gift) == 'undefined' || this.is_gift == 0)
|
||||||
content += '<span class="remove_link"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseUri + '?controller=cart&delete=1&id_product=' + productId + '&token=' + static_token + (this.hasAttributes ? '&ipa=' + parseInt(this.idCombination) : '') + '"> </a></span>';
|
content += '<span class="remove_link"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseUri + '?controller=cart&delete=1&id_product=' + productId + '&token=' + static_token + (this.hasAttributes ? '&ipa=' + parseInt(this.idCombination) : '') + '"> </a></span>';
|
||||||
else
|
else
|
||||||
content += '<span class="remove_link"></span>';
|
content += '<span class="remove_link"></span>';
|
||||||
|
|||||||
Reference in new issue
Block a user