View Full Version : Add quantity box to product info page

11-30-2009, 04:00 PM
This is a re-written Version for those with low quantity orders

This mod adds a Product Quantity Drop Down Box in Product Info

The quantity shown is limited by stock available & further by the MAX_QTY_IN_CART

Removed attributes limitation.
Simplified & modified to use the same code in application_top used by Product Listing Enhancements, Thumbnails & Manufacturer Headings http://addons.oscommerce.com/info/6051

Full Package

More... (http://addons.oscommerce.com/info/5553)

12-02-2009, 04:17 AM
Is this applicable to oscMax?

Have no problem in changing product_info.php but the codes in line 374 of application_top.php in this addon are different to the oscMax.

I cannot see the codes below in oscMax as stated in this addon…

Find: (374)

// customer adds a product from the products page
case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

The dropped down box, quantities and add to cart icon appeared ok on product info page but the quantities selected do not feed through to shopping cart page.

What should I do?