• Welcome to KonaKart Community Forum. Please login or sign up.
 

Stock check

Started by karthik, November 16, 2007, 07:02:45 pm

Previous topic - Next topic

karthik

Hi,
   I have to add a product to my Cart.But before adding i have to check stock of a selected product and if der s stock i have to add.There is interface cart item where i can check stock level after adding it to cart..is there any interface to check stock of selected product before...

Can anyone help me...
ThanX.
Karthikeyan

julie

Yes there is. If you take a look at com.konakart.actions.CheckoutDeliveryAction it does this check by calling an API call com.konakart.appif.updateBasketWithStockInfo(). You pass it an array of basket items and it populates the QuantityInStock attribute of each item so that you can check the quantity being ordered against the quantity in stock.

Regards,

Julie

karthik