Jump to content



Latest News: (loading..)

* * * * * 1 votes

New Attribute Manager Released..


  • Please log in to reply
98 replies to this topic

#1   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 04:41 AM

Hello Everyone,

Most of my clients have, at one time or another, griped about the OS Commerce attribute management. I recently looked through the contributions, but didn't see any mods to the attribute management... maybe I missed them *shrug*.

So, I decided to spend some of my time making a contribution for this shopping cart. If you are currently using the orginal attribute management I think you owe it to yourself to give this contribution a shot.

The only original OS Commerce file that was edited is /admin/includes/boxes/catalog.php .. so it doesn't take very long at all to complete the installation.

Here's the link: http://www.oscommerce.com/community/contri...ons,1119/page,8

I appreciate any pos/neg comments.. and if there's a demand for it I will continue the public development. Currently, I have this mod working on around 27 live sites.. and I have 27 very happy clients  

Enjoy.

*Accidentally posted under Features the first time.. sorry for the double-post

EDITED: *poof* ... Thanks, Linda

#2   Ajeh

Ajeh
  • Members
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 01 April 2003 - 04:59 AM

Are there perhaps a few new fields to add to the tables?

#3   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 05:31 AM

This was developed using Preview v 2.2 .. I haven't even taken a look at 2.2 MS1 yet, will try to first thing in the morning.

#4   Ajeh

Ajeh
  • Members
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 01 April 2003 - 05:34 AM

1 Need a Language filter unless you wanted tripple entries in the drop down.

2 This is the error I get on the Edit:

Quote

Edit Attributes -> Unreal Tournament  
 Unknown column 'products_options_type' in 'where clause'


#5   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 05:56 AM

Thank you Ajeh! :)

I had recieved an email from someone having problems with multiple entries in the drop-down menu.. didn't even think of the languages causing the problems.

I'm pretty sure this package is *fully functional* : http://www.oscommerce.com/community/contributions,1119

#6   Ajeh

Ajeh
  • Members
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 01 April 2003 - 06:27 AM

Well ... might need a little work on the language issue.

My Mouse now has about 24 attributes ... :shock:

You may want to set up a clean cart and try this with the multiple languages. The edit page is showing a lot of things I don't believe you intended and adding the little fellows to the table.

Getting there ... :D

#7   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 08:01 AM

I appologize for posting it before getting it to work with a fresh installation of the newest release.. I made a lot of changes, and as far as I could tell it's working perfectly with 2.2MS1.

Lets try this one more time :) v3: http://www.oscommerce.com/community/contributions,1119

#8   Rodj

Rodj
  • Members
  • 18 posts
  • Real Name:Rodj

Posted 01 April 2003 - 08:06 AM

Great id for contribution, but i can't see all my attributes... you know why?

#9   Ajeh

Ajeh
  • Members
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 01 April 2003 - 08:21 AM

Mike ... that appears to be working better now.

I do not have duplicates and I was able to delete all the attributes from the Mouse via phpMyAdmin

Then ... I re-added them your's and everything appears to have gone in correctly.

I also seem to have all 3 languages correct for the attributes.

I will have to fool with this more to see if there are any quirks, but I think you got them all. Thanks! :D

#10   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 08:24 AM

Quote

Great id for contribution, but i can't see all my attributes... you know why?

What version of OSC are you using, and have you performed any modifications on the cart?

A possibility is that your server is running an older version of PHP.. in which case you may try the following:

1. Open new_attributes_change.php

1a. on line 20 replace:
$value_price =  $_POST[$optionValues[$i] . '_price'];

with:
$value_price =  $HTTP_POST_VARS[$optionValues[$i] . '_price'];

1b. on line 22 replace:
$value_prefix = $_POST[$optionValues[$i] . '_prefix'];

with:
$value_prefix =  $HTTP_POST_VARS[$optionValues[$i] . '_prefix];

That may solve your problem.. I used $_POST without taking into consideration that some people are still running pre 4.1 PHP.. sorry if that's the cause of your problems :twisted:

#11   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 01 April 2003 - 08:32 AM

Quote

Mike ... that appears to be working better now.

I do not have duplicates and I was able to delete all the attributes from the Mouse via phpMyAdmin  

Then ... I re-added them your's and everything appears to have gone in correctly.

I also seem to have all 3 languages correct for the attributes.

I will have to fool with this more to see if there are any quirks, but I think you got them all. Thanks! :D

Nice :)

I was being a tad lazy at first and really didn't want to take the *~15 minutes* to set up 2.2MS1 for testing... lesson learned :)

