osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Quantity for Product Attributes Mod

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 02-25-2007, 11:50 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,079
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Quantity for Product Attributes Mod

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 01-04-2008, 01:01 PM
Lurker
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Bulldog is on a distinguished road
Default Re: Quantity for Product Attributes Mod

Still doesn't work.

OSC. look only for the TOTAL stock and not for the quantity / product stock!?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax