Zen Cart Logo
Forums / All Other Contributions/Addons / Total_Weight = -1

Total_Weight = -1

Views: 664

Results 1 to 3 of 3
8 Jan 2012, 2:44 PM
#1
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Total_Weight = -1

Hi there - I am exporting customer order data to a product fulfillment company I am using. When I export the Total_Weight every order the total_weight = -1. When I follow the order process thru to paypal I see the weight is actually as calculated from the items within the order to create the proper postage and label. I have also checked the sql database and there it does show that every order has a contast value of -1. Is there some kind of switch that needs to be turned off to eliminate this constant value for total_weight = -1?

8 Jan 2012, 2:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Total_Weight = -1

Default Zen Cart core code does NOT store the total weight for an order. Instead it calculates it on-the-fly when displaying order details, using the quantity ordered and the product's own weight per item.

So, your total_weight=-1 issue appears to be related to addons or code-alterations you've done to your site.

Thus, moving this out of the Bug Reports section, as it's not a Zen Cart bug.

8 Jan 2012, 6:44 PM
#3
jfreeman avatar

jfreeman

Zen Follower

Join Date:
Apr 2010
Location:
Sutton, MA
Posts:
150
Plugin Contributions:
0

Re: Total_Weight = -1

Dr. Byte - I am trying to find out if anyone else has installed an add-on that has caused this issue. I know the issue is NOT ZenCart and I have not customized any code - I don't even know how to code. I would like my posting to remain so I may receive help on this issue. Thank you - Jeff