This is a discussion on Quantity for Product Attributes Mod within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; hi, I found a bug - perhaps this is a problem about global vars declaration. within the "check stock" (around ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Still doesn't work. OSC. look only for the TOTAL stock and not for the quantity / product stock!? |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| discount for quantity with per product | xzyyy | osCMax v2 Customization/Mods | 4 | 02-22-2007 10:24 AM |
| Quantity Price Breaks Per Product | michael_s | New osCommerce Contributions | 0 | 02-18-2007 02:11 PM |
| Product Quantity Box | auntie22 | osCMax v1.7 Discussion | 13 | 10-06-2005 04:21 AM |
| Product Quantity on Product Listing Page | vinces | osCMax v1.7 Discussion | 2 | 12-10-2004 06:32 PM |
| Product Quantity bug | Arpit | osCommerce 2.2 Modification Help | 1 | 06-19-2003 07:56 PM |