Post by Qphoria » Fri Apr 29, 2011 3:27 am

This mod will add the product + option weights to the invoice under the price.

Things to note:
OpenCart does not store product or option weight to the order tables. This mod does not do it either. Instead, this mod simply assumes the weight from the product table will be static. This also means that if you ever edit and save the product, the option weight will be lost since options ids are not persisted. It's a hack but it's free.

Attachments


Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by trisha » Thu May 05, 2011 9:05 am

It works PERFECT now, thank you so much

Trisha
Scottsdale, AZ


Newbie

Posts

Joined
Thu Apr 28, 2011 2:05 am

Post by jty » Thu May 05, 2011 10:21 pm

Just when I've written a mod to save the cart weight to the order table ::)
I love it when I think something and someone else writes it for us :)
Thank-you. I shall undo my mod.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Thu May 05, 2011 10:24 pm

jty wrote:Just when I've written a mod to save the cart weight to the order table ::)
I love it when I think something and someone else writes it for us :)
Thank-you. I shall undo my mod.
I just wait for others to have an idea in their sleep and I steal it from their minds... i'm the dream snatcher!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mkh » Wed Aug 24, 2011 9:48 pm

Nice, would love to see this on the mail send to customer and in order history...

mkh
New member

Posts

Joined
Fri Jun 24, 2011 1:55 am

Post by H2O » Fri Apr 06, 2012 6:41 am

Using Qphoria's vQmod above, I altered it a little to create a mod to add the total cart weight to the invoice instead of the products' individual weights.

This vQmod adds a row under the price total that displays the total weight of the order.

Thanks for the original mod Qphoria!

Attachments


A good site for e-commerce advice.


H2O
New member

Posts

Joined
Wed Feb 29, 2012 7:36 am

Post by robster » Wed Sep 12, 2012 9:11 pm

This is very useful - thanks to all.

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by robster » Mon Oct 22, 2012 5:56 pm

Firts of all thank for creating this vQmod.

I do have a slight problem though. If you select multiple order invoices to print out then each invoice weight figure is incorrrectly added to the next invoice:

For example:

I print out three invoices for three orders (by selecting the three tick boxes next to the orders in order list view), order 1 is 10kg, order 2 is 5kg and order 3 is 3kg. OK what I then see on the invoices is order 1 @ 10kg, order 2 @ 15kg and order 3 @ 18kg.

The weights show correctly if I print out the invoices one by one.

Robster

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by Qphoria » Fri Dec 14, 2012 11:21 pm

Added option weight. But be sure to read the first post again.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by topfuel75 » Fri Jan 11, 2013 7:09 pm

H2O wrote:Using Qphoria's vQmod above, I altered it a little to create a mod to add the total cart weight to the invoice instead of the products' individual weights.

This vQmod adds a row under the price total that displays the total weight of the order.

Thanks for the original mod Qphoria!
Thanks for this Qmod.

I have tried it in 1.5.4.1, it show the correct total amount of weight.
But it also display the error message:
Undefined variable: weighttot in C:\_ WAMP _\wamp\www\oc\opencart_v1.5.4.1\upload\vqmod\vqcache\vq2-admin_view_template_sale_order_invoice.tpl on line 105

I have tried to alter

Code: Select all

<?php $prodweight= ($product['weight']*$product['quantity']); $weighttot= ($weighttot + $prodweight) ?>
but whitout any luck.
I guess I need to add some info about $weighttot somewhere.

Can anyone help me out?

Thanks,
Fredik

Newbie

Posts

Joined
Wed Jan 09, 2013 2:32 am

Post by crojo » Thu Mar 07, 2013 10:57 am

I fixed undefined variable and added in the weight of the product by Q and the total weight of the cart by H20 into one file.

Edit:

I refined it further to only have 2 decimal places, include total weight per item, total weight of all the items per item and total weight of the cart.

Example:

Image

Attachments


User avatar
New member

Posts

