Files
newwalls.pl/themes/ayon__/templates/customer/discount.tpl
2024-12-17 13:43:22 +01:00

78 lines
2.5 KiB
Smarty

{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='Your vouchers' d='Shop.Theme.Customeraccount'}
{/block}
{block name='page_content'}
{if $cart_rules}
<table class="table table-striped table-bordered hidden-sm-down">
<thead class="thead-default">
<tr>
<th>{l s='Code' d='Shop.Theme.Checkout'}</th>
<th>{l s='Description' d='Shop.Theme.Checkout'}</th>
<th>{l s='Quantity' d='Shop.Theme.Checkout'}</th>
<th>{l s='Value' d='Shop.Theme.Checkout'}</th>
<th>{l s='Minimum' d='Shop.Theme.Checkout'}</th>
<th>{l s='Cumulative' d='Shop.Theme.Checkout'}</th>
<th>{l s='Expiration date' d='Shop.Theme.Checkout'}</th>
</tr>
</thead>
<tbody>
{foreach from=$cart_rules item=cart_rule}
<tr>
<th scope="row">{$cart_rule.code}</th>
<td>{$cart_rule.name}</td>
<td class="text-xs-right">{$cart_rule.quantity_for_user}</td>
<td>{$cart_rule.value}</td>
<td>{$cart_rule.voucher_minimal}</td>
<td>{$cart_rule.voucher_cumulable}</td>
<td>{$cart_rule.voucher_date}</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="cart-rules hidden-md-up">
{foreach from=$cart_rules item=slip}
<div class="cart-rule">
<ul>
<li>
<strong>{l s='Code' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.code}
</li>
<li>
<strong>{l s='Description' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.name}
</li>
<li>
<strong>{l s='Quantity' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.quantity_for_user}
</li>
<li>
<strong>{l s='Value' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.value}
</li>
<li>
<strong>{l s='Minimum' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.voucher_minimal}
</li>
<li>
<strong>{l s='Cumulative' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.voucher_cumulable}
</li>
<li>
<strong>{l s='Expiration date' d='Shop.Theme.Checkout'}</strong>
{$cart_rule.voucher_date}
</li>
</ul>
</div>
{/foreach}
</div>
{/if}
{/block}
{block name='page_footer'}
{block name='my_account_links'}
{/block}
{/block}