Posted by aprice42 on August 19, 2009 at 5:08am
Hello,
I have been searching high and low to find how to override the Ubercart order summary page (/user/#/order/#) that is the page you get to by going to your account and clicking on "Click here to view your order history." then clicking on a specific order number.
I want to wrap the output in container like
In digging through the ubercart module I found this uc_order_view() function but it looks like that only contributes to a portion of that page build out...
Can anyone help point me in the right direction so I can add a simple wrapper to the output?
Thanks,
:) Andy

Comments
I would check on
I would check on ubercart.org.
James
--James
Agreed
I agree. Ubercart is so big and complex they have their own community, and it is vibrant and responsive. An excellent resource.
Grant
Sala kahle,
Grant
I guess i searched
I guess i searched everywhere but there :) thanks for the tip, looks like they have a good forum...
If the output is not
If the output is not themeable, and there are not templates involved (wouldn't really surprise me with Ubercart), the worst case scenario is that you could override the page callback with hook_menu_alter in your own module, and take the order object as an argument (just copy whatever the page callback is currently set to from ubercart) and then hack away at that to your hearts content.
Of course at this point you aren't technically modifying the output but just providing your own, but this could meet your needs.
Unfortunately, I don't think
Unfortunately, I don't think you can modify the output of the order. The output for the order isn't passed through a theme call, so you can't override a theme function. You could add a new pane(s) that contains whatever content you want to the beginning or end of the order using hook_order_pane (http://www.ubercart.org/docs/api/hook_order_pane).
Themer info from Devel module
Themer info from Devel module gives me this http://dnotes.net/screencasts/20090819-i7u-15kb.jpg, so it looks like you could make a new page-user-order.tpl.php. Could be wrong though because I haven't tried it.
Thank you all! I will work
Thank you all! I will work through these suggestions and report back what I find...
:) Andy
Heh, while Ubercart.com is a
Heh, while Ubercart.com is a great resource, so is this group page.
Sala kahle,
Grant
Anyone have an answer for
Anyone have an answer for this? I can't believe there's no information how to customize the order view. But after hours of searching online I've had no luck finding a solution.
You can try using
You can try using hook_tapir_table_alter, when $table_id == 'op_products_customer_table'. See: http://drupalcontrib.org/api/drupal/contributions--ubercart--docs--hooks...
For example:
/*** Implementation of hook_tapir_table_alter
*
* @param <type> $table
* @param <type> $table_id
*/
function mymodule_tapir_table_alter(&$table, $table_id) {
if ($table_id == 'op_products_customer_table') {
unset($table['#columns']['qty']);
unset($table['#columns']['price']);
}
}
Eric Broder
510.410.8158
google: broder.eric
skype: ericbroder.net
linkedin.com/in/ericbroder