Jump to content



Latest News: (loading..)

* * * * * 1 votes

New Attribute Manager Released..


  • Please log in to reply
98 replies to this topic

#81   MarthaD

MarthaD
  • Members
  • 93 posts
  • Real Name:Martha Dinkwaller
  • Location:Onratio, Canada

Posted 21 April 2007 - 01:57 AM

anyone have this working with register globals OFF?

#82   mregg

mregg
  • Members
  • 3 posts
  • Real Name:Jonathan

Posted 02 June 2007 - 10:42 PM

Is there anyway to modify this code to allow attributes with no price prefix (ie: just a " ").  I'm trying to make this work with the "Show Actual Price" contribution.

#83   mhenderson

mhenderson
  • Members
  • 53 posts
  • Real Name:Henderson

Posted 05 June 2007 - 10:38 PM

Like mregg, I'm also trying to make this work with the Actual Attributes Price contrib. I really like New Attributes Manager, but I need AAP more. I hope someone who knows more about PHP than I knows the answer to this issue.
Thanks, matt


#84   nikita

nikita
  • Members
  • 26 posts
  • Real Name:Nikita

Posted 27 June 2007 - 07:29 AM

I have Register Globals OFF. When I install it, I go to the 'new_attributes.php' page, there is a dropdownlist with my products. When I select any product from a dropdown list and click on 'edit' button, it does nothing.
Please, help to resolve my problem!
Thanks a lot for all our community members. It's amazing that we are together and we have opportunity to help each oher.

#85   SirBerberitz

SirBerberitz
  • Members
  • 11 posts
  • Real Name:Jo Seins

Posted 10 July 2007 - 11:54 AM

Hello all,

has anybody an idea? I just got the same problem  :'(


Thx


SirBerberitz
Cheers

+++ http://www.muehlkoppe.de +++

#86   mhenderson

mhenderson
  • Members
  • 53 posts
  • Real Name:Henderson

Posted 13 July 2007 - 07:14 PM

I would like to change the contrib so that there is the option to have no price prefix (instead of - and +). Does anyone know if I change that in the new_attributes.php file or the mySQL?
Thanks, Matt!

#87   PerlSOL

PerlSOL
  • Members
  • 64 posts
  • Real Name:Neil
  • Location:Wales UK.

Posted 21 July 2007 - 04:40 PM

did anyone get this to work with reg. globals off after?
if at first it doesn't work... use a bigger hammer

#88   Iggy

Iggy
  • Members
  • 1,294 posts
  • Real Name:BOFH
  • Gender:Male
  • Location:Seattle, WA

Posted 21 July 2007 - 05:20 PM

View PostPerlSOL, on Jul 21 2007, 12:40 PM, said:

did anyone get this to work with reg. globals off after?

Yep, mostly trial and error. With the register globals contrib add

 link_post_variable('current_product_id');
 link_post_variable('x');
 link_post_variable('y');
 link_post_variable('action');
 link_post_variable('optionValues');

to new_attributes.php

Should be about all there is to it.

Iggy
Everything's funny but nothing's a joke...

#89   PerlSOL

PerlSOL
  • Members
  • 64 posts
  • Real Name:Neil
  • Location:Wales UK.

Posted 21 July 2007 - 08:07 PM

View PostIggy, on Jul 21 2007, 06:20 PM, said:

Yep, mostly trial and error. With the register globals contrib add

 link_post_variable('current_product_id');
 link_post_variable('x');
 link_post_variable('y');
 link_post_variable('action');
 link_post_variable('optionValues');

to new_attributes.php

Should be about all there is to it.

Iggy

thanks for that... i'll try it shortly as I havn't installed it yet... looking into things before I dive ;)
if at first it doesn't work... use a bigger hammer

#90   mhenderson

mhenderson
  • Members
  • 53 posts
  • Real Name:Henderson

Posted 21 August 2007 - 08:13 PM

Our store will have thousands of attributes.

Colors brand A

color 1
color 2
color 3

colors brand B

color 4
color 5
color 6


and so on...

But with this attribute manager, it lists every possible option and option value on one page. This could be a problem when we get to have so many options and values. Would it be possible to show only the options that apply to the product we're adding. So if I'm working on a product made by brand J, we don't have to scroll past all the options and values for A through K.

Maybe there could be a page bwtween the page where it asks for the name of the product and the page where it has all the option value check boxes. There could be some checkboxes to choose which options to display on the final page.

#91   max4

max4
  • Members
  • 5 posts
  • Real Name:maxtuss

Posted 23 August 2007 - 09:22 AM

hi,
i just install the UPSXML_v1_2_8_1, but im getting this error ,

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway : Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway
If you prefer to use ups as your shipping method, please contact osCommerce via Email.


