I have run across situations where I have needed to override the table on the checkout page of ubercart. An example is bilingual e-commerce site that I have created, in which the title is different between languages. The English title is shown by default on the checkout page, but I needed to swap that in with a Japanese title.
Doing this is a tricky process, as Ubercart bypasses a lot of Drupal APIs. I eventually figured out how to do this in a module, by overriding the cart pane theme using hook_theme_registry_alter(), and swapping out the theme function with a theme function in my own module.
In this example, my module is named belly.
Step 1: Override the default theme function using hook_theme_registry_alter()
- function belly_theme_registry_alter(&$themes)
- $themes['cart_review_table']['function'] = 'belly_cart_review_table';