Downloads
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 |
|
|
|
||
Re: Automatic SKU
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!
Re: Re: Automatic SKU
Check under Home › Administer › Store administration › Configuration > Product settings
Re: Re: Re: Re: Automatic SKU
click on the "Product settings" box if needed, click on "Automatic sku generation" to expand and find the option to turn it on
Re: Re: Re: Re: Re: Automatic SKU
Support for Ubercart 6.x.2 soon?
Re: Automatic SKU
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 ported it to 6.x
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.
Re: I ported it to 6.x
Eh, this still doesn't seem to work. the hook_nodeapi() needs some work yet. Anyone care to take a stab? I may still need this myself but I'm not sure, working on trying to get around by using hook_form_alter().
This would be nice
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...
Re: This would be nice
Yup. I got the same error. Would be sweet if anyone could take a look at it
Re: Re: This would be nice
There is another module out there I just found out about that will auto generate the sku. I'm checking it out now...
Re: Re: Re: This would be nice
The Product Power Tools module does the exact same thing for 6.x and works great. It supports tokens as well, give it a shot.
Re: Re: Re: Re: This would be nice
Not quite. Power Tools are only available for product classes, not all products AFAIK. It would be nice to port this module to 6.x or kindly ask tcindie to enable a default setting for every product.
Paid Event
Unfortunately this doesn't work with the Paid Event module, any suggestions how I can get it to work with this.
Automatic skus for attributes
Will this module work in that situation?
Re: Paid Event
I'd be interested in this too for the paid event module, particularly for repeating events.
Attributes SKU
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
Re: Attributes SKU
Hi juanlacueva, did you ever find the solution? I'm using 5.x. I would love to automate the attributes sku too.
Re: Automatic SKU
any progress on setting this up for ubercart 2.x and drupal 6.x ?
Re: Automatic SKU
any progress on setting this up for ubercart 2.x and drupal 6.x ?
Re: Automatic SKU
take a look at http://drupal.org/project/uc_product_power_tools
Re: Re: Automatic SKU
Thanks. Yeah, I saw that. I'll check it out.
Version for Ubercart 3.x?
Hi, Are there any plans on releasing a version for Ubercart 3.x? The module http://drupal.org/project/uc_product_power_tools doesn't support UC3 yet. Thanks in advance! |
|