Add order date in email template

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
3 years 10 months ago #318565

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.0.33

Hi, I need to automatically enter the order date in the email template.
How can I do it?
Thanks

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

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
3 years 10 months ago #318579

Hi,

You should be able to do that by adding such PHP in the HTML section of the email:

<?php echo hikashop_getDate($data->order_created,'%d %B %Y %H:%M'); ?>

The following user(s) said Thank You: Scudeletti

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

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
3 years 10 months ago #318596

I confirm; I tried and now it works properly;
thank you very much.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum