Skip to main content

How do I add a custom user field to emails

More
8 years 8 months ago #285377 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!

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

More
8 years 8 months ago #285388 by nicolas
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".

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

More
8 years 7 months ago #286690 by chellemiller11
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" ?

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

More
8 years 7 months ago #286691 by nicolas
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.

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

Time to create page: 0.191 seconds
Powered by Kunena Forum