Automatic SKU's using token module. Settings can be adjusted for each product class. You have the option to hide the sku field or to fill it in automatically if left empty.
Development
| Preview | Attachment | Size |
|---|---|---|
| 0.4 uc_auto_sku.zip | 4.36 KB |
|
Ubercart |
|
|
|
||
I need similar functionality for my current project, including defaults for attributes. It's on my todo list -- What I'm working on will be for 6.x-2. Hopefully I'll have something done soon, as it's pretty important to my currect project, and the entire project is WAY behind schedule. Anyway, I'll submit it as a contrib and post a link here when it's completed. FYI -- Initially it may be feature lacking as I have to focus strictly on the functionality I need for my project. I have ported this module to Drupal 6.x/Ubercart 2.x The port has been tested very little, so post your results. I will be using it on a production site soon and hopefully if any bugs exist they will surface for me.
I installed auto-sku module for drupal 6, when I try to add item, I got warning: Missing argument 3 for form_set_value(), called in ... sites/all/modules/ubercart/contrib/uc_auto_sku/uc_auto_sku.module on line 258 and defined in ... /includes/form.inc on line 1311. Hope this might help to solve problem, I am a not into API-programming yet... There is another module out there I just found out about that will auto generate the sku. I'm checking it out now... I need to do the same thing that "OFF" made clear with his attached images... To auto-generate a SKU for every combination of attributes. Can this be done through the SKU pattern? I see tokens for lots of things but none to the attributes. I've been reading the whole module and although I'm not very advanced at developing Drupal modules, I could see by my PHP experience that this function wasn't considered in the module and have to be done by applying a SKU generation pattern but I don't know enough about Drupal modules or the Ubercart module structure to generate a pattern that would include a code for every attribute selected. Does anyone know how to make a php pattern to generate a SKU for the attributes? Thanks a lot EDIT: I have an idea: install the Attribute Tokens module and use the Attributes [tokens] but that module doesn't work on 6.13 |
|
This works with classes. What if we just use products? We have no need for additional classes so we just use the product content type. Can this be used with our situation?
Something else to consider would possibly be automatic SKU generation by taxonomy category instead.
Let me know!
Zach