Developer forum

Forum » Development » Check stock notification

Check stock notification

Nuno Aguiar
Reply

Hi,

 

We are developing an integration with an ERP system, and need to check the stock status on a few steps:

  • BeforeRenderingNewStep - (I believe this is the best one within the cart flow)
  • Product added to the cart - (what's the best notification for it. Added, increased, decreased quantity)

 

Any advice is much apprecciated :)

 

Nuno

 


Replies

 
Morten Snedker
Reply

Hi Nuno,

 

Everything goes, it really comes down to the nature of the check. If it's because you want to check that each product in the cart is available, you may do it on Cart.LineAdded notification. Alternatively just before checkout (don't recall the step name).

Other than that you need to elaborate you question. :-)

 

Regards /Snedker

 
Nuno Aguiar
Reply

Hi Snedker,

 

Thanks for the input.

 

In one case it's just a matter of "making sure" because there are large stock involved and not a lot of eCommercer orders at the same time, so, just a fail safe, and for that I was thinking on just BeforeRenderingNewStep notification

 

Another webshop is a fashion store, with very low stock (due to exclusivity) and no restocking. In this case we may be using the Cart.LineAdded notification and also any other that may be revelant. This client in particular, once have an item being sold in the store, but before that client could purchase it (after trying it out and literally holding it), was sold online :P

 

Nuno

 

You must be logged in to post in the forum