#12   mazza

mazza
  • Members
  • 222 posts
  • Real Name:Matti
  • Location:Finland

Posted 02 April 2003 - 02:11 PM

What does this one actually do ? Is it compatible/easy to integrate with lindas quantity sorter & copier ?
"Use no way as way, have no limitation as limitation." - Bruce Lee

#13   mazza

mazza
  • Members
  • 222 posts
  • Real Name:Matti
  • Location:Finland

Posted 02 April 2003 - 04:06 PM

Nevermind, I installed it. Nice contribution. Way better than default handling.

If youre planning to develop this further here are some suggestions:

Text in language files.
Add sort and weigth values from lindas contribution.
Maybe not a seperate page but a pop-up from product page.
"Use no way as way, have no limitation as limitation." - Bruce Lee

#14   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 02 April 2003 - 09:59 PM

Quote

Nevermind, I installed it. Nice contribution. Way better than default handling.

If youre planning to develop this further here are some suggestions:

Text in language files.
Add sort and weigth values from lindas contribution.
Maybe not a seperate page but a pop-up from product page.

Thanks Matti.

I have a lot of cleaning up & streamlining planned, but I first wanted to make sure that this contribution was something that people could actually use and enjoy before I start spending more and more time on it. Judging by the emails that I've received regarding this contribution it seems that a lot of people are already using it and seem fairly content... and a lot of great suggestions have been submitted that I can work on.

It was brought to my attention that the Option Values weren't being displayed in the order in which they were created.. problem fixed v3.1:

http://www.oscommerce.com/community/contri...ons,1119/page,8

IMO this contribution is very easy to install - it only requires you to edit one of the OSC files.

#15   JenRed

JenRed
  • Members
  • 249 posts
  • Real Name:Jen Honner
  • Location:Australia

Posted 04 April 2003 - 09:42 AM

Can you give more of an idea of what this mod does exactly?

I already have the Alternative Attributes mod and am pretty happy with that.  But I would change if this one is easier still.  Can you post a screen shot of the Admin or something?

thanks

Jen
I haven't lost my mind - I have it backed up on disk somewhere.

#16   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 04 April 2003 - 03:26 PM

It seems as though that last package I submitted wasn't downloadable... so I changed the package name to new_attributes_v3a.zip.. and it works fine.

Here's a couple of screenshots:

1. Select Product to edit:
[img]http://66.76.35.232/attribute1.gif[/img]

2. Edit product attributes:
[img]http://66.76.35.232/attribute2.gif[/img]

I'm already working on quite a few more features for this contribution, but it will be a couple more weeks before I can post another release.. stay tuned :)

#17   disciple1

disciple1
  • Members
  • 107 posts
  • Real Name:Rick Mann
  • Location:AZ

Posted 07 April 2003 - 11:52 PM

OK. I can't imagine why I am having any trouble with this contribution since it is the simplest one I have installed to date. But I am.

It does not seem to update anything. I check the boxes and add the amount it should be and include the + or - sign.

But when I come back to check it nothing has been changed. It is back to 0.

What have I done wrong?

I am using 2.2 ms1. My provider has php 4.0.6 so I replaced the lines that were mentioned earlier but made no difference.

Thanks for your help in advance.

Rick
All that is not eternal is eternally useless.

#18   Wayne Luke

Wayne Luke
  • Members
  • 463 posts
  • Real Name:Wayne Luke

Posted 08 April 2003 - 03:30 AM

It would be cool if there was a link in the product listing that sent you to the attributes management screen.
Wayne Luke

#19   AnnieO

AnnieO
  • Members
  • 58 posts
  • Real Name:Cindy

Posted 08 April 2003 - 08:03 PM

Mike,
Thank you for a great contribution.  Do you know offhand if the Attribute Manager will work with Product Attributes - Option Type Feature?  

Thank you.

#20   Greeves

Greeves
  • Members
  • 22 posts
  • Real Name:Mike G.

Posted 09 April 2003 - 12:51 AM

I've been getting a number of emails from people saying they are having problems downloading the latest release from the oscommerce contributions section.. so I have a little web page dedicated to this contribution now:

http://downloads.ephing.com

I will keep the latest release posted there *with notes* so it's available all the time.

Anni0 - Yes, my contribution does work with the Option Type Feature :)

Wayne Luke - Check the latest release and see if the added feature satisfies your request :)

disciple1 - Hmmm.. I can't seem to figure out exactly what the source of your problem is. I'm wondering if anyone else is having this problem - if so then I'd know for sure that it's something that I did wrong.