Developer forum

Forum » Ecommerce - Standard features » CartV2 Inc Dec by more than one.

CartV2 Inc Dec by more than one.

Nicolai Iversen
Reply

Hi All

In the CartV2, is it possible to change the quantity of the increase and decrease links ?

I’m have tried just to add an &quantity=4 to the link
href="@i.GetValue("Ecom:Order:OrderLine.IncrementLink")&quantity=4"

Turns into html, it looks ok, but my extra parameter has no effect, still only increases by 1:
href="/chart?CartCmd=IncOrderLine&key=OL24&quantity=4"

So apparently this hack dos not work, but any idea how I can make this functionality ?

Regards NIversen


Replies

 
Anders Ebdrup
Reply

Hi Nicolai,

 

The increment link only adjusts the quantity with 1. If you would like to control it yourself, then try to use this syntax:

?CartCmd=orderline&key=OL28&quantity=4

 

Best regards, Anders

 
Nicolai Iversen
Reply

Hi Anders

Perfect, and it works... but only to increase, if i try decrease by.

?CartCmd=orderline&key=OL28&quantity=-4

Then it will simply add 1 :-(

I have tryed hard to locate a list of awaible CartCmd comands and the valid parameters, but no luck.

 

Regards NIversen

 
Anders Ebdrup
Reply
This post has been marked as an answer

Hi Nicolai,

 

Then try with:

?CartCmd=updateorderlines&QuantityOrderLineOL29=20, where 20 is the desired quantity for an orderline and "OL29" is the id for the orderline

 

Best regards, Anders

Votes for this answer: 1
 
Nicolai Iversen
Reply

Hi Anders

Perfect, it solves my problem :-)

Regards NIversen

 

You must be logged in to post in the forum