PDA

View Full Version : Quantity for Product Attributes Mod



michael_s
02-25-2007, 10:50 AM
hi,

I found a bug - perhaps this is a problem about global vars declaration.

within the "check stock" (around line 70) all attributes will be pushed into an array. but the $products... arn't set. it needs to be reinitialized by calling $products = $cart->get_products(); from the cart.

so the change I made (arround line 70);
----------------
// Stock Check
$any_out_of_stock = false;
if (STOCK_CHECK == 'true') {

$products = $cart->get_products();

for ($i=0, $n=sizeof($order->products); $iget_products();" is new!

hopefully this help an solves some problems.

regards

peter

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

Bulldog
01-04-2008, 12:01 PM
Still doesn't work.

OSC. look only for the TOTAL stock and not for the quantity / product stock!?