Extra columns

Contrib type: 
Module
Status: 
Initial upload

Downloads

Latest version: 
1.0
Compatibility: 
Ubercart 1.x

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.


PreviewAttachmentSize
uc_extra_column_1.0.zip1.01 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
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.

pheatus's picture
Offline
Joined: 12/24/2007
Juice: 24
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?

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
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.

oliver coleman's picture
Offline
Bug Finder
Joined: 01/09/2008
Juice: 212
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.diff 1.37 KB
strompf's picture
Offline
Joined: 12/27/2008
Juice: 38
Re: Re: Re: Extra extra columns

Thank you, zmove. It helped me quit a bit with what I'm looking for.

cakka's picture
Offline
Joined: 01/15/2009
Juice: 98
It' not work

Hi, ubercart is new for me. I have install this module and there is no happen.
Can you give me the step to add column price in table cart ?
Thanks

cakka's picture
Offline
Joined: 01/15/2009
Juice: 98
It's not working on Drupal 6

Hi, i have try that for Drupal 6 and it's not working on Drupal 6.
Any ideas ? Thanks

Scott M. Sanders's picture
Offline
Joined: 04/24/2009
Juice: 323
Add Body/Desc to Cart

How do I add description/body per item to cart view?