Edit invoices sent to customer

  • Posts: 279
  • Thank you received: 1
11 years 1 month ago #129140

-- 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.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #129159

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.

  • Posts: 279
  • Thank you received: 1
11 years 1 month ago #129182

Where id the file Nicolas - I can't locate it? Thanks.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129233

Hi,

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

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

  • Posts: 279
  • Thank you received: 1
11 years 1 month ago #129430

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129491

Hi,

You just have to add the line:

{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.

  • Posts: 279
  • Thank you received: 1
11 years 4 weeks ago #129585

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 weeks ago #129586

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.

  • Posts: 279
  • Thank you received: 1
11 years 4 weeks ago #129601

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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 weeks ago #129611

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.061 seconds
Powered by Kunena Forum