Override View Output for Shopping Cart i am theming a template and currently working shopping cart section. The commerce module provides a view 'Shopping cart block' out of box. I am trying utilize this view, however, i am unable to rewrite the html code from the UI the way i need. So, i am looking to do the same in code using hooks. 

function theme_views_pre_render(&amp;$view){
    var_dump('got in pre view');
}


Is this the proper hook? Where is the output markup stored for views? Is there a render array of view output available that i could manipulate before its rendered? Thank you
What worked for me was:
verride the 'shopping cart block' view with custom template
    block--cart-blockNameInClonedView.tpl.php(referece themer-info for
    exact name). 

Populate the 'vars' array with total number of items and total amount of a shopping cart in block preprocessor function as following:

function THEME_preprocess_block(&amp;$vars, $hook){
    if ($vars['block']-&gt;region == 'cart_in_header') {
            if ($order = commerce_cart_order_load($vars['user']-&gt;uid)) {
                $wrapper = entity_metadata_wrapper('commerce_order', $order);
                $bazar_cart = array();
                $bazar_cart['total-qty'] = commerce_line_items_quantity($wrapper-&gt;commerce_line_items, commerce_product_line_item_types());
                $price_raw= commerce_line_items_total($wrapper-&gt;commerce_line_items, commerce_product_line_item_types())['amount'];
                $bazar_cart['total-price'] = substr($price_raw,0,-2).'.'.substr($price_raw,-2);

                $vars['bazar_cart'] = $bazar_cart;
            }
      }
}


In custom block template file, the variable '$bazar_cart' is available to plug the values(total items and total amount of cart) as you wish in the html structure