In the first tutorial of the Inventory Management series, you will be introduced to inventory control for eCommerce sites in a helpful overview. Additionally, you will learn how to set up your database and prepare the administrative product update page for inventory control. 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.
To understand the steps you will be taking in this tutorial, let's start with an overview of inventory management.
Two database fields that are necessary to inventory management are ProductUpdateDate and ProductStock.
In the second tutorial of the Inventory Management series, you will be creating an inventory update page to track and update inventory. On it, you will be adding two fields, ProductUpdateDate and ProductStock, both of which occur on products_update.php created with the DataAssist: Create Pages wizard. Therefore, these two fields should be removed from products_update.php. Also, the ProductUnlimited column should be removed from products_update.php since it is assumed that unlimited inventory would not require inventory management.
The optimal time to remove the three columns is when you are creating pages using the DataAssist: Create Pages wizard. (For assistance, refer to "What Do You Need to Start?" in this tutorial.)
Or you can also delete the columns directly from products_update.php in code view if you already created your pages.
<div class="lineGroup"> <label for="ProductUpdateDate" class="sublabel" > Update Date:</label>
<input id="ProductUpdateDate" name="ProductUpdateDate" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("productsupdate","ProductUpdateDate"):"".(($row_WADAproducts["ProductUpdateDate"])?date("n/d/Y",strtotime($row_WADAproducts["ProductUpdateDate"])):"")."")); ?>" class="formTextfield_Medium" tabindex="9" title="Please enter a value.">
<?php
if (ValidatedField('productsupdate','productsupdate')) {
if ((strpos((",".ValidatedField("productsupdate","productsupdate").","), "," . "6" . ",") !== false || "6" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="ProductUpdateDate_ServerError">Please enter a value.</span><?php //WAFV_Conditional products_update.php productsupdate(6:)
}
}
}?>
</div>
<div class="lineGroup"> <label for="ProductStock" class="sublabel" > Number In Stock:</label>
<input id="ProductStock" name="ProductStock" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("productsupdate","ProductStock"):"".$row_WADAproducts["RemainingInvetory"]."")); ?>" class="formTextfield_Medium" tabindex="12" pattern="[\+\-]?[0-9]+([\.,][0-9]+)?([eE]{0,1}[\-\+]?[0-9]+)?" title="Please enter a value.">
<?php
if (ValidatedField('productsupdate','productsupdate')) {
if ((strpos((",".ValidatedField("productsupdate","productsupdate").","), "," . "9" . ",") !== false || "9" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="ProductStock_ServerError">Please enter a value.</span><?php //WAFV_Conditional products_update.php productsupdate(9:)
}
}
}?>
</div>
<div class="lineGroup">
<label class="checklabel" for="ProductUnlimited"><input type="checkbox" name="ProductUnlimited" id="ProductUnlimited" value="1" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("productsupdate","ProductUnlimited"):"".$row_WADAproducts["ProductUnlimited"].""),"1"))) {echo "checked=\"checked\"";} ?> tabindex="14" title="Please enter a value."> Unlimited Availability</label>
</div>
Now that you have completed the inventory management introduction, learn how to set up inventory control so that an Administrator can track and update the amount of stock carried in an eCommerce site at Inventory management administration II.
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.
Eche: 9 Years, 9 Months, 2 Weeks, 1 Day, 18 Hours, 33 Minutes ago
Hi Kate. Please do you help individuals develop and design website? Please will like to know. Thanks
Kate Ford: 9 Years, 9 Months, 2 Weeks, 1 Day, 17 Hours, 43 Minutes ago
Hi Eche, No, not at this time. But thank you for asking. Kate
Team WebAssist: 9 Years, 9 Months, 2 Weeks, 1 Day, 17 Hours, 42 Minutes ago
Eche, feel free to visit our Developers page (from the Community menu) and contact developers that work with our products.