View Single Post
  #16  
Old 12-18-2012, 09:30 AM
  drheath's Avatar 
drheath drheath is offline
 

Advanced Member
  
Join Date: Nov 2010
Location: Wisconsin
Posts: 53
 

Default Re: display the total weight on the view cart page

Thanks to everyone who contributed to the solution. I made a couple slight changes to accomplish this in 4.5.x using One Page Checkout.

In /shipping/shipping.php add
Code:
$smarty->assign("total_weight_shipping_valid", $total_weight_shipping_valid);
after
Code:
$total_weight_shipping_valid = func_weight_shipping_products($cart['products'], true, $all_products_free_shipping, false);

I called it on /skin/common_files/modules/One_Page_Checkout/Summary/cart_totals.tpl by just inserting a row where I wanted it to display.
Code:
<tr> <td class="total-name">{$lng.lbl_weight}:</td> <td class="total-value">{$total_weight_shipping_valid} lbs</td> </tr>
__________________
Business Edition 5.2.10
Gold Plus 4.6.1
Reply With Quote