Skip to main content

Add a written in option to a product

14 years 11 months ago #29942 by fvteamsports
I'm selling t-shirts with personal names on the back. I need a way to let the customer type in a name on each item purchased. Maybe a box under each item that would say "personal name for this specific shirt". Is this possible? They might order 4 shirts if different sizes but only the meduim size gets a name.

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

14 years 11 months ago #29963 by nicolas
You can do that by creating a custom field of the table "item" via the menu Display->Custom fields in the Business edition.

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

13 years 8 months ago - 13 years 8 months ago #92726 by fletch88
I have this setup but also. If a buyer chooses 5 and clicks "add to cart" It only gets one message. How do I get it to collect a message per item or hide the choice to add multiple items?
Last edit: 13 years 8 months ago by fletch88.

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

13 years 7 months ago #92834 by Xavier
The easiest way is to hide the choice of adding multiple items.
You can do it via css:
Code:
.hikashop_product_quantity_field, .hikashop_product_quantity_field_change{display: none;}

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

13 years 7 months ago #93365 by fletch88
Thank you. Looks like that would hide it for all products which is not really what I want either. Really would just like to have a custom field per product selected.

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

13 years 7 months ago #93411 by nicolas
It's not possible to have one instance of custom fields per quantity of the product selected. (not unless you recode the whole custom fields and add to cart handling as well as a big part of the product page display...)
It's far easier simply not allow the user to add products to the cart more than one at a time when needed.

To do that, you can add the code:
Code:
<?php if(!empty($this->itemFields)){ $this->params->set('show_quantity_field',0); } ?>
at the beginning of the file "quantity" of the view "product" via the menu Display->Views.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum