Skip to content

Commit e05c54b

Browse files
committed
Fix bug with multi currency setup
1 parent 1f5266b commit e05c54b

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

views/templates/.DS_Store

0 Bytes
Binary file not shown.

views/templates/front/payment.tpl

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,62 +16,63 @@
1616
</p>
1717
{else}
1818
<form action="{$link->getModuleLink('prestapaystack', 'confirm', [], true)|escape:'html'}" id="paystack_form" method="post">
19-
<div class="box cheque-box">
20-
<h3 class="page-subheading">
19+
<div class="box cheque-box">
20+
<h3 class="page-subheading">
2121
{l s='PAYSTACK Payment' mod='prestapaystack'}
22-
</h3>
23-
<p class="cheque-indent">
24-
<strong class="dark">
22+
</h3>
23+
<p class="cheque-indent">
24+
<strong class="dark">
2525
{l s='You have chosen to pay with Paystack.' mod='prestapaystack'} {l s='Here is a short summary of your order:' mod='prestapaystack'}
26-
</strong>
26+
</strong>
2727

28-
</p>
29-
<p>
30-
- {l s='The total amount of your order is' mod='prestapaystack'}
31-
<span id="amount" class="price">{displayPrice price=$total_amount}</span>
28+
</p>
29+
<p>
30+
- {l s='The total amount of your order is' mod='prestapaystack'}
31+
<span id="amount" class="price">{displayPrice price=$total_amount}</span>
3232
{if $use_taxes == 1}
3333
{l s='(tax incl.)' mod='prestapaystack'}
3434
{/if}
35-
</p>
36-
<p>
37-
-
35+
</p>
36+
<p>
37+
-
3838
{if $currencies|@count > 1}
3939
{l s='We allow several currencies to be sent via MyMod Payment.' mod='prestapaystack'}
40-
<div class="form-group">
41-
<label>{l s='Choose one of the following:' mod='prestapaystack'}</label>
42-
<select id="currency_payment" class="form-control" name="currency_payment">
40+
<div class="form-group">
41+
<label>{l s='Choose one of the following:' mod='prestapaystack'}</label>
42+
<select id="currency_payment" class="form-control" name="currency_payment">
4343
{foreach from=$currencies item=currency}
44-
<option value="{$currency.id_currency}" {if $currency.id_currency == $cart_currency}selected="selected"{/if}>
44+
<option value="{$currency.id_currency}" {if $currency.id_currency == $cart_currency}selected="selected"{/if}>
4545
{$currency.name}
46-
</option>
46+
</option>
4747
{/foreach}
48-
</select>
49-
</div>
48+
</select>
49+
</div>
5050
{else}
5151
{l s='We allow the following currency to be sent via Paystack:' mod='prestapaystack'}&nbsp;<b>{$currencies.0.name}</b>
5252
<input type="hidden" name="currency_payment" value="{$currencies.0.id_currency}" />
5353

54+
{/if}
55+
5456
<input type="hidden" name="amounttotal" value="{$total_amount}" />
5557
<input type="hidden" name="email" value="{$email}" />
56-
<input type="hidden" name="txn_code" value="{$code}" />
57-
{/if}
58-
</p>
58+
<input type="hidden" name="txn_code" value="{$code}" />
59+
</p>
5960
<br />
6061
ITEMS:
6162

6263
{foreach from=$products item=product}
6364
<p>
64-
{$product.name} x <b>{$product.cart_quantity}</b> - {displayPrice price=$product.total_wt}
65+
{$product.name} x <b>{$product.cart_quantity}</b> - {displayPrice price=$product.total_wt}
6566
</p>
6667
{/foreach}
67-
</div>
68+
</div>
6869

69-
<p class="cart_navigation clearfix" id="cart_navigation" style="display:inline-block;">
70-
<a
71-
class="button-exclusive btn btn-default"
72-
href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}">
73-
<i class="icon-chevron-left"></i>{l s='Other payment methods' mod='prestapaystack'}
74-
</a>
70+
<p class="cart_navigation clearfix" id="cart_navigation" style="display:inline-block;">
71+
<a
72+
class="button-exclusive btn btn-default"
73+
href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}">
74+
<i class="icon-chevron-left"></i>{l s='Other payment methods' mod='prestapaystack'}
75+
</a>
7576
</p>
7677
{if $style == 'inline'}
7778
<script src="https://js.paystack.co/v1/inline.js"></script>

0 commit comments

Comments
 (0)