Community Add-Ons

Add file to this package
Top » Features

New Attribute Manager
for osCommerce Online Merchant v2.2

Very simple and effective Attribute Management contribution.

Let me know what you all think about it.

Legend:  Download   Report
Expand All / Collapse All
Bug fix for reg globals off DamanC 9 Jun 2009  

Few People having a problem when Register globals is swiched off.

You click edit, and nowt happens.

Anyway, I did not come up with this so credit goes to a guy called tsteele from the forum. I thought I would add it here as its not well known.

I have also included the 'new_attributes.php' file which you can simply replace.

--------

Hi Folks,

Here's the fix for folks trying to using Mike G's awesome new attributes with Register Globals off (it does not work). If you are using OSC MS 2.2 RC2 or OSC MS 2.2 RC2a (the most recent 2008 releases) from January 15 and January 30, 2008...Mike's new_attributes mod will not work.

I spent a lot of time trying to debug and found a very simple fix that only took 7-8 hours to arrive at.

I thought I would give a little back to the OSC community and post it in the new_attributes support thread.

Here's the fix...

1. Back up your Admin area FIRST!

2. Make sure all files Backed-Up successfully.

3. Install New Attributes as per Mike's instruction...it is a very easy Contribution to install!

4. Open new_attributes.php in you text editor...I use Text Wrangler on a Mac. Do not use Word, instead use Notepad or your favorite editor on the PC.

5. Find the requires in new_attributes.php on line 5 and line 6:

require('new_attributes_config.php');
require('includes/application_top.php');

Right after add:

if (isset($_POST['current_product_id'])) {
$current_product_id = $_POST['current_product_id'];
}

if (isset($_POST['action'])) {
$action = $_POST['action'];
}

if (isset($_POST['optionValues'])) {
$optionValues = $_POST['optionValues'];
}

if (isset($_POST['x'])) {
$x = $_POST['x'];
}

if (isset($_POST['y'])) {
$y = $_POST['y'];
}

if (isset($_POST['cPathID'])) {
$cPathID = $_POST['cPathID'];
}

if (isset($_GET['current_product_id'])) {
$current_product_id = $_GET['current_product_id'];
}

if (isset($_GET['action'])) {
$action = $_GET['action'];
}

That's it your done! Save new_attributes to your server and enjoy!

New Attribute Manager V4.1b Gameprodigy 5 Mar 2007  
Sort attributes by name - bug fixed Buesi 30 Jun 2006  
Single Option - Attribute Manager v.1.0 kikoleppard 31 Aug 2005  
New Attributes Manager v.5.0 kikoleppard 15 Aug 2005  
Download added Fred Vervuert 29 Apr 2005  
Sort attributes by name Jeremy Anderson 13 Mar 2005  
Add select all button to attributes manager WebPixie 6 Jan 2005  
New Attribute Manager v4b Mike Graves 10 Apr 2003  
New Attribute Manager 4a Mike Graves 9 Apr 2003  
New Attribute Manager v4 Mike Graves 9 Apr 2003  
new attributes v 3c Druide 9 Apr 2003  
New Attribute Manager v3b Mike Graves 8 Apr 2003  
New Attribute Manager v3a Mike Graves 4 Apr 2003  
New Attribute Manager v3.1 Mike Graves 2 Apr 2003  
New Attribute Manager v3 Mike Graves 1 Apr 2003  
New Attribute Manager v2 Mike Graves 1 Apr 2003  
New Attribute Manager v1 Mike Graves 1 Apr 2003  
New Attribute Manager Mike Graves 31 Mar 2003