vdezine Posted January 13, 2010 Share Posted January 13, 2010 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! 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted January 13, 2010 Share Posted January 13, 2010 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) 0 Quote Link to comment Share on other sites More sharing options...
vdezine Posted January 14, 2010 Author Share Posted January 14, 2010 Thanks so much for your advise. I'm not a coder, so it looks a bit over my head 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.