diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index 6f1da33a4..a6d2e8272 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -398,8 +398,7 @@ var ajaxCart = { else { $('#vouchers tbody').html(''); - - for (i=0;i 0) { @@ -408,15 +407,14 @@ var ajaxCart = { delete_link = ''+delete_txt+''; $('#vouchers tbody').append($( '' - +' 1x' - +' '+jsonData.discounts[i].name+'' - +' -'+jsonData.discounts[i].price+'' - +' ' + delete_link + '' - +'' + + '1x' + + ''+jsonData.discounts[i].name+'' + + '-'+jsonData.discounts[i].price+'' + + '' + delete_link + '' + + '' )); } } - $('#vouchers').show(); } diff --git a/themes/default/modules/blockcart/blockcart.tpl b/themes/default/modules/blockcart/blockcart.tpl index 53e3a7c23..119433012 100644 --- a/themes/default/modules/blockcart/blockcart.tpl +++ b/themes/default/modules/blockcart/blockcart.tpl @@ -22,17 +22,11 @@ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - -{* IMPORTANT : If you change some data here, you have to report these changes in the ./blockcart-json.js (to let ajaxCart available) *} - -{if $ajax_allowed} {/if} - - -

@@ -92,7 +84,6 @@ var generated_date = {$smarty.now|intval};

{$product.attributes_small} {/if} - {if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])} {if !isset($product.attributes_small)}
{/if} @@ -110,31 +101,35 @@ var generated_date = {$smarty.now|intval}; {if !isset($product.attributes_small)}
{/if} {/if} - {if isset($product.attributes_small)}{/if} - {/foreach} {/if}

{l s='No products' mod='blockcart'}

- {if $discounts|@count > 0} {foreach from=$discounts item=discount} {if $discount.value_real > 0} - - - - - - + + + + + + + + {/if} + {foreachelse}{* W3C and cart rule vouchers *} + + + + + {/foreach} - {/if}

{$shipping_cost} {l s='Shipping' mod='blockcart'} @@ -172,5 +167,4 @@ var generated_date = {$smarty.now|intval};

- - + \ No newline at end of file