order option

Questions and answers about ShopSite Custom Templates
Post Reply
queenofangels
Posts: 78
Joined: Tue May 24, 2011 5:36 pm

order option

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

Re: order option

Post by robm »

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

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

Rob
LexiConn
[url=http://lexiconn.com]ShopSite Host[/url]
[url=http://lexiconn.com/whitepapers.html]How to Get the Most Out of ShopSite[/url]
queenofangels
Posts: 78
Joined: Tue May 24, 2011 5:36 pm

Re: order option

Post by queenofangels »

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

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

Re: order option

Post 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
LexiConn
[url=http://lexiconn.com]ShopSite Host[/url]
[url=http://lexiconn.com/whitepapers.html]How to Get the Most Out of ShopSite[/url]
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: order option

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

Re: order option

Post 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.
Post Reply