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.
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.
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!
This vQmod adds a row under the price total that displays the total weight of the order.
Thanks for the original mod Qphoria!
A good site for e-commerce advice.
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 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...!
Thanks for this Qmod.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!
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) ?>
I guess I need to add some info about $weighttot somewhere.
Can anyone help me out?
Thanks,
Fredik
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:
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:
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
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
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
Thanks
robster
I know my place...!
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
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 (29.51 KiB) Viewed 8890 times
Same question as a lot of other people here.
Is there a solution yet for v2? this is a great extension.
Is there a solution yet for v2? this is a great extension.
@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
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.
Who is online
Users browsing this forum: No registered users and 53 guests