Contributions

Features (Category Index)
Search: 

Add quantity box to product info page


This contribution will let you add a product quantity box on the product info page, so any costumer will not need to go to shopping cart to change

the quantity. It is a simplified version of the contribution:
Product Quantity Dropdown on product_info page
--------------------------------------
************************************************
* Author: Victor Pereyra *
* Site: http://www.victorplus.com *
* Country: Lima Peru *
* OsCommerce Version: 2.2 MS2 Update 060817 *
* OsCommerce Version: Online Merchant v2.2 RC1 *
************************************************
it can be found here: http://addons.oscommerce.com/info/5202

The original was a dropdown box, but that is not practical for people who may order a quantity of say 500 - 5000.
This basically changes the dropdown to a text box and strips out the extra code that deals with inventory stock.
This may already exist(I thought that someone had to have already come up with this) but I looked high and low
and could not find a working version of this simple solution ...

Here is the one on the website, but for some reason I could not get it to work:
http://www.oscommerce.info/kb/osCommerce/General_Information/Tips_and_Tricks/246

Anyway, necessity is the mother of invention so hope this helps someone.

Expand All / Collapse All

Input field instead of drop-down 2 Mar 2010

Turn the quantity field into an text field rather than a dropdown list.

Follow the instructions from the contribution and when your done, open back up catalog/product_info.php and:


Replace:
tep_draw_pull_down_menu('cart_quantity',$products_quantity_array,1)

with:
tep_draw_input_field('cart_quantity')

Product Quantity Drop Down Box in Product Info V1.2 30 Nov 2009
Product Quantity Drop Down Box in Product Info V1.1 5 Apr 2008
Product Quantity Drop Down Box in Product Info 6 Mar 2008
Default value update 16 Nov 2007
Add quantity box to product info page 15 Nov 2007

Note: Contributions are used at own risk.