osCmax v2.5 User Manual
Results 1 to 2 of 2

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

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    Lurker
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0


    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!?

Similar Threads

  1. discount for quantity with per product
    By xzyyy in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 02-22-2007, 09:24 AM
  2. Quantity Price Breaks Per Product
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-18-2007, 01:11 PM
  3. Product Quantity Box
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 13
    Last Post: 10-06-2005, 03:21 AM
  4. Product Quantity on Product Listing Page
    By vinces in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-10-2004, 05:32 PM
  5. Product Quantity bug
    By Arpit in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-19-2003, 06:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •