osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-21-2006, 07:15 PM
Dubious's Avatar
Member
 
Join Date: Feb 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Dubious
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-22-2006, 06:11 PM
Dubious's Avatar
Member
 
Join Date: Feb 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Dubious
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

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


All times are GMT -8. The time now is 01:58 PM.


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