KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: karthik on November 16, 2007, 07:02:45 pm

Title: Stock check
Post by: karthik on November 16, 2007, 07:02:45 pm
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
Title: Re: Stock check
Post by: julie on November 16, 2007, 09:25:30 pm
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
Title: Re: Stock check
Post by: karthik on November 19, 2007, 06:30:18 am
Hi ,

Thanx
Karthikeyan