davey Posted April 28, 2014 Share Posted April 28, 2014 Hi, When a customer added some credits to our website, and wants to pay by it, the customer gets redirected to the login form. and is unable to pay the invoice by their current credits. Adding credits works as a charm, but paying with it leads to a redirect. Does anyone have the same issue? Anyone some advise? Kinda regards, Davey 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 28, 2014 Share Posted April 28, 2014 are you using the latest WHMCS version, 5.3.6 - and is your template up to date? 0 Quote Link to comment Share on other sites More sharing options...
davey Posted April 29, 2014 Author Share Posted April 29, 2014 are you using the latest WHMCS version, 5.3.6 - and is your template up to date? Hi, Thank you for your reply, i'm sorry we are running the latest version with a custom template. I'm not 100% sure if the template is up to date, Where do i need to look for? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 30, 2014 Share Posted April 30, 2014 if your custom template is based (even loosely) on one of the default ones (classic, default or portal), then compare the code within yours to the equivalent template file from the above templates. if it's not based on one of them, then you might need to ask the person who wrote it to do the comparison. you could use a program like WinMerge to view the two files side by side and highlight any differences. clientareaaddfunds.tpl is probably fine, but I'd suggest looking there first - though to be honest, you'll probably have to go through all of them. 0 Quote Link to comment Share on other sites More sharing options...
davey Posted May 1, 2014 Author Share Posted May 1, 2014 Thank you alot, the issue has been resolved!! The issue was related to the viewinvoice.tpl file, below u can see the working and the not working code. Not working {if $manualapplycredit} <div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br /> <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}"><input type="hidden" name="applycredit" value="true" /> {$LANG.invoiceaddcreditamount}: <input type="text" name="creditamount" size="10" value="{$creditamount}" /> <input type="submit" value="{$LANG.invoiceaddcreditapply}" /> </form></div> <br /> {/if} Working {if $manualapplycredit} <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}"><input type="hidden" name="applycredit" value="true" /> <div class="creditbox">{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}<br /> {$LANG.invoiceaddcreditamount}: <input type="text" name="creditamount" size="10" value="{$creditamount}" /> <input type="submit" value="{$LANG.invoiceaddcreditapply}" /> </div> </form> <br /> {/if} Thank you for the help Kind regards, Davey 0 Quote Link to comment Share on other sites More sharing options...
davey Posted May 1, 2014 Author Share Posted May 1, 2014 While investigating this issue i also noticed the following: While creating a test account with a invoice in GBP i've added some credits to this test account. The invoice is showing in GBP as it should be. The credits instead are showing in euro's. While checking in the backend which currencie here is shown i noticed this is in GBP. See the attachments. Kind regards, Davey 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 1, 2014 Share Posted May 1, 2014 Hi Davey, this is a known bug and will be fixed in a future release. http://forum.whmcs.com/showthread.php?87491-Wrong-currency-display-when-adding-credit-to-invoice 0 Quote Link to comment Share on other sites More sharing options...
davey Posted May 1, 2014 Author Share Posted May 1, 2014 Thank you brian! Looking forward for the fix. 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.