Extra columns

Issue tracker: view

Contrib type: 
Module
Status: 
Initial upload
Compatibility: 
Ubercart Alpha 7c
Latest version: 
1.0

This little module add extra columns to some Tapir tables defined in ubercart.

List of columns added

In uc_cart_view_table :

  • Unit price

In uc_product_table :

  • Weight
  • Directly add to cart
    (If a product have options, it show the dropdown menu to directly add item to cart without entering in the product node

These modifications are made by using the Ubercart way. It's pretty easy to add more informations and it don't hack the core.

AttachmentSize
uc_extra_column_1.0.zip1.01 KB

Re: Extra columns

Nicely done, zmove. The only thing I'd mention is the existence of uc_weight_format() in uc_store.module. That'd be a better way to show the Weight.

Re: Extra columns

Thanks zmove. I found it very useful!
You don't happen to know how I could make a newly added column sortable?

Re: Re: Extra columns

Sorry I don't know how to do that. But I will work on a project that will need to improve this module a little. I will give you feedback if I find how to make columns sortable.

Extra extra columns: teaser

Added a teaser column for the standard product list table (uc_product_table), it uses the standard teaser generated from the body/description. Unfortunately it doesn't seem to hook into/work with CCK Teaser Field (don't know about the other custom teaser modules), and from a quick look through the code for CCK Teaser Field I couldn't figure out why. Will contact the author and see what magic must be done...

AttachmentSize
uc_extra_column.module.diff1.37 KB