[*] FO : Better gesture of product discounts.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12904 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+29
-24
@@ -455,33 +455,38 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
|
||||
{if isset($quantity_discounts) && $quantity_discounts}
|
||||
<!-- quantity discount -->
|
||||
<ul class="idTabs clearfix">
|
||||
<li><a href="#" style="cursor: pointer" class="selected">{l s='Quantity discount'}</a></li>
|
||||
<li><a href="#discount" style="cursor: pointer" class="selected">{l s='Quantity discount'}</a></li>
|
||||
</ul>
|
||||
<div id="quantityDiscount">
|
||||
<table class="std">
|
||||
<tr>
|
||||
{foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'}
|
||||
<th>{$quantity_discount.quantity|intval}
|
||||
{if $quantity_discount.quantity|intval > 1}
|
||||
{l s='quantities'}
|
||||
{else}
|
||||
{l s='quantity'}
|
||||
{/if}
|
||||
{if $quantity_discount.attributes}{$quantity_discount.attributes}{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
<tr>
|
||||
{foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'}
|
||||
<td>
|
||||
{if $quantity_discount.price != 0 OR $quantity_discount.reduction_type == 'amount'}
|
||||
-{convertPrice price=$quantity_discount.real_value|floatval}
|
||||
{else}
|
||||
-{$quantity_discount.real_value|floatval}%
|
||||
{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='product'}</th>
|
||||
<th>{l s='from (qty)'}</th>
|
||||
<th>{l s='discount'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'}
|
||||
<tr id="quantityDiscount_{$quantity_discount.id_product_attribute}">
|
||||
<td>
|
||||
{if (isset($quantity_discount.attributes) && ($quantity_discount.attributes))}
|
||||
{$product->getProductName($quantity_discount.id_product, $quantity_discount.id_product_attribute)}
|
||||
{else}
|
||||
{$product->getProductName($quantity_discount.id_product)}
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$quantity_discount.quantity|intval}</td>
|
||||
<td>
|
||||
{if $quantity_discount.price != 0 OR $quantity_discount.reduction_type == 'amount'}
|
||||
-{convertPrice price=$quantity_discount.real_value|floatval}
|
||||
{else}
|
||||
-{$quantity_discount.real_value|floatval}%
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user