If this is your first visit, check our documentation. To post, register or login.

Total_Weight = -1

Started by jfreeman on 8 Jan 2012, 2:44 PM · Views: 665

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,512
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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