In the second tutorial of the Inventory Management series, you will learn how to set up inventory control so that an Administrator can track and update the amount of stock available in an eCommerce site. When you are finished, follow the link to complete the next step in inventory management. A list of Inventory Management tutorials is also found at the bottom of this page.
Keeping the ProductUpdateDate and ProductStock database fields in mind, your next step is to create a page that contains an inventory field where the Administrator can track and update the number of existing products in inventory as stock is replenished.
<?php echo((isset($_GET["invalid"])?ValidatedField("inventoryupdate","ProductUpdateDate"):"".date("n/d/Y g:ia",time())).""); ?>
- (SELECT Coalesce(SUM(DetailQuantity),0) FROM orders Inner Join orderdetails ON orderdetails.DetailOrderID = orders.OrderID WHERE OrderDate > ProductUpdateDate AND DetailProductID = ProductID) AS RemainingInventory
While you are updating your products on your product update page, you may want to track and add to your products in stock. In this section, you will be adding a link on your product update page that leads to the inventory update page. You will also be adding a field to show the current inventory count so that you can check it without having to open the inventory update page.
, ProductStock - (SELECT Coalesce(SUM(DetailQuantity),0) FROM orders Inner Join orderdetails ON orderdetails.DetailOrderID = orders.OrderID WHERE OrderDate > ProductUpdateDate AND DetailProductID = ProductID) AS RemainingInventory
<?php echo $row_WADAproducts['RemainingInventory'] ?>
Now you will be able to track the number in stock (on both product update and inventory update pages) and update the inventory count (on inventory update page) when you increase the number of any given product in stock.
Now that you know the inventory workflow and how to set up inventory control, you will learn how to inform your online customers on the product detail page when the product they wish to purchase is no longer available at Inventory management product detail III.
In the WebAssist inventory management series for eCommerce sites, you will learn how to track and update inventory as an administrator. Additionally, you will learn how to inform your customers throughout the shopping and purchase process when the quantity of the product they wish to purchase is insufficient or no longer in stock.
For further inventory management help, check our Community Forums or post comments to this tutorial.
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.