Results 1 to 2 of 2

Attributes as Radio Buttons instead of Drop Downs Not Workin

This is a discussion on Attributes as Radio Buttons instead of Drop Downs Not Workin within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; When I set the attributes to display as radio buttons it gives me one of these errors: Warning: Invalid argument ...

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


    Default Attributes as Radio Buttons instead of Drop Downs Not Workin

    When I set the attributes to display as radio buttons it gives me one of these errors:


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

    I'm trying to figure out how to display images next to the radio button attributes. I've got a client who has lots of different materials available for her clothing designs, and she'd like little swatches next to the attributes. Anyways, i can probably hack that together... but getting it CMSed is beyond me.

    Cheers,
    Dubious

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

Similar Threads

  1. Radio Buttons For Product Attributes
    By LynnL in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 01-20-2006, 04:12 PM
  2. Need to make Drop Down into Radio Box
    By a1designs in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-13-2005, 02:11 PM
  3. Products Attributes - drop-down menu for product selection
    By SuperPickle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-11-2004, 10:24 PM
  4. How should these sessions/cookies/paths be set? not workin
    By RocksIT in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 08-02-2004, 07:24 AM
  5. Changing a drop down menu into radio feild?
    By vandiike in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 04-13-2004, 08:56 AM

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
  •