kadnan Posted May 27, 2003 Posted May 27, 2003 Hello This is the first time i am using osCommerce system and I have been asked to add quantity text box infront of items so that one can set quantity of several items at once and when hit "Add to Cart" button,all selected Items added in Shopping cart, -I am unable to find the file which is being used for adding data in shopping cart,not sure whether db is being used for this purpose or for sessions,please guide me that which file will i need to be integrated with the page which have "Add to Cart" button Thanks a lot
Guest Posted May 29, 2003 Posted May 29, 2003 From a contribution calle qtybox 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!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.