AlegroCart open source E-commerce
Alegro Cart Hosting Made Easy

Product Option

Support for coding, modules or other software issues

Product Option

Postby 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?
Beachgirl
 
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: Product Option

Postby 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.
User avatar
Brent
Site Admin
 
Posts: 3105
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product Option

Postby 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 1131 times
Beachgirl
 
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: Product Option

Postby 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.
User avatar
Brent
Site Admin
 
Posts: 3105
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product Option

Postby 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.
Beachgirl
 
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: Product Option

Postby 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
Be nice to the people you meet on the way up! They may be the ones holding the net when you're on your way down (don't know who first said that).
User avatar
cmebd
 
Posts: 31
Joined: Sun Jul 04, 2010 3:47 pm

Re: Product Option

Postby 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.
User avatar
Brent
Site Admin
 
Posts: 3105
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh


Return to Coding Support

Who is online

Users browsing this forum: No registered users and 1 guest