News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with cart weight calculations

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

Previous topic - Next topic

servlet

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.
Он-лайн магазин за фототапети http://mishelfoster.com

Enriko

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

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.
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

Did you test to set dimension grams in product details and to set default dimension in Shop - grams? I am not yet
Он-лайн магазин за фототапети http://mishelfoster.com

servlet

Enriko, did you solve the problem? I made a lot of tests but there are no results.
Он-лайн магазин за фототапети http://mishelfoster.com

Enriko

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

Он-лайн магазин за фототапети http://mishelfoster.com

Milbo

I just tested this on our new vm2.0.24a and it seems fixed.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

servlet

Он-лайн магазин за фототапети http://mishelfoster.com

lode999

#9
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

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

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

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

On the other site in my first post I am using  24a

Milbo

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