Product Option

Support for coding, modules or other software issues
Post Reply
Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Product Option

Post by Beachgirl » Wed Oct 20, 2010 5:06 pm

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?

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product Option

Post by Brent » Thu Oct 21, 2010 12:21 am

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.

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: Product Option

Post by Beachgirl » Thu Oct 21, 2010 7:51 am

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>
Attachments
Product Option Example.jpg
Product Option Example.jpg (98.28 KiB) Viewed 12631 times

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product Option

Post by Brent » Thu Oct 21, 2010 8:17 am

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.

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: Product Option

Post by Beachgirl » Thu Oct 21, 2010 1:50 pm

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.

User avatar
cmebd
Posts: 31
Joined: Sun Jul 04, 2010 3:47 pm

Re: Product Option

Post by cmebd » Fri Dec 03, 2010 1:42 pm

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

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product Option

Post by Brent » Fri Dec 03, 2010 3:06 pm

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.

Post Reply