Community Add-Ons

Add file to this package
Top » Features

easy way add Qty box in your product_info.php
for osCommerce Online Merchant v2.2

1. copy this code near your in_cart button in product_info.php, actually you can add this code anywhere.

---------------------------------------------
<input type="text" name="quantity" value="1" maxlength="2" size="2">
--------------------------------------------

2. search your application_top.php

find this code:
---------------------------------------------
$HTTP_POST_VARS['id']))+1
--------------------------------------------
replace with this one
------------------------------------------
$HTTP_POST_VARS['id']))+$quantity
------------------------------------------

done!!

Legend:  Download   Report

Expand All / Collapse All

qty_pull_down_menu update azer 10 Dec 2005  

+ added the multilanguage of the term "quantity"
+ changed the dropdown quantity to 15
+ cosmetic changes and alignement

Update to the first version dynamoeffects 17 Nov 2005  
Hidden quantity method Clive Jenkinson 9 Nov 2004  
Cosmetic Fixes Only 420 5 May 2004  
Quantity Box Brandon Clark 16 Apr 2004  
qty_pull_down_menu.zip Doug Murray 12 Feb 2004  
easy way add Qty box in your product_info.php sean wang 19 May 2003