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

Managing warehouses

Started by Iker, May 29, 2008, 02:06:24 pm

Previous topic - Next topic

Iker

Hi,

A plan came up to make our products available in various locations for local pickup. This would require maintaining separate inventories and reorder levels per product for each location. Is there any support for this in Konakart? Or any idea how to implement it?

julie

Hi,

Maybe you could take a look at this : http://www.konakart.com/configurationfaq.php#how_can_i_make_something_happen_when_an . Every time the state of an order is changed you can trigger your own code. So, if from the order you can figure out the pickup location (custom field ?) you can manage your own inventory levels for each location.

I assume that you will let a customer checkout whether or not the product is in stock ? If you want to stop someone from checking out then it becomes more complicated because you may have to show him a number of pickup locations to choose from etc.

Iker

Hi,

Unfortunately, it is the second case: I need to check inventory before an order can be placed (or preferrably before added to the cart) and I couldn't really find any API (not even among the new customizable ones) that could be called to enable this...

I guess probably it should be AddToBasket where I should implement a check for the inventory (assuming I implement a Default Pickup Location in a custom customer field) - not mentioning what if a user doesn't have this custom attribute and only decides at checkout -, but still if I go for AddToBasket then what exception should I return if necessary and how, so it warns the user, because I guess that is in the closed source (without examples)...

julie

Hi,

CheckoutDeliveryAction.java (for which you have the source) does a stock check before checkout and sends the customer back to the edit cart page if an item isn't in stock and KonaKart is configured not to allow checkout of out of stock items.

Iker

Hi,

Thank you for your reply, I will check on CheckoutDeliveryAction.

Another problem: Is it possible to feed a combobox from the DB for a custom field (so that user can choose a default pickup location), or only hardcoded values work?

julie

I assume that what you may want to do is to have a list of pickup locations in a db table that you want to let the user choose from, and then to put his choice in one of the order custom fields ?

With the new customization framework you could add an API call to the Application Engine to get the list of locations and if you wrote a small JSP based maintenance application for your locations table you could add it to one of the Admin App custom panels.