Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Global variable for total shipment weight

Global variable for total shipment weight

Views: 1,293

Results 1 to 3 of 3
7 Sep 2013, 11:43 PM
#1
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Global variable for total shipment weight

What global variable holds the calculated weight of the
shipment?

If the calculated weight is 1 lb. 4 oz. and on my configuration
page I have a tare weight of 4 oz., will that 4 oz. be part of
that global variable's amount? Ultimately I'm looking for the
variable that has only the weight of the products being
shipped without its tare weight added in.

Thanks,

Dr Doug

8 Sep 2013, 4:59 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Global variable for total shipment weight

It depends on the main_page for which you're requesting the information.

21 Sep 2013, 2:58 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global variable for total shipment weight

You can get the weight of the Shopping Cart, without the Tare, from:

$_SESSION['cart']->show_weight()