Jump to content

Merge Field Data


vdezine

Recommended Posts

Could someone be so kind to let me know where the merge fields actual text is defined?

 

I'm trying to figure out where to change the text that is sent in the invoice generated emails.

 

The ultimate goal here is to use the Level2 tax for a 'payment gateway fee' to offset the credit card fees.

 

So... here's my only problem... when using the {$invoice_html_contents} tag, I get the following:

(I simply want to remove the "2.50%" for the L2 tax information)

 

Invoice Items

 

Basic Hosting Account - fdadasf.com (01/12/2010 - 02/11/2010)

Dedicated IP Address: Included

SSL Certificate: Standard SSL (included) $59.99 USD

------------------------------------------------------

Sub Total: $84.99 USD

8.25% Texas Sales Tax: $7.01 USD

2.50% Gateway Transaction Fee: $2.30 USD

Credit: $0.00 USD

Total: $94.30 USD

------------------------------------------------------

 

Thanks!

Link to comment
Share on other sites

hi,

insert {php}{/php} tags on the top of your emailtemplate.

get the smartyvar:

$temp = $this->get_template_vars('invoice_html_contents');

 

try to preg_replace the tax 2 term....

assign a new smarty var and use it:

$this->assign('my_invoice_html_contents', $mynewinvoicehtmlvar);

use: {$my_invoice_html_content}

 

the better solution should be create your own new smarty vars for invoice output in email.

maybe the hook "InvoiceCreationPreEmail" could insert the vars.

subject to the condition that assigning smarty vars in the hook works well. this should be interesting...

(in the hook: there is the invoice id -> mysql querys for invoice data and invoice items -> assign new smarty vars with mysql data)

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