Developer forum

Forum » Templates » Can't update quantity in cart

Can't update quantity in cart

Cátia Torego
Reply

Hi,

I can't update an orderline quantity in the cart, i'm able to add to the cart using the cart comand Add or Addmulti but i can't edit the order line with IncOrderLineDecOrderline or UpdateOrderlines.

This is the urls being used:

Default.aspx?ID=530&CartCmd=UpdateOrderlines&QuantityOrderLineOL77251=8&redirect=false&feedtype=Counter

Default.aspx?ID=530&CartCmd=IncOrderLine&key=OL77251&redirect=false&feedtype=Counter

Could this be a bug or am i missing something in the url? This was working in a previous version.

DW version 9.9.7

 


Replies

 
Nicolai Pedersen
Reply

Hi 

See the docs here: https://doc.dynamicweb.com/documentation-9/ecommerce/frontend/cart-commands#10182

Make sure you do it using post and not get.

BR Nicolai

 
Cátia Torego
Reply

Hi Nicolai,

Thanks for the quick response. I did look at the documentention and the url's seem to follow the rules, thats why i'm wondering if this is a bug on this version. It did work in a previous one. 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

On my local solution, this works: 

  • https://dw9.local.dynamicweb.dk/cart?CartCmd=IncOrderLine&key=OL8479
  • https://dw9.local.dynamicweb.dk/cart?CartCmd=DecOrderLine&key=OL8479
  • https://dw9.local.dynamicweb.dk/cart?CartCmd=DelOrderLine&key=OL8479
  • https://dw9.local.dynamicweb.dk/cart?CartCmd=UpdateOrderlines&QuantityOrderLineOL8479=8

So I think you have something else interfering.

Votes for this answer: 1
 
Cátia Torego
Reply

You are right, there was something i didn't realise was interfering with this. Thank you for helping. 

 

You must be logged in to post in the forum