Custom field in the attach serial plugin
12 years 9 months ago #141392
by Smiler
Custom field in the attach serial plugin was created by Smiler
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?
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.
12 years 9 months ago #141397
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Custom field in the attach serial plugin
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,
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.
The following user(s) said Thank You: Smiler
Please Log in or Create an account to join the conversation.
12 years 9 months ago #141485
by Smiler
Replied by Smiler on topic Custom field in the attach serial plugin
That did it Jerome, thanks very much. 
Regards,
Regards,
Please Log in or Create an account to join the conversation.
12 years 5 months ago #157116
by lcoulon
Replied by lcoulon on topic Custom field in the attach serial plugin
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,
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,
Please Log in or Create an account to join the conversation.
12 years 5 months ago #157190
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Custom field in the attach serial plugin
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,
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.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.058 seconds