osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


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-11-2005, 05:45 PM
Lurker
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lgreitzer
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-18-2006, 11:23 AM
Dubious's Avatar
Member
 
Join Date: Feb 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
Dubious
Default

same problem... bump!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-22-2006, 06:12 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


All times are GMT -8. The time now is 12:48 AM.


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