- Posts: 6
- Thank you received: 0
How do I add a custom user field to emails
8 years 8 months ago #285377
by liewald
How do I add a custom user field to emails was created by liewald
-- HikaShop version -- : 3.2.2
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.6.31
-- Browser(s) name and version -- : firefox 57.0.3
Hi
I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!
-- Joomla version -- : Joomla! 2.5.14
-- PHP version -- : 5.6.31
-- Browser(s) name and version -- : firefox 57.0.3
Hi
I have added a custom user field which is a society registration number to the user and it appears on all tables etc however I would like to add the field to the notification emails but cannot find any information on how to do so. Any pointers would really help!
Please Log in or Create an account to join the conversation.
8 years 8 months ago #285388
by nicolas
Replied by nicolas on topic How do I add a custom user field to emails
Hi,
You can edit the emails via the menu System>Emails.
There, you can add such code in the HTML version:
<?php echo $data->cart->customer->XXX; ?>
where XXX is the column name of your custom field of the table "user".
You can edit the emails via the menu System>Emails.
There, you can add such code in the HTML version:
<?php echo $data->cart->customer->XXX; ?>
where XXX is the column name of your custom field of the table "user".
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 58
- Thank you received: 2
8 years 7 months ago #286690
by chellemiller11
Replied by chellemiller11 on topic How do I add a custom user field to emails
I have a similar question...
What would be the code to add to the HTML email version if we want to include a custom field from the product table? Would it be
<?php echo $data->product->XXX; ?>
where XXX is the column name of your custom field of the table "product" ?
What would be the code to add to the HTML email version if we want to include a custom field from the product table? Would it be
<?php echo $data->product->XXX; ?>
where XXX is the column name of your custom field of the table "product" ?
Please Log in or Create an account to join the conversation.
8 years 7 months ago #286691
by nicolas
Replied by nicolas on topic How do I add a custom user field to emails
It would be:
{VAR:product.XXX}
Note that the tag must be between the tags <!--{START:PRODUCT_LINE}--> and <!--{END:PRODUCT_LINE}--> in the HTML version.
{VAR:product.XXX}
Note that the tag must be between the tags <!--{START:PRODUCT_LINE}--> and <!--{END:PRODUCT_LINE}--> in the HTML version.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds