Product classes (attributes) question

Posts: 3
Joined: 05/05/2008
Uber Donor

Hi,

I have created a product class called "tshirts" and assigned size attributes and values to it. I then added some new products of type "tshirt" successfully.

My question is that if I go back into my "tshirts" class and edit the attributes (if I disable "Large" for example") - when I browse to one of my tshirts in the front end - "Large" still appears in the dropdown?! Am I doing something wrong or is this behaviour inherent in UberCart? The ability to assign attributes to classes is very powerful as you can add many attributes to lots of products very quickly easily - but it seems that if you change the class on the back end - the products that belong to that class are not updated on the front. This means I will have to go in and edit each one individually which is not good.

Any ideas?

cheers

Jason

Posts: 63
Joined: 04/16/2008
Cool profile pic award.

I believe it is inherent. changing options at the global will overwrite any individual edited product settings, so I think it is set this way to protect that from happening.

However, I think you make a valid point for being able to make global changes in a product class. Maybe a good point to bring up for a possible feature request.

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

@fourcws: I think you have it backwards - changing global options won't overwrite product level settings. When a new product is created, it copies to itself the global settings, and future changes at the global level (like disabling a default option) won't affect things on the product level. There have been feature requests to add an option to push out such changes, but we haven't had the time to work it out. It could be done through a contrib in the meantime w/ hook_form_alter() if someone with a little PHP know-how dove into it.

Posts: 3
Joined: 05/05/2008
Uber Donor

Hi Ryan - ok good to know - thanks. I am concerned that changes to attributes in classes don't update products using that class. For larger stores that have hundreds - maybe even thousands of products - this would be a huge headache to update them all individually - but good to know this functionality is in the development queue.

Awesome job by the way - I've been playing with Ubercart for a few days now and am really impressed with it. I own my own e-commerce company and have been looking for a new e-commerce platform to move the business forward with and I think with Ubercart I've found it. Congrats to you and the rest of the team on a really superb application.

Jason
MyCommerce

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Great news, Jason. I hope it works out well for you, and I look forward to your experience sharpening what we have to offer. Smiling

If you keep a development or personal blog that might run some Ubercart related content every now and then, feel free to PM me the details so we can get you on Planet Ubercart.

Posts: 63
Joined: 04/16/2008
Cool profile pic award.

@Ryan, thanks for articulating that better. That is what I meant to say but, failure to proofread prior to posting left me with egg on my face Eye-wink