I am working on a site in which I am planning in using ubercart in a not so common way, and in the process, learning a lot about it's internal settings and customizations.

So far I am working on the view cart and I need to strip quite some data from it. I finally got to this module and its capabilities and I loved it :).

I needed to strip out the '#footer' part of the uc_cart table. At first I tried to use the hook_table_alter() function but the only thing I can do is pass an empty '#footer' to end up having a blank line, I could strip it then using CSS but not keen on that hack.

Then I realized that this should be another auto-settings of the Table API, so here it's the patch, it simply adds a setting for enable/disabling the footer on any table and the proper if() clause to take that setting into account.

Thanks,
a.=

CommentFileSizeAuthor
tapir.module.patch684 byteshanoii

Comments

ryanrd’s picture

I ran into the same difficulty when trying to hide prices in the shopping cart view in Ubercart. Using the TAPIr table settings page, I could hide the "Total" column (each line item's price) but not the "Subtotal" footer.

This patch worked fine for me and I would vote that it be added to TAPIr.

rszrama’s picture

Assigned: Unassigned » rszrama
Status: Needs review » Reviewed & tested by the community

Good enough review for me. Will patch it in today and make sure it doesn't break anything.

rszrama’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks, hanoii.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.