then i uncomment this 2 lines,

     } else { // default behavior: cURL is assumed to be compiled in PHP
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            // uncomment the next line if you get curl error 60: error setting certificate verify locations
            //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
            // uncommenting the next line is most likely not necessary in case of error 60
            // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);


but then i got this error,


10002: The XML document is well formed but the document is not valid
If you prefer to use ups as your shipping method, please contact osCommerce via Email.


wht im doing wrong here ,

i only insert the
Account Number:
Access Key

in the admin area , do i need to insert the userid and userpass to work this ,
i have read a lot of forum topic but still did not fix my prob,
dos any body know why !!!!!!!

#92   Brennie369

Brennie369
  • Members
  • 29 posts
  • Real Name:Brenda Barny
  • Gender:Female

Posted 11 October 2007 - 10:39 PM

View PostIggy, on Jul 21 2007, 11:20 AM, said:

Yep, mostly trial and error. With the register globals contrib add

 link_post_variable('current_product_id');
 link_post_variable('x');
 link_post_variable('y');
 link_post_variable('action');
 link_post_variable('optionValues');

to new_attributes.php

Should be about all there is to it.

Iggy

Hi, where exactly does this go on the page? Because I'm having the same problem - when I click on Edit after selecting a product, it does nothing. However I believe my register globals are set at 1 (which is on, right?), so do I still need to add the code above? Plus you mention "with the register globaks contrib.." - does that mean I need to add another contribution regarding register globals?

Thanks,
Brenda

#93   gabstero

gabstero
  • Members
  • 25 posts
  • Real Name:Gabstero

Posted 21 November 2007 - 03:37 PM

View Postnikita, on Jun 27 2007, 01:29 AM, said:

I have Register Globals OFF. When I install it, I go to the 'new_attributes.php' page, there is a dropdownlist with my products. When I select any product from a dropdown list and click on 'edit' button, it does nothing.
Please, help to resolve my problem!

Same issue here folks. Seems like a repeating problem. Any hints?

GREATLY APPRECIATED... I installed "New Attribute Manager v5.0" on a fresh install of osCommerce.

thanks!
GAbstero

#94   tsteele

tsteele
  • Members
  • 11 posts
  • Real Name:Tom Steele

Posted 05 March 2008 - 05:34 AM

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!

You do not need to install the Register Globals Patch as mentioned in previous posts. You do not need to add an .htaccess file or anything else. (although I tried both and they worked). The above is a very clean and effective solution, and it leaves Harald's most awesome OSC code untouched.

I hope this saves someone else a few hours of time.

Enjoy!

-Tom

#95   slvhwke

slvhwke
  • Members
  • 20 posts
  • Real Name:Gemma
  • Gender:Female
  • Location:Brisbane, Australia

Posted 22 April 2008 - 02:06 PM

Tom I could kiss you :P  Very helpful!!!

#96   dcart

dcart
  • Members
  • 2 posts
  • Real Name:no thanks.

Posted 25 June 2009 - 03:33 AM

Please help....is there anyway to have the drop down of products to edit to list product ID instead of product name?

Thank you for your help in advance! This is an awesome Contribution!

Edited by dcart, 25 June 2009 - 03:34 AM.


#97   TurboNed

TurboNed
  • Members
  • 30 posts
  • Real Name:Zizou
  • Gender:Male

Posted 24 March 2012 - 08:02 PM

View Posttsteele, on 05 March 2008 - 05:34 AM, said:

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!

You do not need to install the Register Globals Patch as mentioned in previous posts. You do not need to add an .htaccess file or anything else. (although I tried both and they worked). The above is a very clean and effective solution, and it leaves Harald's most awesome OSC code untouched.

I hope this saves someone else a few hours of time.

Enjoy!

-Tom

Tom,
We're going to need your help again. After your posted that solution everything worked until now. Now it is still the same, when I click EDIT nothing happens. Keep in mind that I haven't been editing my products in a while. The last thing that i did was about 6 months ago or so when i renamed my admin folder but it worked back then.

Hope you can help me. Thanks in advance...

#98   johnyx2

johnyx2
  • Members
  • 13 posts
  • Real Name:Richard Montalvan

Posted 02 May 2012 - 12:34 AM

Hello,

I am using the latest version 5.0 (14 Aug 2010) of New Attribute Manager.

Here is the problem I am experiencing:

In the .../new_attributes.php screen let's say I have a list of 20 "Size" attributes.
If I add to a product any amount of the first 10 attributes in the list, the attributes are added.
If I add to a product any amount of the last 10 attributes in the list, the attributes are NOT added.

I reverted the sort of the list, and still the problem remains the same.

This start happening after a 5.3 PHP upgrade on my host. Therefore I changed all files to New Attributes Manager 5.0 to no avail. All other files were not changed as everything seems to work fine.

Any ideas or suggestion on how to troubleshoot this?

Thanks

#99   cefyn

cefyn
  • Members
  • 39 posts
  • Real Name:kevin radley
  • Location:north wales and london

Posted 26 June 2012 - 10:21 PM

I like this contribution.I've  got it working in 2.3.1 by adapting the updated easy populate installation instructions.
Put
define('FILENAME_NEW_ATTRIBUTES', 'new_attributes.php');
in admin/includes/filenames
and
array(
'code' => FILENAME_NEW_ATTRIBUTES,
'title' => TEXT_NEW_ATTRIBUTES,
'link' => tep_href_link(FILENAME_NEW_ATTRIBUTES)
  ),
in admin/includes/boxes/catalog.php is the main change from the 2.2 install.BUT I musta missed something,because
the admin menu on the left has no styling, just text ,on the attribute manager page.It doesn't stop anything from working,just mildly irritating.
Anyone got any ideas as to what it could be?

Edited by cefyn, 26 June 2012 - 10:26 PM.