Order Anywhere EW DWT problem

General ShopSite user discussion

Order Anywhere EW DWT problem

Postby dough_steve » Sat Jan 01, 2011 12:46 am

I am using an Expression Web 4 DWT - dynamic web template - and have individual product pages attached to a single DWT.

I am using the order anywhere html code on the individual product pages. Everything looks fine....the add to cart/view cart buttons work as do the drop down menu options and the quantity box.

The problem comes when I make any changes to the DWT. For some reason all of the attached individual product pages lose track of the store id because the code changes from this:

<input type=hidden name="storeid" value=


to this:

<input type=hidden name="storeid0" value=

I am not sure where the extra 0 after the storeid is coming from but it messes up the order anywhere buttons. Now when the add to cart/view cart buttons are clicked I get this error message instead of the shopping cart:

-------
Error in Form!

We're sorry, but there was an error in your form data!

You must specify a valid value for: storeid .

Please go back and try it again.
---------


Does anyone know what is going on? I need to be able to change the template from time to time without having to change that one character by hand in each one of the individual product pages.

THX and happy new year!
dough_steve
 
Posts: 3
Joined: Fri Dec 31, 2010 11:28 pm

Re: Order Anywhere EW DWT problem

Postby Jim » Sat Jan 01, 2011 12:04 pm

That would have to be something your template is changing since the ShopSite code can't change itself. I haven't ever worked with Expression Web 4 DWT but maybe there is some setting that auto increments variable names each time the template is changed. See if you can find a configuration setting on the template app that you can set to not increment variable names.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Order Anywhere EW DWT problem

Postby dough_steve » Sat Jan 01, 2011 1:48 pm

I think it may be related to the presence of the ShopSite shopping cart on the page.

I made a new DWT and attached an html page to it.
I placed two Order Anywhere items on the html page.
I updated the DWT - added some text - and updated the attached html page.
The store ids stayed the same. No problem.

I then added the shopping cart code. I am using a different image but otherwise it is just to get the shopping cart to come up when it is clicked. It is the view cart form.

When I saved the DWT and updated the html page the Order Anywhere store ids became store0 and store1 which causes the same error as above.

What is the relationship between the Order Anywhere and shopping cart forms?

----- addendum

I did notice that if I have several Order Anywhere items on the page the store id increments to store0, store1, store2....

It looks like this:

<input name="storeid0" type="hidden"
<input name="storeid1" type="hidden"
<input name="storeid2" type="hidden"

I have to go back and change each of these to

<input name="storeid" type="hidden"

I use the shopping cart in the header of each page of the site for consistency. I do not want to have to remove it for each page that has an Order Anywhere on it. It is unnecessarily confusing since the customer will have to go into the body of the page to find the viewcart button where the Order Anywhere items are. Any ideas?

-------------------- Here is the shopping cart code at the top of each page. I took out the website address and the value of the storeid but otherwise everything is the same. I do use a different image for the cart.gif than the standard ShopSite viewcart button.

<form action="http://-.com/shopsite_sc/shopping_cart/order.cgi" method="post" style="width: 35px; height: 29px;"><br>
<input name="storeid" type="hidden" value="*-">
<input background-color: #FFFFFF" height="27" name="I2" src="cart.gif" type="image" width="34">
</form>


THX!
dough_steve
 
Posts: 3
Joined: Fri Dec 31, 2010 11:28 pm

Re: Order Anywhere EW DWT problem

Postby dough_steve » Sat Jan 01, 2011 3:47 pm

Ooops - this post is unnecessary.
dough_steve
 
Posts: 3
Joined: Fri Dec 31, 2010 11:28 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 108 guests

cron