Commit 5142cdc6 authored by Batyr Mackenov's avatar Batyr Mackenov

Currency support on the checkout page

parent 9ba56fe4
<div class="b-cart">
<button id="js-cart-shortcut" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="0">
<span class="fa fa-shopping-cart"></span>
<span class="js-cart-placeholder-total">{$commerce.cart.total} {$core.config.currency}</span>
<span class="js-cart-placeholder-total">{$commerce.cart.total|currency_format}</span>
<span class="badge js-cart-placeholder-count" title="{lang key='products_count' count=$commerce.cart.count}">{$commerce.cart.count}</span>
<span class="caret"></span>
</button>
......
......@@ -11,7 +11,7 @@
<div class="fieldset-wrapper content">
<dl class="dl-horizontal">
<dt>{lang key='total'}</dt>
<dd>{$item.total|number_format} {$core.config.currency}</dd>
<dd>{$item.total|currency_format}</dd>
</dl>
</div>
</div>
......
......@@ -2,7 +2,7 @@
<td>
<strong><a href="{$item.link}">{$item.title|escape}</a></strong>
</td>
<td>{$item.price|number_format}</td>
<td>{$item.price_formatted}</td>
<td><span class="label label-info">{$item.qty}x</span></td>
<td class="text-right">{($item.price * $item.qty)|number_format} {$core.config.currency}</td>
<td class="text-right">{($item.price * $item.qty)|currency_format}</td>
</tr>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<ul class="b-cart__product-list">
{foreach $commerce.cart.items as $entry}
<li>
<span class="pull-right">{$entry.price} <span class="text-fade-50">({$entry.qty}x)</span></span>
<span class="pull-right">{$entry.price_formatted} <span class="text-fade-50">({$entry.qty}x)</span></span>
{ia_url item=$commerce.itemName type='link' data=$entry text=$entry.title}
</li>
{/foreach}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment