[Skip to main content](#vessel-content)

#   Add custom field to Hikaserial email template

##

- **[pixelkraft](/forum/user/39326-pixelkraft "View pixelkraft's Profile")**
- [![pixelkraft's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39326-pixelkraft "View pixelkraft's Profile") Topic Author
- [ Offline](/forum/user/39326-pixelkraft)

Less More

- Posts: 14
- Thank you received: 1
-
-

2 years 6 months ago [\#360578](#360578) by [pixelkraft](/forum/user/39326-pixelkraft "View pixelkraft's Profile")  *[Add custom field to Hikaserial email template](/forum/14-hikaserial/908087-add-custom-field-to-hikaserial-email-template#360578 "-- HikaShop version -- : 5.0.4 -- HikaSerial version -- : 4.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.1.27 -- Browser(s) name and version -- : Chrome  Hi!  The serials we sell are tokens that are added to a URL. In Joomla 3 we ade an override for the show&#95;email&#95;notification&#95;html.php file which looked like this:  &quot;url&#95;ra&quot; and &quot;activation&#95;info&quot; are custom fields of the product.  Unfortunately, after migrating to Joomla 4, the override is not working anymore. When it's in the html folder of my template, no confirmation email is sent at all.  Can you please help me how I can access custom fields of the product in the show&#95;email&#95;notification&#95;html.php ?  Thank you!")* was created by *[pixelkraft](/forum/user/39326-pixelkraft "View pixelkraft's Profile")*

-- HikaShop version -- : 5.0.4
-- HikaSerial version -- : 4.0.2
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.1.27
-- Browser(s) name and version -- : Chrome

Hi!

The serials we sell are tokens that are added to a URL.
In Joomla 3 we ade an override for the show_email_notification_html.php file which looked like this:
Code:

&lt;tr&gt; &lt;td&gt;&lt;a href="&lt;?php echo "{$data-&gt;url_ra}{$data-&gt;serial_data}"; ?&gt;"&gt;Activation link for &lt;?php echo $data-&gt;order_product_name . '(' . $key . ')'; ?&gt;&lt;/a&gt;&lt;br /&gt; &lt;?php echo $data-&gt;activation_info; ?&gt;&lt;/td&gt; &lt;/tr&gt;

"url_ra" and "activation_info" are custom fields of the product.

Unfortunately, after migrating to Joomla 4, the override is not working anymore. When it's in the html folder of my template, no confirmation email is sent at all.

Can you please help me how I can access custom fields of the product in the show_email_notification_html.php ?

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTA4MDg3LWFkZC1jdXN0b20tZmllbGQtdG8taGlrYXNlcmlhbC1lbWFpbC10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

2 years 6 months ago [\#360593](#360593) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add custom field to Hikaserial email template](/forum/14-hikaserial/908087-add-custom-field-to-hikaserial-email-template#360593 "-- HikaShop version -- : 5.0.4 -- HikaSerial version -- : 4.0.2 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.1.27 -- Browser(s) name and version -- : Chrome  Hi!  The serials we sell are tokens that are added to a URL. In Joomla 3 we ade an override for the show&#95;email&#95;notification&#95;html.php file which looked like this:  &quot;url&#95;ra&quot; and &quot;activation&#95;info&quot; are custom fields of the product.  Unfortunately, after migrating to Joomla 4, the override is not working anymore. When it's in the html folder of my template, no confirmation email is sent at all.  Can you please help me how I can access custom fields of the product in the show&#95;email&#95;notification&#95;html.php ?  Thank you!")*

Hello,

Please edit your override in order to be sure that errors won't affect the email generation, such as : Code:

&lt;?php echo ($data-&gt;url_ra ?? '') . ($data-&gt;serial_data ?? ''); ?&gt;

and Code:

&lt;?php echo ($data-&gt;activation_info?? ''); ?&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTA4MDg3LWFkZC1jdXN0b20tZmllbGQtdG8taGlrYXNlcmlhbC1lbWFpbC10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
