Forums / Managing Customers and Orders / Determine weight of an existing order

Determine weight of an existing order

Started by lat9 on 5 May 2013, 4:36 PM · Views: 1,037

Results 1 to 7 of 7
5 May 2013, 4:36 PM
#1
lat9 avatar

lat9

Administrator

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

Determine weight of an existing order

Is there a way to determine the weight of a placed order?

I'm guessing that the answer is "No, not without assuming that the individual products (a) still exist and (b) still weigh the same" because there's no weight captured in the database orders table and the orders_products table doesn't contain a column for the product's weight.

5 May 2013, 5:01 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Determine weight of an existing order

Unfortunately, this is not a saved field in the orders table nor the orders_products table ...

If displayed, this is saved as part of the text in the orders_history table ...

This can be recalculate, but the better solution would be to add a new field to the orders table, such as shipping_weight, and/or the orders_products table, such as products_weight, and add the weight when the Order is created for later use ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 May 2013, 5:20 PM
#3
lat9 avatar

lat9

Administrator

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

Re: Determine weight of an existing order

Thanks for the quick confirmation, Ajeh. I find it "interesting" that the orders_products_attributes table records the information and will head down the path you implied regarding adding fields to the orders and orders_products tables.

5 May 2013, 5:46 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Determine weight of an existing order

Use those field names and it might help you in future releases ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 May 2013, 7:37 PM
#5
lat9 avatar

lat9

Administrator

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

Re: Determine weight of an existing order

Ajeh:

Use those field names and it might help you in future releases ... :smile:
Thanks, Ajeh, I will! There are a couple of other product fields that aren't carried out to the order that would also help to properly edit or pay an invoiced order:

  • products_virtual
  • products_quantity_order_min
  • products_quantity_order_units
  • products_quantity_mixed
  • products_quantity_order_max
  • product_is_always_free_shipping
  • products_mixed_discount_quantity
6 May 2013, 1:13 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Determine weight of an existing order

I do not know if we would add all those fields but we will talk it over ... and see ... :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 May 2013, 8:47 PM
#7
lat9 avatar

lat9

Administrator

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

Re: Determine weight of an existing order

Thanks, Ajeh; the most important ones for me at this point are products_virtual and product_is_always_free_shipping as those appear to be used by the "real" (as opposed to an invoice-type) payment modules.