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

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Problem with cart weight calculations
« on: October 27, 2013, 09:29:57 am »
J! 2.5.14
VM. 2.0.24
PHP 5.3

I found some topics about this problem but there is not solution or there is no any answer.
VM select only first option - the minimum.
There is product weight for each product.
There is different prices for different weight.
I made a lot of tests and I dont know is it a config problem or it is a bug. I think this is not config problem.
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Enriko

  • Beginner
  • *
  • Posts: 9
    • Baby Bollies
Re: Problem with cart weight calculations
« Reply #1 on: October 27, 2013, 16:17:30 pm »
Dear servlet,

I had the same issue. I could replicate it and found out a workaround for it. But is should be fixed in total.
To help this on the short term. Is to always have the weight rules in Kilogram for the shipment methods. Then there is no issue with it.


Replication steps:
I first created two products.

1 with the weight in 751 gram


1 with the weight in 0.751 KG


Both are the same weight.


After that I created two shipments methods.

1 with the minimal weight of 0.250 KG (NAMED PostNL Brievenbus post 0 - 250 gram)


1 with the minimal weight of 250 Gram (NAMED PostNL Brievenbus post 0 - 250 gram Copy)


Both have the same weight break rules. (250 gram)

If I add the product, it doesn't matter which one of the two. Both are stating as weight 751. (
vmdebug getOrderWeight Var1:
751.0000
vmdebug getOrderWeight Var1:
751.0000


But if I check in the vmdebug. Then I see the following:
vmdebug shipmentmethod PostNL Brievenbus post 0 - 250 gram = FALSE for variable weight = 0.751 Reason: is over 0.250
vmdebug shipmentmethod PostNL Brievenbus post 0 - 250 gram Copy = TRUE for variable weight = 0.751 Reason: is lower than the set 250

So the copy, which is filled in as gram. Is not converted to KG. And therefore is possible to load 1000 times more weight.

The bug is in the conversion (or the lack of it) of the shipment methods from Gram to Kilogram
Please let me know if this bug is already known or how we can track this one, to inform others.

Greetings Enriko

J! 2.5.14
VM. 2.0.24
PHP 5.3.27

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #2 on: October 27, 2013, 19:48:15 pm »
You tell me to create two variants for each product?!?
I have more then 2k products.
Or it is only for tests
If it is only for tests I found it that ... If in product details is set KG dimension in cart is calculated like grams...
This bug may be is so old. I have problems in 20b too...
I dont know how anyone has live site with this problem...
May be something we miss.
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #3 on: October 27, 2013, 19:51:20 pm »
Did you test to set dimension grams in product details and to set default dimension in Shop - grams? I am not yet
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #4 on: November 08, 2013, 13:10:11 pm »
Enriko, did you solve the problem? I made a lot of tests but there are no results.
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Enriko

  • Beginner
  • *
  • Posts: 9
    • Baby Bollies
Re: Problem with cart weight calculations
« Reply #5 on: November 08, 2013, 15:12:16 pm »
Hi Servlet,

No i didn't do any more tests.

My below analyse is for me clear enough to describe the issue. I don't know what we can do more (without going into the code) to have this solved.

I rather have a developer check into this issue and let them decide if this is a feature or a bug.

Greetings Enriko

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #6 on: November 09, 2013, 11:45:53 am »
We will wait...
Thanks for replay
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #7 on: November 15, 2013, 01:41:05 am »
I just tested this on our new vm2.0.24a and it seems fixed.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: Problem with cart weight calculations
« Reply #8 on: November 15, 2013, 18:47:56 pm »
Thanks Milbo
I will test it...
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

lode999

  • Beginner
  • *
  • Posts: 10
Re: Problem with cart weight calculations
« Reply #9 on: November 15, 2013, 23:02:56 pm »
I am using  2.0.24a.. and I have t he same problem... and the latest 2. joomla
shippingmethod is in KG
standard shippingmethod: plugin enebled

My debug says

FALSE for variable weight = 0 while my product has a weight of 5 kg.

I only get 1 shopingmethod (a wrong one) if I set it starting from 0kg.

I am searching for hours on google.. but I find no answers.
Can you help?

Thank You,
Lode

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #10 on: November 16, 2013, 11:16:31 am »
version?
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 #11 on: November 16, 2013, 19:04:27 pm »
sorry
Joomla 2.5.15

But now I have looked at an other shop I have made.
There  we don't do it with weight...  only  shippingrates for country's.
But the products have a weight filled in.
When I set on the debug for VM I see that the weight of the products is 1.1 kg. Even I change quantity to 100.
So there also the calculation of the weight is not correct.
There the  joomla version is 2.5.14 en the VM 2.0.24

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #12 on: November 16, 2013, 19:55:11 pm »
use 2.0.24a !
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 #13 on: November 16, 2013, 21:14:19 pm »
On the other site in my first post I am using  24a

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Problem with cart weight calculations
« Reply #14 on: November 17, 2013, 16:11:40 pm »
Did you update the core and the extensions? for a proper answer I need a screenshot of the product edit with the weight,.. a screenshot of the plugin and the vmdebug message. For me it works with different quantities also the calculation of onze and similar
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/