Developer forum

Forum » Development » Problem with updating cart contents (variants)

Problem with updating cart contents (variants)


Reply

Hi,


 


we're working on a e-com website and we're running into a problem with the shopping cart. Whenever we try to update (increase, decrease or deleting) the shopping cart we are redirected back to the homepage of the shop. When we check the cart nothing has changed.


 


We use the following code to generate te update buttons:


 









We used the shopping cart in another project and it worked just fine, the only difference between the shops (as far as we can tell) is that we use variants in the shop that isn't working properly.


 


Any ideas on what could be causing this?


Replies

 
Reply
Do you have your solution online? Could you provide the URL or place here the output for these links (generated HTML code)?
 
Reply

We dont have the site available online yet, the output html is:



   

   

   


 


After we click one of the links we are redirected to the homepage of the site.

 
Reply
I found out what is causing this problem.



Let me explain a bit about our site's (navigation) structure.



The first page in the CMS is acting as a folder and the subpages are the main menu items. For example, our site structure looks like this in the Dynamicweb adminstration tool.



-- Our sitename

   |--- Home

   |--- Products

   |--- Contact

   |--- Shopping cart



The first page (named: Our sitename) always redirects to the "Home" page. And this is what's causing the strange behaviour with the shopping cart.



I think the following is happening: Because all shopping cart actions (CartCmd=add) are posted to the main page (Default.aspx) and due to the redirect on this page, it 'forgets' which page to return to.


 
Reply

Have you tried Default.aspx?ID=[your cart page id number]CartCmd=DelOrderLine&key=OL15 ? I guess that'll work.

 

You must be logged in to post in the forum