[-] FO : customer discounts page fixed with cart rules

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14162 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-03-14 14:59:08 +00:00
parent f1ec6e5ce7
commit 800a95b583
3 changed files with 39 additions and 11 deletions
+4 -4
View File
@@ -28,7 +28,7 @@
<h1>{l s='My vouchers'}</h1>
{if isset($discount) && count($discount) && $nbDiscounts}
{if isset($cart_rules) && count($cart_rules) && $nb_cart_rules}
<table class="discount std table_block">
<thead>
<tr>
@@ -42,10 +42,10 @@
</tr>
</thead>
<tbody>
{foreach from=$discount item=discountDetail name=myLoop}
{foreach from=$cart_rules item=discountDetail name=myLoop}
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
<td class="discount_code">{$discountDetail.name}</td>
<td class="discount_description">{$discountDetail.description}</td>
<td class="discount_code">{$discountDetail.code}</td>
<td class="discount_description">{$discountDetail.name}</td>
<td class="discount_quantity">{$discountDetail.quantity_for_user}</td>
<td class="discount_value">
{if $discountDetail.id_discount_type == 1}