Jump to content

Credit does not apply


davey

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

euro.png

gbp.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated