From 73143db07fec841ec6502f9ef0ec88f1f433be9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 5 Feb 2013 18:25:40 +0100 Subject: [PATCH] [-] MO: Display real price instead of Free for product which are not gifts on blockcart #PSCFV-6423 --- modules/blockcart/ajax-cart.js | 6 +++--- modules/blockcart/blockcart-json.tpl | 1 + modules/blockcart/blockcart.php | 1 + modules/blockcart/blockcart.tpl | 4 ++-- themes/default/modules/blockcart/blockcart.tpl | 4 ++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 4bae73e82..40d5f9480 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -353,7 +353,7 @@ 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 (parseFloat(product.price_float) <= 0) + if (product.is_gift) $('#' + domIdProduct + ' span.remove_link').html(''); }, @@ -453,7 +453,7 @@ var ajaxCart = { else content += ''; if (typeof(freeShippingTranslation) != 'undefined') - content += '' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeProductTranslation) + ''; + content += '' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeShippingTranslation) + ''; content += ''; if (this.hasAttributes) content += '