PDA

View Full Version : Add Quantity to Listings



michael_s
06-13-2007, 07:12 AM
After making the changes mentioned in the last post, you also need to ADD:

elseif (isset($HTTP_POST_VARS['cart_quantity']))
{
$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+$HTTP_POST_VARS['cart_quantity']);
}
in the catalog/includes/application_top.php

After:

case 'buy_now' : if (isset($HTTP_GET_VARS['products_id']))
{

if (tep_has_product_attributes($HTTP_GET_VARS['products_id']))
{
tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));
}
Hope it would help.



More... (http://www.oscommerce.com/community/contributions,2113)