News:

Support the VirtueMart project and become a member

Main Menu

Problem with cart weight calculations

Started by servlet, October 27, 2013, 09:29:57 AM

Previous topic - Next topic

saviB

version
2.0.24b

Hello Milbo, I believe my issue is either related or is the same. I've been trying to use the existing weight to show volume. I essentially only apply a language overide to make this work for me. However, while trying to get weight to show in invoices, I discovered that Order Weight is A: Incorrect and B: Not increasing with quantity of product.

http://fairpricestudio.com/vm_images/pounds.jpg
http://fairpricestudio.com/vm_images/quantity.jpg
http://fairpricestudio.com/vm_images/order_weight.jpg

I discovered this because I was looking to use OrderWeight to display total weight in invoices. I have yet to be successful. Can you please address the above, and perhaps tell me the variable name for OrderWeight? So, instead of <td align="left"><?php echo $prow->product_weight ?></td> it would be <td align="left"><?php echo $prow->total order weight variable name ?></td>

Milbo

hmm strange it looks like it it calculates 18 pounds for it, but should be 81, yes? 18 pounds = 8.16466 ~ 8.1647 kilogramm, hmm
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lode999

In my case:
I have made a new joomla installation inside the maps of my problem site. so that it is in the same environment as my problem site.
Joomla 2.5.16 and the VM 22a.
Sample data for Joomla and the sample data for VM.
Made shippingrules.
Ant it seems to work fine. 

I have no time to try to fix the site, and I am going to move my tables from the database. And made a new site.

Milbo

#18
lode999 to talk about 2.0.22a is quite useless. you must anyway update asap (at least 2.0.22c), cause it is unsecure. On the other hand, interesting that it worked there. We know it is broken for 2.0.22, cause I fixed the 2.0.24, so we are now only interested in vm2.0.24b.


Quote from: saviB on November 19, 2013, 21:18:30 PM
version
2.0.24b

Hello Milbo, I believe my issue is either related or is the same. I've been trying to use the existing weight to show volume. I essentially only apply a language overide to make this work for me. However, while trying to get weight to show in invoices, I discovered that Order Weight is A: Incorrect and B: Not increasing with quantity of product.

I just tested that stuff with the pounds and all that. First I thought I got a wrong result, because the shipment was set on pounds. Be aware that you have weight units for your products, your store and your shipment method.

For me it works in 2.0.24b perfect
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

saviB

I've been making edits to an existing order so i don't have to keep using the cart. Order Weight does not change. What I did:

- Set all three (product, configuration, shipping method) to pounds.
- Went to orders, edit order, increase quantity, save.

No change in Order Weight. Is this a bug?

So, I made another order - and yes, it does work. You are correct - I had miss settings in (product, configuration, shipping method). Thank you.

And, Milbo, while I have your attention, can you please let me know what variable I can use to display total order weight in the invoices? 

servlet

saviB
you say if I use pound instead of kilos everything is ok?
Он-лайн магазин за фототапети http://mishelfoster.com