marcellosales Posted March 22, 2006 Posted March 22, 2006 (edited) http://www.oscommerce.com/community/contributions,4118 Shopping Cart and Product Information Quantity in Drop-down Synchronized Contribution to OScommerce to avoid the out-of-stock problem when the customer updates the quantity of an item on the shopping cart, together with the inventory quantity from the products_info page. It was written/tested using version 2.2 MileStone 2 (2.2MS2) of the osCommerce software dated November 11th 2005. osCommerce: Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License Shopping Cart and Product Information Quantity in Drop-down Synchronized Contribution to OScommerce to avoid the out-of-stock problem when the customer updates the quantity of an item on the shopping cart, together with the inventory quantity from the products_info page. http://www.marcellosales.com Copyright ? 2006 Marcello Sales Released under the GNU General Public License ========================================================== Changes History ========================================================== v1.0 by Marcello Sales on March 21, 2006 Requirements: - Add the quantity of the available products on a drop-down menu of the inventory quantity. In this way, the customer could choose the correct value on the range between 1 and the quantity available; - The information must be up-to-dated to the state of the stock, so has to be checked with the database and with the cart to synchronize the quantities; - Both drop-down menus displayed on the product_info.php and shopping_cart.php pages must show the same information about the number of items on the shopping cart; - This contribution let's the customer experience faster and better. V1.1 by Marcello Sales on March 21, 2006 - The drop-down quantities displyed was the same for the previous ones, and the larger the quantity of a previous item was, the larger the next problem would get. The $options variable must be reinitialized for each product. V1.2 Release Plan - Integrate this contribution with New Products, Best Sellers, Specials etc, where the button Buy Now appears; - Add an option on the admin to have a limit of products on stock to be shown on the drop-down menu; ========================================================== Users Requests/Feedback ========================================================== " To have the same features as the product info to have the quantity dropdown box linked with the inventory stock. Could this be done with your coding? for the product_new.php, product_listing.php & special php" "...I think the best part of this contribution is it can update the shopping cart total without leaving this page or click anywhere, that it what I need badly. Thank you for your great work and help." Edited March 22, 2006 by marcellosales Quote Marcello Sales Software Systems Architect Computer Science
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.