7 replies [Last post]
tcindie@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 05/15/2008
Juice: 440
Was this information Helpful?

I'm currently working on a module that will let you set default values and then hide those elements from the product creation form. This is a usability improvement for sites that have multiple people adding products, who may not necessarily understand all of the possible product options in the form. Often times these fields are not all required, so this module will hide them for you. Included in this is the highly sought after ability to automatically generate a SKU. The SKU generation is based on the Auto Node Title code, and works similarly.

Product "Power Tools" will give you a number of options for altering the product creation form. This is useful when you have product classes that do not require all of the possible product fields. Unneeded fields can be disabled and hidden, or preset and hidden.

Tweakable options:

  • Auto Generate SKU
  • List Position
  • List Price & Cost
  • Default Quantity & Package Quantity
  • Shippable (can hide other shipping fields for non-shippable products)
  • Set default stock levels (If stock module is installed)

This module should be released March 9 or 10, 2009.

Follow me on twitter.

cha0s's picture
Offline
Getting busy with the Ubercode.
Joined: 08/22/2008
Juice: 416
Re: Product "Power Tools"

Sounds very cool!

Try FreeBASIC!
My game Lynn's Legacy

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
tcindie@drupal.org wrote:I'm
tcindie@drupal.org wrote:

I'm currently working on a module that will let you set default values and then hide those elements from the product creation form.

Doesn't Form Filter let you do this? http://drupal.org/project/formfilter

Also, SKUs can be automatically generated with http://www.ubercart.org/contrib/4307

<tr>.
tcindie@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 05/15/2008
Juice: 440
Re: tcindie@drupal.org wrote:I'm

Auto SKU module is ubercart 1.x as far as I am aware..

as for the formfilter module, yes it lets you hide fields but I don't believe it allows you to set defaults. Also again, it's only got a stable release for Drupal 5.

Module has been added to contrib:
http://www.ubercart.org/contrib/9566

Follow me on twitter.

chourmovs's picture
Offline
Joined: 02/22/2009
Juice: 52
very very usefull Thanks a

very very usefull
Thanks a lot

tcindie@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 05/15/2008
Juice: 440
Re: very very usefull Thanks a

You bet.. let me know if you find any bugs.

Follow me on twitter.

ngaur@drupal.org's picture
Offline
Joined: 04/03/2009
Juice: 8
Andrew

The bit that tripped me up first was that I hadn't previously had a need for product classes. It wasn't obvious that the power tools are enabled on a per-product class. After looking at the source, I figured that one out.

I'm now trying to figure out how to use the product attributes to generate the SKU, and I'm not sure if it's possible. I'm working on a clothing store with many combinations of size and colour, so this is what I most want to automate. Ideally it would probably be preferrable to enter the base product SKU but have the attributes bits automatically appended on the different models.

tcindie@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 05/15/2008
Juice: 440
Re: Andrew

The autosku functionality only works for the base product.

Follow me on twitter.