Page 1 of 1

order option

PostPosted: Thu May 02, 2013 12:11 pm
by queenofangels
I have a product that can have two lines of monograming. I've been trying to get order options to provide the text box for each line without any success. Is this beyond order options?, or am I missing something?

Queen of Angels

Re: order option

PostPosted: Thu May 02, 2013 12:27 pm
by robm
Check out the ShopSite CookBook that has examples for doing just this:

http://www.shopsite.com/templates/cookbook/product16-textentryfielddivided.shtml

Rob

Re: order option

PostPosted: Sat May 04, 2013 12:00 pm
by queenofangels
Thanks I'll give it a try as soon as I fix a major goof up :roll: :roll:

Re: order option

PostPosted: Wed May 08, 2013 9:01 am
by queenofangels
Hi Rob,
I took your advice and gave the cook book option 1 code a try. I can't make it work with awesome-orange-001-pr-template. I could use a little extra help. I'm not sure if it's me and I can't see the right place to change, or this template doesn't permit this sort of code. In the 'product edit info' all I have done is check the customer text entry box and specified one row and 32 columns. I know I'm missing something; any pointers would be appreciated. :? :?

Re: order option

PostPosted: Wed May 08, 2013 10:32 am
by robm
You'll need to modify the product template with custom add to cart code as described in the section "Custom Text Entry Example 1:" in the cookbook.

This will involve:
- copying the product template to a custom one under Merchandising -> Custom Templates
- editing this custom template in the "DEFINE MORE_INFO" section, looking for the code:
Code: Select all
<input type="hidden" name="storeid" value="[-- STORE_ID --]">
<input type="hidden" name="dbname" value="products">
<input type="hidden" name="function" value="add">
<input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]">


and adding in the custom text entry fields where you want them to appear on the page:
Code: Select all
Line 1 <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text"
id="[-- PRODUCT.RecordNumber --]:freeopt" value="here is line 1" size="15"><br>

Line 2 <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text"
id="[-- PRODUCT.RecordNumber --]:freeopt" value="here is line 2" size="15"><br>

Line 3 <input name="[-- PRODUCT.RecordNumber --]:freeopt" type="text"
id="[-- PRODUCT.RecordNumber --]:freeopt" value="here is line 3" size="15"><br>


Then assigning your products to this custom template.

Rob
ShopSite Hosting

Re: order option

PostPosted: Wed May 08, 2013 11:07 am
by Jim
Note that the section of code that you need to edit may not be in the main product template, it could be in an include file.
I was able to get the fields to work (first example from the cookbook link, not the second one though) by adding the code Rob mentioned in his post to the include file awesome_orange_001_pr_include.sst. That put the fields on the page where the product was assigned. I didn't try it on a moreinfo page to see if it worked there, but it should if you put it in the correct location.

Re: order option

PostPosted: Sat May 11, 2013 12:01 pm
by queenofangels
Thanks everyone!! :D :D All of your help and suggestions worked. It was a good learning experience as well. Thanks Again. :D :D

If you wish to see the results, use this url(http://www.queenofangelsjax.com/Bibles.html). This record has order options as well as the monogram lines. to
see what it looks like in the shopping cart, just click the add to cart button.