Custom Product Text Fields -- HELP!

General ShopSite user discussion

Custom Product Text Fields -- HELP!

Postby maxms » Tue Aug 11, 2009 8:55 pm

Hello,

I have spent hours on this forum and the ShopSite support areas trying to figure this out. I am trying to include personalization fields for a particular product. I've found the Cookbook page that shows the code for the product template and have placed that however, when I place the product in my cart, those fields do not appear in the Customer Text Entry field. Isn't that where they should go? Do I need to place a tag in the Customer Text Entry Header field?

So far I have:

1. Checked the "Check here to create a Customer Text Entry box for this product in the shopping cart." box in the product info area

2. Created the following custom product template:

######################
[-- DEFINE PRODUCT --]
######################
### Set a bunch of variables ###
[-- VAR.TableLayout no --]
#[-- VAR.Form no --]
[-- VAR.Options no --]
[-- VAR.Quantity no --]
[-- VAR.Graphic no --]

#####################
# GRAPHIC ALIGNMENT #
#####################
[-- INCLUDE Product-GraphicAlign PROCESS --]

####################
# PRODUCT GRAPHIC #
####################
[-- INCLUDE Product-Graphic PROCESS --]

########################
# PRODUCT NAME #
########################
[-- INCLUDE Product-Name PROCESS --]

####################
# PRODUCT PRICE #
####################
[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price PROCESS --]
[-- END_IF --]

########################
# PRODUCT SKU #
########################
[-- INCLUDE Product-Sku PROCESS --]

########################
# PRODUCT DESCRIPTION #
########################
[-- INCLUDE Product-Description PROCESS --]

#######################
# ADD TO CART BUTTON #
#######################
### Start the form for Add to Cart button ###
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method="post">
<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 --]">

[-- PRODUCT.OptionText --]

<input type=hidden name="[-- PRODUCT.RecordNumber --]:finoptnum" value=5>

<input name="[-- PRODUCT.RecordNumber --]:finopt:0" type=hidden
id="[-- PRODUCT.RecordNumber --]:finopt:0" value="Name: ">Name:
<input name="[-- PRODUCT.RecordNumber --]:finopt:0" type="text"
id="[-- PRODUCT.RecordNumber --]:finopt:0" value="" size="15"><br>

<input name="[-- PRODUCT.RecordNumber --]:finopt:1" type=hidden
id="[-- PRODUCT.RecordNumber --]:finopt:1" value="Date of Birth: ">Date of Birth:
<input name="[-- PRODUCT.RecordNumber --]:finopt:1" type="text"
id="[-- PRODUCT.RecordNumber --]:finopt:1" value="" size="15"><br>

<input name="[-- PRODUCT.RecordNumber --]:finopt:2" type=hidden
id="[-- PRODUCT.RecordNumber --]:finopt:2" value="Time of Birth: ">Time of Birth:
<input name="[-- PRODUCT.RecordNumber --]:finopt:2" type="text"
id="[-- PRODUCT.RecordNumber --]:finopt:2" value="" size="15"><br>

<input name="[-- PRODUCT.RecordNumber --]:finopt:3" type=hidden
id="[-- PRODUCT.RecordNumber --]:finopt:3" value="Weight: ">Weight:
<input name="[-- PRODUCT.RecordNumber --]:finopt:3" type="text"
id="[-- PRODUCT.RecordNumber --]:finopt:3" value="" size="15"><br>

<input name="[-- PRODUCT.RecordNumber --]:finopt:4" type=hidden
id="[-- PRODUCT.RecordNumber --]:finopt:4" value="Length (inches): ">Length (inches):
<input name="[-- PRODUCT.RecordNumber --]:finopt:4" type="text"
id="[-- PRODUCT.RecordNumber --]:finopt:4" value="" size="15"><br>

<a href="[-- PRODUCT.AddToCartURL --]">
[-- IF AddImage? --]
<img [--AddImage--]></a>
[-- ELSE --]
[-- AddText --]</a>
[-- END_IF --]

<a href="[-- SHOPPING_CART_URL --]">
[-- IF ViewImage? --]
<img [--ViewImage--]></a>
[-- ELSE --]
[-- ViewText --]</a>
[-- END_IF --]<br clear=all>
</form>

[-- END_DEFINE PRODUCT --]


#############################
[-- DEFINE MORE_INFO_PAGE --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#############################
[-- VAR.MoreInfo "yes" --]

[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]


[-- VAR.MoreInfo "" --]
[-- END_DEFINE MORE_INFO_PAGE --]

3. Designated my custom product template in the product layout area.

Any ideas as to what I am missing? Here is the page for testing:
http://www.tide-mark.com/print-polkadot-elephants.htm

Thank you for any help you can provide.
maxms
 
Posts: 5
Joined: Wed Jul 01, 2009 11:26 am
Location: Broomfield, CO

Postby Jim » Thu Aug 13, 2009 9:25 pm

See the help on this page:
http://www.shopsite.com/help/10.0/en-US ... oduct.html

in the section [-- PRODUCT.OptionsBox --]

Note that the option for the text box is called freeopt not finopt which is for order options.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 133 guests