Displaying "Inventory On Hand" for products in ecommerce

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Displaying "Inventory On Hand" for products in ecommerce

Rupinder
Hi,
Is it possible to display "Inventory On Hand" or "Quantity On Hand" for products displayed to end user in ecommerce application. Like other displayed details include "Product Description", "Price", "Name", "Picture" of the product. I want to also show "Quantity On Hand" from the inventory.
Reply | Threaded
Open this post in threaded view
|

Re: Displaying "Inventory On Hand" for products in ecommerce

Bilgin Ibryam
Hi Rupinder,

it is easy to add this functionality.
You can use getInventoryAvailableByFacility service to get
availableToPromiseTotal and quantityOnHandTotal quantities.

Regards,
Bilgin


Reply | Threaded
Open this post in threaded view
|

Re: Displaying "Inventory On Hand" for products in ecommerce

Rupinder
Hi
i am not aware of using services. Can you provide some details how to implement this functionality using getInventoryAvailableByFacility service.

Bilgin Ibryam wrote
Hi Rupinder,

it is easy to add this functionality.
You can use getInventoryAvailableByFacility service to get
availableToPromiseTotal and quantityOnHandTotal quantities.

Regards,
Bilgin

Reply | Threaded
Open this post in threaded view
|

Re: Displaying "Inventory On Hand" for products in ecommerce

Bilgin Ibryam
Rupinder,

If you want to customize OFBiz yourself, you have to get more familiar
with its internals.
Anyway, here are the steps for adding this info to ecommerce screens:

1. Call getInventoryAvailableByFacility service in product.bsh and put
the returned values(availableToPromiseTotal, quantityOnHandTotal) in the
context.
2. Visualize these values in product screen i.e. productdetail.ftl and
configproductdetail.ftl

Bilgin