Skip to main content

Modify order notification email layout

10 years 2 months ago #250840 by twscott
-- 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.

10 years 2 months ago #250853 by Mohamed Thelji
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.

10 years 1 month ago #251118 by twscott
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.

10 years 1 month ago #251119 by twscott
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.

10 years 1 month ago - 10 years 1 month ago #251217 by twscott
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
Last edit: 10 years 1 month ago by twscott.

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

10 years 1 month ago #251260 by nicolas
Hi,

After the line:
Code:
$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.068 seconds
Powered by Kunena Forum