Need to add the order date/time to order creation e-mail

  • Posts: 50
  • Thank you received: 3
4 years 8 months ago #308450

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.0.33
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : None

My customer would like to see the date and time of the order within the body of the e-mail.

I tried adding
<?php echo hikashop_getDate($data->cart->order_created); ?>
to both html and txt and previewed but do not see the date.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 8 months ago #308461

Hi,

This should indeed display the date of the order in the email. Did you try to check the result with the "preview" button of the email edition interface ?
Could you provide some screenshots of the pages with your modifications and of the result ?

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

  • Posts: 50
  • Thank you received: 3
4 years 8 months ago #308471

Yes I did try the preview. See attached screenshots

Attachments:

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
4 years 8 months ago #308476

Hi,

I'm not able to reproduce the problem. Can you confirm that you click on the "save" button of the email before clicking on the "preview" button ?

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

  • Posts: 50
  • Thank you received: 3
4 years 8 months ago #308501

Nicolas,

My fault, I thought the preview button worked without having to save it. The code is working fine now. Thanks.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum