EMAIL Order creation notification - Order number

  • Posts: 78
  • Thank you received: 0
  • Hikashop Business
2 months 2 weeks ago #299887

-- HikaShop version -- : HikaShop Business: 4.0.0
-- Joomla version -- : Joomla! 3.8.13 Stable
-- PHP version -- : 7.0.32
-- Browser(s) name and version -- : FIREFOX

Hi

After the order is placed, the order confirmation email received by the customer should contain the reminder to include the order number in the bank transfer description

However, the order number is not despayed in the email but the symbol %s.

Here it is the string created in the EN language file
ORDER_EMAIL_PAYREMINDER="Do not forget to include the order number %s in the bank transfer description so that we can match it to your order".

What should be the corresponding string in the HTML version of the Order creation notification email?
Thanks
Imma

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

  • Posts: 64484
  • Thank you received: 9313
  • MODERATOR
2 months 2 weeks ago #299894

Hi,

There is no such "ORDER_EMAIL_PAYREMINDER" translation key in the language file of HikaShop.
The translation key is INCLUDE_ORDER_NUMBER_TO_TRANSFER and you can find it in the language file of HikaShop:
INCLUDE_ORDER_NUMBER_TO_TRANSFER="Do not forget to include the order number ( %s ) in the comments of the bank transfer so that we can match it to your order."
And in the preload of the order creation notification email you can also see this translation key being used:

echo '<p>' . JText::sprintf('PLEASE_TRANSFERT_MONEY',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER',$data->order_number) . '</p>';
So I'm not sure how you were able to have what you're describing.
I suppose that you have some old override of the preload of that email which uses a translation we don't use anymore.

In the override of the preload, you must have something like that: JText::_('ORDER_EMAIL_PAYREMINDER'.... while it should be:
JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER'...

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

Time to create page: 0.050 seconds
Powered by Kunena Forum