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

#   Custom field in the attach serial plugin

##

- **[Smiler](/forum/user/2107-smiler "View Smiler's Profile")**
- [![Smiler's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2107.jpg)](/forum/user/2107-smiler "View Smiler's Profile") Topic Author
- [ Offline](/forum/user/2107-smiler)

Less More

- Posts: 52
- Thank you received: 2
-
-
-
- [](http://www.arran-cats.com)
-

12 years 9 months ago [\#141392](#141392) by [Smiler](/forum/user/2107-smiler "View Smiler's Profile")  *[Custom field in the attach serial plugin](/forum/14-hikaserial/865361-custom-field-in-the-attach-serial-plugin#141392 "Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.  Great.  Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI&#95;CUSTOMER&#95;SERIAL field in attach serial to whatever I call my custom field?  Say my custom field is.... GIFT&#95;BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial? When I try it, where the persons name should be, I get gift&#95;beneficiary. Obviously I'm doing something very wrong here but what?")* was created by *[Smiler](/forum/user/2107-smiler "View Smiler's Profile")*

Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.

Great.

Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI_CUSTOMER_SERIAL field in attach serial to whatever I call my custom field?

Say my custom field is.... GIFT_BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial?
When I try it, where the persons name should be, I get gift_beneficiary. Obviously I'm doing something very wrong here but what?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY1MzYxLWN1c3RvbS1maWVsZC1pbi10aGUtYXR0YWNoLXNlcmlhbC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 9 months ago [\#141397](#141397) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom field in the attach serial plugin](/forum/14-hikaserial/865361-custom-field-in-the-attach-serial-plugin#141397 "Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.  Great.  Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI&#95;CUSTOMER&#95;SERIAL field in attach serial to whatever I call my custom field?  Say my custom field is.... GIFT&#95;BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial? When I try it, where the persons name should be, I get gift&#95;beneficiary. Obviously I'm doing something very wrong here but what?")*

Hi,

To display an item custom field, you can do :
1 - Select the type "order product..." and type the namekey of the custom field. It will display the content of the item custom field.
2 - Use a dynamic text with the content " {order_product.*the\_customfield\_namekey*} ". It works also with a translation like the sample in the attach serial documentation (for HI_CUSTOMER_SERIAL)

[ www.hikashop.com/support/documentation.h...ns-attachserial-form](http://www.hikashop.com/support/documentation.html?id=152:hikaserial-plugins-attachserial-form)

Regards,

---

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

The following user(s) said Thank You: [Smiler](/forum/user/2107-smiler "View Smiler's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY1MzYxLWN1c3RvbS1maWVsZC1pbi10aGUtYXR0YWNoLXNlcmlhbC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Smiler](/forum/user/2107-smiler "View Smiler's Profile")**
- [![Smiler's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2107.jpg)](/forum/user/2107-smiler "View Smiler's Profile") Topic Author
- [ Offline](/forum/user/2107-smiler)

Less More

- Posts: 52
- Thank you received: 2
-
-
-
- [](http://www.arran-cats.com)
-

12 years 9 months ago [\#141485](#141485) by [Smiler](/forum/user/2107-smiler "View Smiler's Profile")  Replied by *[Smiler](/forum/user/2107-smiler "View Smiler's Profile")* on topic *[Custom field in the attach serial plugin](/forum/14-hikaserial/865361-custom-field-in-the-attach-serial-plugin#141485 "Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.  Great.  Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI&#95;CUSTOMER&#95;SERIAL field in attach serial to whatever I call my custom field?  Say my custom field is.... GIFT&#95;BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial? When I try it, where the persons name should be, I get gift&#95;beneficiary. Obviously I'm doing something very wrong here but what?")*

That did it Jerome, thanks very much. ![:)](/media/kunena/emoticons/3.png ":)")
Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY1MzYxLWN1c3RvbS1maWVsZC1pbi10aGUtYXR0YWNoLXNlcmlhbC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lcoulon](/forum/user/24572-lcoulon "View lcoulon's Profile")**
- [![lcoulon's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar24572.jpg)](/forum/user/24572-lcoulon "View lcoulon's Profile")
- [ Offline](/forum/user/24572-lcoulon)

Less More

- Posts: 79
- Thank you received: 0
-
-

12 years 5 months ago [\#157116](#157116) by [lcoulon](/forum/user/24572-lcoulon "View lcoulon's Profile")  Replied by *[lcoulon](/forum/user/24572-lcoulon "View lcoulon's Profile")* on topic *[Custom field in the attach serial plugin](/forum/14-hikaserial/865361-custom-field-in-the-attach-serial-plugin#157116 "Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.  Great.  Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI&#95;CUSTOMER&#95;SERIAL field in attach serial to whatever I call my custom field?  Say my custom field is.... GIFT&#95;BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial? When I try it, where the persons name should be, I get gift&#95;beneficiary. Obviously I'm doing something very wrong here but what?")*

Hello

Can someone tell me what is 'namekey', i do not find this label in the product table.

Actually i'm using a French version , i will tried to use the "code" fieldname with no success.
My product code is 'vol_00'

I also would like to display the order number, but i do not find how to do it.

This is attached below what i did so far.

Many thanks for your help,

- [ ![hf587e30.png](/forum/attachment/17437) ](/forum/attachment/17437 "hf587e30.png") [ ](/forum/attachment/17437?download=1 "hf587e30.png")
- [ ![h5e66279.png](/forum/attachment/17438) ](/forum/attachment/17438 "h5e66279.png") [ ](/forum/attachment/17438?download=1 "h5e66279.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY1MzYxLWN1c3RvbS1maWVsZC1pbi10aGUtYXR0YWNoLXNlcmlhbC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#157190](#157190) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom field in the attach serial plugin](/forum/14-hikaserial/865361-custom-field-in-the-attach-serial-plugin#157190 "Setting up to sell gift certificates via the coupon generator and attach serial. I now have everything working perfectly, client buys gift cert and Hikashop sends confirmation email with attached serial and gift cert.  Great.  Now I would like to be able to let the client nominate the gift cert for someone else. I assume I create a custom field as an item with the persons name as a text field and attach that to the gift certificate product. Then change the HI&#95;CUSTOMER&#95;SERIAL field in attach serial to whatever I call my custom field?  Say my custom field is.... GIFT&#95;BENEFICIARY and the input would be the name of the person the gift cert is for, how do I get that into attach serial? When I try it, where the persons name should be, I get gift&#95;beneficiary. Obviously I'm doing something very wrong here but what?")*

Hi,

The namekeys are the column name from the database.
You can find the HikaShop database structure here : [ www.hikashop.com/support/support/documen...ocumentation.html#db](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#db)

Example : For the order number, it is the field "order_number" from the table "order.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY1MzYxLWN1c3RvbS1maWVsZC1pbi10aGUtYXR0YWNoLXNlcmlhbC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.056 seconds

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