Skip to main content

Edit invoices sent to customer

More
12 years 11 months ago #129140 by trogladyte
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14

The invoice is titled "Hi". Customer wants to add the person's first name after "Hi" and some other text. I'm picking the name is done by adding {address_firstname} after "Hi", and the other plain text after that. But where, and how, do I add this please? Maybe order_creation_notification.html.php?

Thanks.

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

More
12 years 11 months ago #129159 by nicolas
Hi,

It's in the order_creation_notification.preload.php file and you should change the line:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', @$customer->name),

to:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', @$data->cart->billing_address->address_firstname),

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

More
12 years 11 months ago #129182 by trogladyte
Where id the file Nicolas - I can't locate it? Thanks.

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

More
12 years 11 months ago #129233 by Xavier
Hi,

The file is in the folder "media\com_hikashop\mail"

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

More
12 years 11 months ago #129430 by trogladyte
OK got that thanks. My customer also wants "Orders normally ship within 72 Hours." after the Hi <customer first name>. How do I add that?

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

More
12 years 11 months ago #129491 by Xavier
Hi,

You just have to add the line:
Code:
{TXT:ORDER_SENT_72}
And then in the language file, override part add:

ORDER_SENT_72="Orders normally ship within 72 Hours"

www.hikashop.com/support/faq.html#tran

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

More
12 years 11 months ago #129585 by trogladyte
Is there a section in the language file called "Override"? I really don't know where to enter this.

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

More
12 years 11 months ago #129586 by Jerome
Sure !

Please read "How to modify translations for my precise case ?" in the documentation link that Xavier gave you.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
12 years 11 months ago #129601 by trogladyte
Thanks Jerome. I've added that to the Languages override. The code {TXT:ORDER_SENT_72} I assume gets added just after the "Hi <customer name> line in the order_creation_notification.preload.php file? It's just I see no entries in that sort of format in that file.

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

More
12 years 11 months ago #129611 by Jerome
Hi,

You do not require to edit the preload file to add simple translated texts.
If the text key is not found in the prelod file, HikaShop will use the a simple translation. So it will use the text you put in your language override.
The text puts in the preload file are more text with some variables, like "Hi <customer name>" where the custom name is displayed.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.248 seconds
Powered by Kunena Forum