Add a written in option to a product

  • Posts: 2
  • Thank you received: 0
12 years 11 months ago #29942

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.

  • Posts: 82795
  • Thank you received: 13356
  • MODERATOR
12 years 11 months ago #29963

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.

  • Posts: 10
  • Thank you received: 0
11 years 8 months ago #92726

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: 11 years 8 months ago by fletch88.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92834

The easiest way is to hide the choice of adding multiple items.
You can do it via css:

.hikashop_product_quantity_field, .hikashop_product_quantity_field_change{display: none;}

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

  • Posts: 10
  • Thank you received: 0
11 years 8 months ago #93365

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.

  • Posts: 82795
  • Thank you received: 13356
  • MODERATOR
11 years 8 months ago #93411

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:

<?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.081 seconds
Powered by Kunena Forum