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

help with error in pad_base.php

This is a discussion on help with error in pad_base.php within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm getting the following error when I display a product with choices for available options such as color and size. ...

      
  1. #1
    Lurker
    Join Date
    Aug 2005
    Posts
    2
    Rep Power
    0


    Default help with error in pad_base.php

    I'm getting the following error when I display a product with choices for available options such as color and size.

    Warning: Invalid argument supplied for foreach() in /catalog/includes/classes/pad_base.php on line 387

  2. #2
    Member Dubious's Avatar
    Join Date
    Feb 2006
    Posts
    43
    Rep Power
    0


    Default

    same problem... bump!

  3. #3
    Member Dubious's Avatar
    Join Date
    Feb 2006
    Posts
    43
    Rep Power
    0


    Default

    Ok, i solved this one thanks to the OS Commerce forums. This a bug in the code that should definitely be addressed in future releases. Here's the problem:

    -----------------------------
    quoted from Ralphday:
    Both pad_single_dropdown.php and pad_single_radioset.php have a line:

    CODE
    $out.=$this->_draw_out_of_stock_message_js($attributes);

    in them. Move that line up above the closing brace (}) right before it in both files.
    ------------------------------

    Once you have this fixed, you will no longer get the pad_base error. But in order to display radio attributes, you need to turn attribute quanitity tracking ON.

    Cheers
    Dubious

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
  •