X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Invoice modification (https://forum.x-cart.com/showthread.php?t=40541)

Italian Glassman 06-16-2008 05:36 AM

Invoice modification
 
Can anybody tell me how I can add/modify the invoice so that the last line (Thank you for your puchase) is changed to:

Thank you for your purchase Bob!

"Bob", of course, is the customer's first name and would change with every invoice.

Thanks in advance for your help!

Mario

Yurij 06-17-2008 12:26 AM

Re: Invoice modification
 
Quote:

Originally Posted by Italian Glassman
Can anybody tell me how I can add/modify the invoice so that the last line (Thank you for your puchase) is changed to:

Thank you for your purchase Bob!

"Bob", of course, is the customer's first name and would change with every invoice.

Thanks in advance for your help!

Mario


skin1/mail/html/order_data.tpl - central part (with order data);
skin1/mail/html/order_invoice.tpl - header and footer invoice page.

So just add to the end file skin1/mail/html/order_invoice.tpl
"Thank you for your purchase {$login}!"

If Bob is the user name.

Italian Glassman 06-17-2008 04:52 AM

Re: Invoice modification
 
Thank you for this Yuri. I took a look at the templates and it was very helpful.

What I want is the person's first name not his username so I'm wondering if I should use {$order.firstname} instead of {$login}. What do you think?


All times are GMT -8. The time now is 11:56 PM.

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