OrderAnywhere: possible to add text to the submission form?

General ShopSite user discussion

OrderAnywhere: possible to add text to the submission form?

Postby dlundell » Fri Sep 15, 2006 12:57 am

Hi,

Is it possible to add data to an OrderAnywhere form?

An example of what I'm after. Let's say I've defined a product
for the purchasing of a photo, with options for 5x7, 8x10, etc.

Now I want to add hundreds of photos at a time to my web site,
for purchase via Shopsite. Clearly I don't want to have to add
a product for each photo I add to my site, but rather I'd like to
use an OrderAnywhere link to the photo product, and include
a tag (in this case the unique name of the photo) -- so that it
shows up in the order data.

Is this possible?

Thanks,

- dc
dlundell
 
Posts: 95
Joined: Fri Aug 04, 2006 6:13 pm

Postby robm » Fri Sep 15, 2006 4:46 am

You could do this using the "Variable Name" feature of ShopSite where you can specify the name of the product "on the fly" for being added to the cart. You can then code the variable name in your order anywhere code and have custom product names using just one product.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby dlundell » Mon Sep 18, 2006 9:39 pm

robm wrote:You could do this using the "Variable Name" feature of ShopSite where you can specify the name of the product "on the fly" for being added to the cart. You can then code the variable name in your order anywhere code and have custom product names using just one product.


From what I understand, the Variable Name feature is tied to the Variable Pricing feature, no?

Can you (or someone) say more about your suggestion above?

For example, here's a block of OrderAnywhere code:

<form action="http://www.domain.com/cgi-sys/cgiwrap/zr/sc/order.cgi" method=post>
Select a flavor:<BR>
<select name="400:finopt:0" size=1>
<option value="5x7 inches">5x7 inches
<option value="8x10 inches;+5">8x10 inches
<option value="11x14 inches;+5">11x14 inches
</select>
<input type=hidden name="400:finoptnum" value=1>
<BR>Quantity <input type=text size="2" name="400:qnty" value="1" >
<input type=hidden name="storeid" value="*1c368ef5809e01d7802056ba19414c01">
<input type=hidden name="dbname" value="products">
<input type=hidden name="function" value="add">
<input type=hidden name="itemnum" value="400">
<input type=image src="http://www.domain.com/store/media/add.gif" alt="add.gif" width="70" height="19" hspace="3" v
space="3" border="0" align="bottom" name="Add to Cart">
<input type=image src="http://www.domain.com/store/media/viewcart.gif" alt="viewcart.gif" width="70" height="19" hs
pace="3" vspace="3" border="0" align="bottom" name="View Cart">
</form>

How would one encode a variable name in this code?

Thanks,

- dc
dlundell
 
Posts: 95
Joined: Fri Aug 04, 2006 6:13 pm

Postby loren_d_c » Wed Sep 20, 2006 1:05 pm

First, you would need to have ShopSite Pro v7.0 or newer, and have the 'Variable Pricing' and 'Variable Name' checkboxes checked in the 'Variable Price' section for this product section for this particular product. Then you would add the following field to the form to send in the name of the product from the form like this:

Code: Select all
<input type=hidden name="400:name" value="this is my variable name">


Note that the name of this field should be "[itemnum]:name", and the itemnum value for this product in your example is 400, so in order to work for this product the field name must be "400:name".

If you want the shopper to be able to enter the name, you can make it a text entry field like this:

Code: Select all
<input type=text size="15" name="400:name" value="[enter product name]" >


-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

finopt question

Postby jimk » Wed Jul 30, 2008 9:22 am

Hi Rick and Roy,

Can you explain where you found documentation on finopt?

I visisted your http://www.winegiftclub.com site and the example make a lot of sense, but when I look at my shopping cart everything gets passed in the ss_finite_options[0]="Text #1 ,28| | | | | "; field verses in yours the data gets put in the ss_fields below
ss_field1[0]="Aged+to+Perfection";
ss_field2[0]="28";
ss_field3[0]="To+Perfection";
ss_field4[0]="Joe%27s+Birthday+Wine";
ss_field5[0]="2006";
ss_field6[0]="3";

Also the custom text does not show up in the shopping cart? Any ideas or where to look for more documentation?

My cart is http://express-it.com/store/

Thanks,
Jim K.
jimk
 
Posts: 14
Joined: Wed Jul 23, 2008 9:16 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 144 guests