Custom field in the attach serial plugin

  • Posts: 52
  • Thank you received: 2
10 years 9 months ago #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_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 or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141397

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Smiler

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

  • Posts: 52
  • Thank you received: 2
10 years 9 months ago #141485

That did it Jerome, thanks very much. :)
Regards,

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

  • Posts: 79
  • Thank you received: 0
10 years 5 months ago #157116

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,

Attachments:

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #157190

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

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.058 seconds
Powered by Kunena Forum