Joined
Thu Sep 20, 2012 12:14 pm

Post by outoftheordinary » Fri Mar 15, 2013 12:02 am

Hi guys,

I've spent hours trying to work this tweak but I don't see the weight in invoice on my email and checkout page. Did I miss something?

- Fresh install OpenCart 1.5.4.1
- default theme
- vqmod 2.3.2
- localhost MAMP


Regards

outoftheordinary


New member

Posts

Joined
Sun Nov 18, 2012 11:28 am

Post by robster » Fri Jun 20, 2014 6:14 pm

Just revisiting this post again and wonder (particularly aimed at Q) if there has been a fix for the issue I mentioned about the weights being added together if printing multiple invoices out at once (selecting multiple orders in order list and clicking the Print Invoice button).

Thanks

robster

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by raj79 » Sun Jul 20, 2014 4:29 pm

is this not work with latest version ?

Online Grocery shopping in delhi


New member

Posts

Joined
Fri Jun 06, 2014 3:57 pm
Location - Delhi

Post by raj79 » Sun Jul 20, 2014 5:16 pm

Dear sir !

Total weight is not showing at proper manner . we have grocery portal as apnakiranastore.com . where we have implemented " add_prodweight_cartweight_to_invoice.xml ".

WE have Tried to add tthree item as

1 pepsi of 600 ML
2 pepsi of 2LTR
3. Aashirvaad Atta 2quantity of 5.00kg each Total: 10kg


But it showing Total Weight: 1210ML , Its should be 10KG+2.600 ML

Please resolve my issue.
Screenshot attched.
warm regards
Raj singla

Skype : Raj_singla79

Attachments

Screenshot_1.png

Screenshot_1.png (29.51 KiB) Viewed 8890 times


Online Grocery shopping in delhi


New member

Posts

Joined
Fri Jun 06, 2014 3:57 pm
Location - Delhi

Post by XYX » Sun Jan 25, 2015 8:21 am

can someone update this for OC 2 please :(

XYX
New member

Posts

Joined
Thu Mar 06, 2014 1:07 am

Post by yanc » Wed Aug 19, 2015 1:11 am

How can i show weight of item in separate column in invoice?

Newbie

Posts

Joined
Wed Jan 15, 2014 6:32 am

Post by Weckie » Thu Dec 31, 2015 10:36 pm

Has anyone this solution for opencart version 2.1.0.1.

We would like to have the total weight printed on the packingslip.

This would be great.

Thanks.

Using opencart 2.1.0.1
Quite new to opencart :P


User avatar
Newbie

Posts

Joined
Thu Nov 19, 2015 4:01 am
Location - The Netherlands

Post by reececropley » Thu Apr 14, 2016 5:07 pm

Same question as a lot of other people here.

Is there a solution yet for v2? this is a great extension.

New member

Posts

Joined
Fri Mar 22, 2013 7:29 pm

Post by IP_CAM » Fri Apr 15, 2016 12:52 am

@reececropley: You need to look around here:
http://www.opencart.com/index.php?route ... t%20weight
---
All I found, on free OC v.2 Extensions at least, when it comes to weight Declarations:
---
Really Simple Add Weight for Package OpenCart 2.0
http://www.opencart.com/index.php?route ... n_id=25326
---
Show weight on product's page
http://www.opencart.com/index.php?route ... n_id=21245
---
Weight column on Admin Order List (2.x.x)
http://www.opencart.com/index.php?route ... n_id=24533
---
Weight in Product List by viethemes
http://www.opencart.com/index.php?route ... n_id=23113
---
Therefore, you'll probably have to wait, until more of such OC-v.2 Extensions will be available for free,
but for the foreseeing time, OC Dev's have to create some income first, to make a living... ::)
As anyone else around here probably would do as well, OC is about Money, for everyone involved,
down to the last Downloader, trying to generate Income with it !

Just to mention it, from time to time again, so, don't ever take it personally ! ;)
Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 53 guests