Developer forum

Forum » Ecommerce - Standard features » Change quantity stored on the Favorite lists

Change quantity stored on the Favorite lists

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where I need to adjust the quantity stored on each product in a favorite list.

I see that the EcomCustomerFavoriteProducts already has a Quantity column.

How do I manipulate the value?

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Add &Quantity=2 on the add to list url

Or if you set the cc command to updateproductquantity and the quantity=3 you update the quantity of an existing entry

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

COOL!

Thank you very much.

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I have tried the suggested approach using this type of URL:
/Default.aspx?ID=6780&CC=7941&CC7941=UpdateProductQuantity&ProductId=11001016&Quantity=10&ListID=40&CCVariantId=&CCLanguageId

The result is not exactly the expected one as it will create a new entry in the Favorite list with the Quantity value from the parameter instead of updating the existing one.

I am afraid I am not using the right combination of parameters and values to accomplish the desired result.

Any suggestion on this?

Thank you,

Adrian

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Adrian,

I've checked the feature on 9.10.13 and have correct results when language parameter has valid ID like &CCLanguageId=LANG1, your example does not have this.

BR, Oleg QA

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

Thank you very much. It makes a lot of sense.

I should have thought about that.

Adrian

 

You must be logged in to post in the forum