Page 1 of 1

Product Option

Posted: Wed Oct 20, 2010 5:06 pm
by Beachgirl
I need to include a "Product Option" that is a text area for my customers to write their own personalized words for a product. Is this possible and any suggestions on how I can add this?

Re: Product Option

Posted: Thu Oct 21, 2010 12:21 am
by Brent
At this time, Its not. You would have to create a new text field in order to do this.
Would this be on one product only or one product at a time.
The text would also have to be sanitized.

Re: Product Option

Posted: Thu Oct 21, 2010 7:51 am
by Beachgirl
One product at a time. I have about 30 different products out of 100 that have this option. I added the code below to the "product_options" template and this would be ok, but I don't know how to get the results of the text to show up in the cart/checkout sections. Would something like this work? Thanks so much for your help!

<div class="e">Write Your Message</div>
<div class="f">
<textarea name="comment" cols="30" rows="2"></textarea>
</div>

Re: Product Option

Posted: Thu Oct 21, 2010 8:17 am
by Brent
Try it. When you retrieve the results, use $this->request->sanitize instead of request->gethtml.
It cleans the text of bad stuff user might try to include.
If it is only one product per order, you code probably just add the text to the notification email.

We have discussed this and will probably add an option text input field to each product.
It would then be included in the order and orders database and could be used for more than one product per order.
We'll look at it more in the next week.

Re: Product Option

Posted: Thu Oct 21, 2010 1:50 pm
by Beachgirl
Thanks so much for you quick responses and help. If you guys decide to add this feature I would be so happy. For now, I will just direct customers to write what they would like in the comments area during checkout.

Re: Product Option

Posted: Fri Dec 03, 2010 1:42 pm
by cmebd
Brent wrote:Try it. When you retrieve the results, use $this->request->sanitize instead of request->gethtml.
It cleans the text of bad stuff user might try to include.
If it is only one product per order, you code probably just add the text to the notification email.

We have discussed this and will probably add an option text input field to each product.
It would then be included in the order and orders database and could be used for more than one product per order.
We'll look at it more in the next week.
Hi Brent - an extension to this request would be for customer being able to upload a graphic. I do embroidery digitising and this type of addition would be extremely handy.

cheers
Christine

Re: Product Option

Posted: Fri Dec 03, 2010 3:06 pm
by Brent
Upload will probably be included in version 1.2.5.
We're just adding a dimension class for linear, or area, or volume dimensions for products.
Option quantities will be added as well for products with options.