Drop Down Menu Not Reflecting in Cart

General ShopSite user discussion

Drop Down Menu Not Reflecting in Cart

Postby smileyfta » Fri Mar 05, 2010 5:40 pm

I am using Order Anywhere copy past HTML in Front Page Xp. The problem I am having (and don't seem to be having anywhere else on my site) is that when my customers select the drop down menu item it does not reflect in the cart it just adds the main item with it's main price. For example I have a framing option for +60 and when they select it, it puts the smaller frame in autmatically for $99.95 instead of $159.95 like it should. I have it listed like this under pull down menus:

11"x14" Black Frame-$99.95 ;+0
11"x14" Oak Frame-$99.95 ;+0
11"x14" Cherry Frame-$99.95 ;+0
16"x20" Black Frame-$159.95 ;+60
16"x20" Oak Frame-$159.95 ;+60
16"x20" Cherry Frame-$159.95 ;+60

Even a simple one like this is not working correctly:

Unframed 11"x14"-$49.95 ;+0
Unframed 16"x20"-$74.95 ;+25

What am I doing wrong?

Here is the link to the page:
http://www.fireprints.com/allanalbaitis.htm
smileyfta
 
Posts: 27
Joined: Sun May 24, 2009 3:41 pm

Postby Jim » Fri Mar 05, 2010 8:19 pm

Here is part of the source from your page for a single product.
Code: Select all
 <form action="http://shopsite.ipower.com/ss10.0/sc/order.cgi" method="post">
              <p>Framing Options<br>
              <select name="40:finopt:0" size="1">
              <option value="11" x14" Black Frame-$99.95 ;+0">11&quot;x14&quot; Black
              Frame-$99.95</option>



The problem with your code is that you are including quote marks for the inches and that breaks the options . For example the first option is
Code: Select all
<option value="11" x14" Black Frame-$99.95 ;+0">11&quot;x14&quot; Black
              Frame-$99.95</option>

Since the option itself must be in quotes from the value=" to the "> before the text description of the option. the quote mark after the 11 ends the option and the rest of the line is ignored.

I created a product in ShopSite with inches in the name like this
Code: Select all
12" x 6";+5
and the code that ShopSite generates that works is
Code: Select all
<option value="12&quot; x 6&quot;;+5">12" x 6"


So what you need to do is use the escaped form of the quote for your inches symbol instead of the quote mark in the option value section but you can use the quote marks in the text portion.
Code: Select all
 <option value="11&quot; x14&quot; Black Frame-$99.95 ;+0">11"x14" Black
              Frame-$99.95</option>


When ShopSite generates the pages it will put the appropriate html but if you copy and paste it from OrderAnywhere or manually create the links you will need to fix the quote marks. (note if you use the Show Selected Links option and then view the source for that screen and see the appropriate html. You can copy and paste that to your page if you want.)
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby smileyfta » Fri Mar 05, 2010 9:17 pm

"So what you need to do is use the escaped form of the quote for your inches symbol instead of the quote mark in the option value section but you can use the quote marks in the text portion"

What do you mean by the "escaped" version? I put a space between them and it still doesn't work.... Like this: 11" x 14" ???
smileyfta
 
Posts: 27
Joined: Sun May 24, 2009 3:41 pm

Postby Jim » Fri Mar 05, 2010 10:10 pm

Use
Code: Select all
 &quot;
in place of the " after the numbers in the section that needs to be quoted like this
Code: Select all
 <option value="11&quot; x14&quot; Black Frame-$99.95 ;+0">11"x14" Black
              Frame-$99.95</option>


you need to do that for any inch mark between the value=" and the "> for the option value. After the "> and before the </option> you can use the regular double quote symbol since that is just text and out side of the quoted value.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby smileyfta » Sat Mar 06, 2010 12:17 pm

Thank You!
smileyfta
 
Posts: 27
Joined: Sun May 24, 2009 3:41 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 147 guests

cron