Active
Project:
Ubercart Product Actions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2010 at 19:23 UTC
Updated:
27 Oct 2012 at 23:48 UTC
...could you pretty please make this work with Attributes and Options? Now that there is an API for Attributes, do you think this is do-able?
Comments
Comment #1
asak commentedWell - thanks for that! such a beautiful feature request ;)
When you say "Now that there is an API for Attributes" - what exactly are you referring to? ;)
I remember seeing stuff about this for Commerce and D7, but nothing for D6...
In any case - I'll have a look at implementing this, as you've noticed this issue crossed my mind...
Thanks for the feedback!
Comment #2
lindsayo commentedSorry, I should have included this link in the initial post: http://drupal.org/node/488422
cha0s, univate, and Island Usurper all worked on an Attributes API for Ubercart and Lyle (Island Usurper) committed it (see comment #51 by torgosPizza).
Comment #3
ohkafka commentedI'd like to know if you made it work for attributes. I came across the same problem, and I am desperate as i have thousands of products of which i would have to change prices in the future. Any news on this feature?
Comment #4
griz commented+1, or rather +15,000 little moments of thinking 'THANKYOU!' every time I auto-add an attribute. Yep. 15k products. In a randomly formatted list. I'm trying to write a rule to do this atm, so that I can use CCK integer fields to control attributes / stock and SKU adjustments. When I get this working I'd like to contribute, but I need some help. I've just posted my progress (not much so far) here.
Any pointers >greatly< appreciated.
Comment #5
griz commentedWe can start with this:
http://www.ubercart.org/forum/support/15840/api_adding_option_attribute_...
Comment #6
asak commented@brokendesign: I think that as TR mentions on that post you link to, you should use the newly-commited API.
I just went over the code which was commited (as lindsayo noted above):
http://drupal.org/node/488422#comment-3638498
And it seems doable.. I hadn't found the time to get back to this feature request yet, but if you have any specific questions please go ahead and i'll try to help.
Looks like there is now interest in getting this going - lets give it a shot ;)
Comment #7
griz commentedI've had a brief look, but I'm not even really sure what I'm looking at.
I ended up using MySQL queries in an action to copy attributes and options (and generate SKUs) from an existing node in an action, and also an action to delete all attributes.
I found the test file quite dense, but it's also possible that it's just me being quite dense.
That said, I really only skimmed over it. I got halfway through patching the module to add another action to let you copy attributes from an existing node. I'm now quite busy but I'll come back to it; I suppose it's just about still worth it while D7 >still< isn't mature enough to actually use for anything other than a hairdresser's photo-blog.
Comment #8
heyyo commentedIt will be a huge step for multilang websites !!!
Where attributes/options are not synchronized between translations...
Comment #9
SeanA commentedI'm working on a site which probably requires this feature. It depends on if the client decides to use VBO to update products, or CSV import. So I may be producing a patch shortly.
Comment #10
SeanA commentedUPDATE: Bulk editing/setting attributes and options is going into Ubercart core: #298395: Let admin push class attribute/option changes out to existing nodes, so this feature is probably not needed for Product Actions module.
Comment #11
jerry commentedIt would be very helpful to be able to set a stock level for a specified attribute/option combination (or alternate SKU) via VBO. Exposed filter support for attributes/options is now present in uc_views, but stock support is missing from both this module and uc_rules. (Could be done via PHP, of course.)
The recent bulk attribute/option change support added to Ubercart, while welcome, doesn't really help with this.