codemaster2008 Posted July 8, 2010 Share Posted July 8, 2010 I'm trying to change the invoice template to show different payment gateways based on the currency on client's profile. I tried the code bellow but one the currency is one (USD) it will always bring "Credit Card" selected with the PayPal button bellow it. {if $allowchangegateway} <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}"> <select name="gateway" onchange="submit()"> { if $clientsdetails.currency eq 1 } <option value="linkpoint" {if $paymentmethod eq "linkpoint"} selected="selected" {/if}>Credit Card</option> <option value="paypal" {if $paymentmethod eq "paypal"} selected="selected" {/if}>PayPal</option> { elseif $clientsdetails.currency eq 2 } <option value="custom_gateway" {if $paymentmethod eq "f2b"} selected="selected" {/if}>My Custom Gateway</option> {/if} </select> <br /><br /> </form> {else} {$paymentmethod}<br /> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.