Author Topic: Problem with cart weight calculations  (Read 1923 times)

saviB

  • Jr. Member
  • **
  • Posts: 187
Re: Problem with cart weight calculations
« Reply #15 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.

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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #16 on: November 19, 2013, 23:28:50 pm »
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lode999

  • Beginner
  • *
  • Posts: 10
Re: Problem with cart weight calculations
« Reply #17 on: November 20, 2013, 12:03:56 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9856
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #18 on: November 20, 2013, 12:07:30 pm »
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.


 
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

saviB

  • Jr. Member
  • **
  • Posts: 187
Re: Problem with cart weight calculations
« Reply #19 on: November 20, 2013, 16:10:56 pm »
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

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #20 on: November 21, 2013, 20:14:51 pm »
saviB
you say if I use pound instead of kilos everything is ok?
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com