Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity of each item max's at 2


Chris Moore

Recommended Posts

Posted

My cart (quote request) http://www.ferno.com.au only allows a max of 2 of each item to be added, I've played with a couple of changes but as the site is live I'm a bit reluctant to edit too much. Is this the script that must be altered and if so, how please?

 

// customer adds a product from the products page

case 'add_product' : if (ereg('^[0-9]+$', $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), 'NONSSL'));

break;

Life is a highway!

Posted

???

I just added this to a "quote"

3 x Maglite AA Flashlight DETMLAA

 

 

$0.00

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Posted

Ta, I might've outsmarted myself, a client tried for 40 of an item and it kept defaulting to 2. I tried 32 and it did the same! The 0-9 might be it's range, I'll alter that to 0-99 and see what happens? :?

Life is a highway!

Posted

No, it's still the same, BTW it won't default until you process the order then it comes up at the default! Your order wasn't processed so it still read 3!

Life is a highway!

Posted

This is driving me nuts!!!!! To the point where I've started printing out each pages code trying to find where I can reset the limit! Anyone have any ideas?????

Life is a highway!

Posted

Is this related to the database, as this is a "quote only" store I didn't put any quantities in when I put the products up, will this cause the cart to default to 1 or 2?

Life is a highway!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...