Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [AMOUNT_NOTAX] & [TAX] e-mail tags not populated

[AMOUNT_NOTAX] & [TAX] e-mail tags not populated 13 years 11 months ago #11913

  • iwffc-admin
  • iwffc-admin's Avatar Topic Author
  • Visitor
  • Visitor
If I put the following text into the Thank You e-mail for a $60 CAD registration fee and $7.80 CAD of taxes -

Your registration fee before taxes is $[AMOUNT_NOTAX] plus taxes of $[TAX] gives you a total registration cost of $[AMOUNT].

You get the following result -

Your registration fee before taxes is $amount_notax plus taxes of $tax gives you a total registration cost of $67.80 CAD.

So, the tax calculates correctly but the e-mail tags [AMOUNT_NOTAX] and [TAX] do not seem to be populated. While this isn't a show stopper, in Canada we are technically required to show the tax amount separately on our receipts/confirmations.

Has anyone else had this problem and/or am I doing something wrong (maybe I am using the wrong e-mail tags)? Is this being addressed in an upcoming release?

Thank you for any assistance...

Please Log in or Create an account to join the conversation.

[AMOUNT_NOTAX] & [TAX] e-mail tags not populated 13 years 10 months ago #12377

  • ahoy
  • ahoy's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Im having the same problem...

EDIT: using DTRegister 2.7.3b

Please Log in or Create an account to join the conversation.

[AMOUNT_NOTAX] & [TAX] e-mail tags not populated 13 years 10 months ago #12378

  • ahoy
  • ahoy's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
OK I think i've fixed it - ver 2.7.3b but may apply to others.

Open up administrator/components/com_dtregister/lib/tagparser.php

Starting around line 529, replace these 2 functions:

function amount_notax(){
return 'amount_notax';
}

function tax(){
return 'tax';
}

With these 2 functions:

function amount_notax($recipient){
global $currency_code;
$user = $this->getuser($recipient);
return DTreg::displayRate($user->TableFee->formatamount($user->TableFee->basefee),$currency_code);
//return 'amount_notax';
}

function tax($recipient){
global $currency_code;
$user = $this->getuser($recipient);
return DTreg::displayRate($user->TableFee->formatamount($user->TableFee->tax),$currency_code);
//return 'amount_notax';
}

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.167 seconds