Jump to content

How to show weight on shopping cart


Recommended Posts

Hi all,

 

i read the following post:

 

http://www.prestashop.com/forums/topic/45353-solved-how-to-show-weight-of-the-order-in-shopping-cart/

 

it's clear but it say to modify "order.php" file...

 

 

perhaps its refers to a previous version of mine (1.4.x) because in the file "order.php" I do not have that piece of code.

 

where i can find ?

 

$smarty->assign(array(
   'token_cart' => $token,
   'productNumber' => $cart->nbProducts(),
   'voucherAllowed' => Configuration::get('PS_VOUCHERS'),
   'HOOK_SHOPPING_CART' => Module::hookExec('shoppingCart', $summary),
   'HOOK_SHOPPING_CART_EXTRA' => Module::hookExec('shoppingCartExtra', $summary),
   'shippingCost' => $cart->getOrderTotal(true, 5),
   'shippingCostTaxExc' => $cart->getOrderTotal(false, 5),
   'customizedDatas' => $customizedDatas,
   'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_,
   'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_,
   'lastProductAdded' => $cart->getLastProduct()
   ));

 

 

thank you all

Link to comment
Share on other sites

  • 3 weeks later...

I answer myself alone .....

 

Simply just add in order-carrier.tpl (because I want it here):

 

 

{$cart->getTotalWeight()|escape:'htmlall':'UTF-8'|number_format:0} {Configuration::get('PS_WEIGHT_UNIT')}

 

but if in "order summary" page I add (or remove) some products total weight doesn't refresh....

 

someone can help me to complete my work?

 

Thank!

Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
  • 2 months later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...