Cascading Option Menu Error

General ShopSite user discussion

Cascading Option Menu Error

Postby GiftSpecialists » Tue Sep 18, 2012 4:56 pm

I am trying to get the cascading option menus to work, but when I choose the first option, I get the following error message:

"You must first add this product to the cart and then select the next set of options on that page."

Then if I press the add to cart button, I get this error:

"selection error, not enough options provided. The product was not added to the cart."

Here is a link to the test tage:

http://www.beeronthewall.com/ss/test-beer-club.html

FYI - We are using custom templates.

Any help would be appreciated.

The other option is that I do not really need the option menus to cascade. But I do need to be able to add modifiers for sku, weight, and price, depending on the option chosen. Is this possible using the old school option menus?
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Re: Cascading Option Menu Error

Postby Jim » Tue Sep 18, 2012 6:51 pm

The Advanced order options use jquery.js to reload the page with the new information for the next field. jquery (at least how it was implemented in ShopSite 11sp1 which your store is using) cannot work across different domains. Your page is loading from http://www.beeronthewall.com but the jquery code is being loaded from http://199.236.68.13/. Those are 2 entirely different domains even though they may point to the same location. That is most likely the problem with your page and shopping cart.

Another possible issue is that you are using other jquery code on the page. If there are the same functions in both jquery files it may be causing a conflict in which routine is called when the functions are encountered on the page.

I know there were a number of changes made to the Advanced Order options and jquery in ShopSite 11sp2 so if you can upgrade to that version I would highly recommend it.

You might also try one of the ShopSite templates and see if it works then, if it does then there may be a problem with your template and you will want to compare the code closely between yours and the ShopSite template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Cascading Option Menu Error

Postby GiftSpecialists » Wed Sep 19, 2012 4:33 am

Where do I make the change in ShopSite so that the jquery loads from thebeeronthewall.com domain instead of the ip address? My template simply uses the following tag [-- Order_Option_Menu Column --] and Shopsite adds the jquery reference.

Also, what is the process of upgrading to the newer version?

Thanks for your help.
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Re: Cascading Option Menu Error

Postby Jim » Wed Sep 19, 2012 8:55 am

You may need to get a new <storeid>.auth file which contains the domain name and not the IP address. You would need to replace the one in your store's data directory. Note that it must contain the same serial number and storeid as your existing .auth file.
You may need to edit the <storeid>.aa file in the /ss cgi directory and change references from the IP to the domain name.
<storeid> is generally the login name you use to get into your ShopSite backoffice. It can be found by clicking on the ShopSite tab in the backoffice and then looking in the footer of the page which will be something like
ShopSite® Pro 11 sp2 r3, StoreID: jimsp2
So in this case the <storeid>.aa file would be jimsp2.aa and the <storeid>auth would be jimsp2.auth.

To upgrade from 11sp1 to 11sp2 you would need to contact your host or whoever your purchased your ShopSite from. They would also be the ones to ask for an updated <storeid>.auth file.

If you are not hosted with a ShopSite partner you can purchase support at http://www.shopsite.com/support_pricing.html
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Cascading Option Menu Error

Postby GiftSpecialists » Fri Sep 21, 2012 1:50 pm

Jim,

- The .aa file and the .auth file are all now pointing to www.beeronthewall.com.
- I removed all other javascript from the page.

- It works correctly in IE 7 & EI 9
- It does not work correctly in IE 8 or Firefox

Any ideas why?

Is the [-- Order_Option_Menu Column --] tag the one I should be using in my template?

Can you tell me the name of a SS template that I can look at that uses cascading menus?

Thanks for your help.
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Re: Cascading Option Menu Error

Postby Jim » Fri Sep 21, 2012 3:30 pm

Most of the ShopSite provided templates will do the Advanced ordering options. Note that you probably can't just select one of the product templates and expect it to work, the page templates often set parameters that are used by the product templates. I suggest that you get a demo store (http://ademostore.com/cgi-bin/ssdemos/start.cgi?demo=store&storename=evaluate) then add a page and a product with the advanced order options. Select just about any of the themes ( I tried Classy theme, 3Column, Lefty , Dots) and then publish and see if it works. The product template DefaultCustomProductTemplate is the one used by the Lefty theme so it is probably the most basic product template and might be easier to analyse than one like the 3column.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Cascading Option Menu Error

Postby GiftSpecialists » Sun Oct 07, 2012 11:00 am

Jim,

I created a demo store and added one product

http://ademostore.com/ssdemos/ver112/evaluate59/product1.html

Here are the issues as tested with IE9 and Firefox 15.0.1

IE9:
If I set SS to NOT allow shopper to change options in cart, I get errors when trying to add product to cart.
If I set SS to allow shopper to change options in cart, SS does NOT append the SKU modifier to end of product SKU

FF:
If I set SS to NOT allow shopper to change options in cart, does NOT allow shopper to change options in cart, but does set the correct sku and options in the cart.
If I set SS to allow shopper to change options in cart, appears to work correctly.

I will test it on other versions of IE later and let you know what I find.

In the meantime, am I doing something wrong? Or is there an issue with SS?

Thanks for any help,
Rick
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California


Return to User Forum

Who is online

Users browsing this forum: No registered users and 131 guests