Developer forum

Forum » Ecommerce - Standard features » Reset Stocklocation

Reset Stocklocation

Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

is there any way to reset Stocklocation set value ?

there is scenario customer can select stock location to click and collect and if customer not want buy as click and collect he can select delivery option without selecting stock location, in that case we need to reset the stock location.


Replies

 
Nicolai Pedersen
Reply

Where are we talking - frontend or backend? You could have a stocklocation for weborders that you set for those orders that is not click and collect

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Frontend, 

set stocklocation using ?Stocklocation=1

but is there a way to unset that

 
Nicolai Pedersen
Reply
This post has been marked as an answer

ok - you have to set that i.e. in a template doing something like this:

Common.Context.StockLocation = null;
Votes for this answer: 1
 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Thanks Nicolai 

 

You must be logged in to post in the forum