- Posts: 176
- Thank you received: 5
Custom Fields appearing in admin notifications but not customer notifications
8 years 5 months ago #291840
by dustinjc
Custom Fields appearing in admin notifications but not customer notifications was created by dustinjc
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7
We have a few custom fields defined in checkout. These are coming through fine in the admin notification emails, but are not coming through to the customer notifications. I looked at the html templates for both and they seem to be the same.
The fields are restricted to only show up for specific user groups in checkout. Is this somehow causing them to not appear in the employee emails?
Please advise.
Thank you,
Dustin
-- Joomla version -- : 3.8.6
-- PHP version -- : 7
We have a few custom fields defined in checkout. These are coming through fine in the admin notification emails, but are not coming through to the customer notifications. I looked at the html templates for both and they seem to be the same.
The fields are restricted to only show up for specific user groups in checkout. Is this somehow causing them to not appear in the employee emails?
Please advise.
Thank you,
Dustin
Please Log in or Create an account to join the conversation.
8 years 5 months ago #291858
by nicolas
Replied by nicolas on topic Custom Fields appearing in admin notifications but not customer notifications
Hi,
Please check the display settings of your custom fields. They have specific display settings for each email so it's possible to disable their display for some emails and not others.
Also, it could well come from an override of the emails if they are from before HikaShop 3.
You have such line in the preload of the emails which loads the custom fields allowed to be displayed with the name of the email:
$fields = $fieldsClass->getFields('display:mail_order_creation=1',$data->cart,'order','');
Before HikaShop 3, you didn't had different options for different emails and thus the part 'display:mail_order_creation=1' was different and it's not compatible with the new options.
Please check the display settings of your custom fields. They have specific display settings for each email so it's possible to disable their display for some emails and not others.
Also, it could well come from an override of the emails if they are from before HikaShop 3.
You have such line in the preload of the emails which loads the custom fields allowed to be displayed with the name of the email:
$fields = $fieldsClass->getFields('display:mail_order_creation=1',$data->cart,'order','');
Before HikaShop 3, you didn't had different options for different emails and thus the part 'display:mail_order_creation=1' was different and it's not compatible with the new options.
Please Log in or Create an account to join the conversation.
Time to create page: 0.167 seconds