X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Customising email invoice in 4.6.5 (https://forum.x-cart.com/showthread.php?t=70495)

Paul H . 11-12-2014 01:35 AM

Customising email invoice in 4.6.5
 
Hello
I'm trying to customise the emailed invoice to include a text box at the bottom but I'm not sure which tpl file it uses ?
The email has an extra box at the bottom which says "Thankyou for using our shopping system" along with some company detail so I guess this is the best file to modify.
Also for something a little more complex I'd like to add a file to the email containing bank details but only for orders where they have chosen "Wire Transfer" as the payment method-is this possible ?

iClerisy 11-12-2014 02:23 AM

Re: Customising email invoice in 4.6.5
 
Paul,

Here is the exact path of the templates which used for invoice.

skin/YOUR SKIN FOLDER/mail/html/order_invoice.tpl
skin/YOUR SKIN FOLDER/mail/html/order_data_invoice.tpl

pauldodman 11-12-2014 02:54 AM

Re: Customising email invoice in 4.6.5
 
For your bank details, you could use:

{if $order.payment_method eq "Wire Transfer"}
bank details here
{/if}

(providing "Wire Transfer" is the exact name as defined in your payment methods)

Paul H . 11-12-2014 04:07 AM

Re: Customising email invoice in 4.6.5
 
Thanks I'll have a play
Paul-which template do I drop that code into ?

pauldodman 11-12-2014 04:17 AM

Re: Customising email invoice in 4.6.5
 
I would put it at the bottom of your:
mail/html/order_invoice.tpl

which is probably in common_files, unless you have that in a custom skin folder.

Paul H . 11-12-2014 04:52 AM

Re: Customising email invoice in 4.6.5
 
I'll give it a go and let you know how it works out. Thanks
I'm trying to wean customers off using credit/debit cards so I can get rid of the expensive facility

pauldodman 11-12-2014 05:15 AM

Re: Customising email invoice in 4.6.5
 
Sometimes it's a price worth paying though. If customers have to pay a fee to do a wire transfer, they may think twice before placing an order.

Paul H . 11-12-2014 06:02 AM

Re: Customising email invoice in 4.6.5
 
Quote:

Originally Posted by pauldodman
Sometimes it's a price worth paying though. If customers have to pay a fee to do a wire transfer, they may think twice before placing an order.

I'll be trying a 1% discount or bank transfer-initially. I'm getting more and more payments through Paypal so the standing charges for the CC facility are adding up
especially since they started charging for non PCI compliance which I need to look into

Paul H . 11-12-2014 11:09 AM

Re: Customising email invoice in 4.6.5
 
It works perfectly !
I ended up putting it in the signature.tpl file and adding bank details to the languages so I can use the WYSIWYG editor on the text

{if $order.payment_method eq "Bank Transfer"}
{$lng.eml_bankdetails}

{/if}


All times are GMT -8. The time now is 08:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.