order option

Questions and answers about ShopSite Custom Templates

order option

Postby queenofangels » Thu May 02, 2013 12:11 pm

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
queenofangels
 
Posts: 78
Joined: Tue May 24, 2011 5:36 pm

Re: order option

Postby robm » Thu May 02, 2013 12:27 pm

Check out the ShopSite CookBook that has examples for doing just this:

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

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Re: order option

Postby queenofangels » Sat May 04, 2013 12:00 pm

Thanks I'll give it a try as soon as I fix a major goof up :roll: :roll:
queenofangels
 
Posts: 78
Joined: Tue May 24, 2011 5:36 pm

Re: order option

Postby queenofangels » Wed May 08, 2013 9:01 am

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. :? :?
queenofangels
 
Posts: 78
Joined: Tue May 24, 2011 5:36 pm

Re: order option

Postby robm » Wed May 08, 2013 10:32 am

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
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Re: order option

Postby Jim » Wed May 08, 2013 11:07 am

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: order option

Postby queenofangels » Sat May 11, 2013 12:01 pm

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.
queenofangels
 
Posts: 78
Joined: Tue May 24, 2011 5:36 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 23 guests

cron