Pre-Select Size from Buy now button

General ShopSite user discussion

Pre-Select Size from Buy now button

Postby postalservice14 » Mon Mar 02, 2009 10:10 am

Hello,

I was wondering if anyone knew of a way to pre-select a product size using the OrderAnywhere Links?

Thanks,

John
postalservice14
 
Posts: 2
Joined: Mon Mar 02, 2009 10:01 am

Postby Jim » Tue Mar 03, 2009 9:54 am

The html generated for an option list will be something like this
<form action="http://mydomain.com/cgi-bin/sc/order.cgi" method=post>
<select name="3:finopt:0" size=1>
<option value="Small">Small
<option value="Medium">Medium
<option value="Large">Large
</select>
</form>

To indicate the default pre-selected option you would add the word "selected" between the "option" and "value" for that option like this.

<option selected value="Medium">Medium

When the product is displayed the Medium option will be highlighted and when they add to the cart it will be the option selected there.
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 117 guests