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.=
| Comment | File | Size | Author |
|---|---|---|---|
| tapir.module.patch | 684 bytes | hanoii |
Comments
Comment #1
ryanrd commentedI 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.
Comment #2
rszrama commentedGood enough review for me. Will patch it in today and make sure it doesn't break anything.
Comment #3
rszrama commentedCommitted. Thanks, hanoii.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.