diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 5f19ffa5e..103ab335a 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -350,6 +350,8 @@ var ajaxCart = { var removeLinks = $('#cart_block_product_' + domIdProduct).find('a.ajax_cart_block_remove_link'); if (!product.hasCustomizedDatas && !removeLinks.length) $('#' + domIdProduct + ' span.remove_link').html(' '); + if (parseInt(product.price_float) <= 0) + $('#' + domIdProduct + ' span.remove_link').html(''); }, doesCustomizationStillExist : function (product, customizationId) @@ -436,12 +438,17 @@ var ajaxCart = { var productId = parseInt(this.id); var productAttributeId = (this.hasAttributes ? parseInt(this.attributes) : 0); var content = ''; + content += '' + this.quantity + 'x'; + var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name); + content += '' + name + ''; + + if (parseFloat(this.price_float) > 0) + content += ' '; + else + content += ''; + + content += '' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeProductTranslation) + ''; + content += ''; if (this.hasAttributes) content += '