Add a custom text field to product checkout?

  • Posts: 317
  • Thank you received: 20
  • Hikashop Business
11 years 8 months ago #93197

For one product, the customer needs to also collect a license number. It has to be a text field. Is this possible? I'd rather not use the "entry"/register form because it's cumbersome. And there cannot be multiple unique instances.
Thanks,
-JG

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #93226

hi,

I think that you'll probably find your answer there :

You have two possibilities:
1. You can create a custom field of the table "order" via the menu Display->Custom fields. The field will appear during the checkout and attached to the order.
2. You can create a custom field of the table "item" via the menu Display->Custom fields. The field will appear on the product page and attached to the product in the cart (and later on to the product in the order).
In both cases, that is only possible with the Business edition. Also, in both cases, the information will be available in the emails and in the order details on the back end.

Hope this will help you.

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

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #94747

Hi,

In regards to the custom fields in the email messages; where do I change the code a bit to have the custom fields more compresesd as well as has the product name only bolded so it is distinct when more than one item is purchased. See attached screenshot where I boxed the item that I would like bolded but not the custom fields underneath.

Thanks

Attachments:

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

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #94846

My inquiry resolved. :cheer:
Found the code to edit in the order creation email notice to customer:

echo '<p style="margin:0;">'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey).'</p>';

Last edit: 11 years 8 months ago by aheng5.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum