Modify order notification email layout

  • Posts: 252
  • Thank you received: 1
8 years 2 months ago #250840

-- HikaShop version -- : HikaShop Business 2.6.4
-- Joomla version -- : 3.3.5
-- PHP version -- : 5.5.12

Hi,
I am going to modify the layout of the order notification email, which template file should I use?

Best regards
Scott

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

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #250853

Hello Scott,

To do that the solution will probably be to directly edit the "Order status notification" email via "Hikashop->System->Emails".

The following user(s) said Thank You: twscott

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

  • Posts: 252
  • Thank you received: 1
8 years 1 month ago #251118

Hi Mohamed,
Thanks for the replay.
I've modify the order status notification code in hikashop's editing page, and it worked fine.
But I could not find the file that was modified in my file system. Could you tell me the path where the file that I saved is?

Thanks
Best regards
Scott

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

  • Posts: 252
  • Thank you received: 1
8 years 1 month ago #251119

Oh, I found it.
It's in media\com_hikashop\mail, thanks anyway.

Best regards
Scott

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

  • Posts: 252
  • Thank you received: 1
8 years 1 month ago #251217

Hi Mohamed,
We have created a product custom field and set it to show on the notification email. It shows correctly.
My problem is I need to access this custom field in order_admin_notification.preload.modified.php, I know it must be in somewhere but I look through the $data and $var, just couldn't find it. Could you tell me where could it be?



Best regards
Scott

Attachments:
Last edit: 8 years 1 month ago by twscott.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 month ago #251260

Hi,

After the line:

$product = @$productClass->all_products[$item->product_id];
you can find your custom field data for the current row in $product->XXX where XXX is the column name of your custom field.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum