Plugin Support
lusp
(@lusp)
Hi @izomar,
Could you please provide us with some more details on what exactly doesn’t work with WooCommerce Measurement Price Calculator at the moment? We haven’t been notified about any issues with this plugin so far.
Kind regards,
Luke
Thread Starter
izomar
(@izomar)
The WooCommerce Measurement Price Calculator plugin allows, for example, the purchase of a given product by m2, i.e. the customer enters that they need a dimension of 10m x10m which is a total of 100m2 where the unit of 1m2 weighs 1kg. I want it to show the total weight in the basket, in this case 100kg and not 1kg.
Greetings.
Plugin Support
lusp
(@lusp)
From what you have written, it seems that the problem here might be related to the fact that WooCommerce Measurement Price Calculator plugin adds the weight, being the calculation result, some other way than our Cart Weight plugin. Cart Weight get the weight from WooCommerce cart with get_cart_contents_weight
. Since the WMPC is a premium plugin, I’m afraid that contacting the WMPC support might be necessary to make these two run together smoothly.
Kind regards,
Luke
Thread Starter
izomar
(@izomar)
I understand that I would have to contact them. Just what should I ask?
Plugin Support
lusp
(@lusp)
The information on how and when the WMPC plugin gets the products’ weight should shed some light on the situation here.
Kind regards,
Luke
Thread Starter
izomar
(@izomar)
Hi. I have not yet received a reply from the creator of the WMPC plugin, but I may have information that can help. I am using your flexible shipping plugin, for determining shipping costs by weight, and your plugin works correctly in conjunction with the WMPC plugin, that is, it calculates the shipping cost for the total weight and not for a single m2. It might be enough to know where FS gets the weight of the product from?
Plugin Support
lusp
(@lusp)
The difference between the Flexible Shipping and Cart Weight plugins is that the Flexible Shipping checks what’s the weight of each single product currently being in the cart and then sums up their total weight. The Cart Weight, in turn, does not sum up the weight of each single product but takes the weight value served directly by WooCommerce via get_cart_contents_weight
.
If the Flexible Shipping plugin’s weight-based rules recognize the products’ weight properly, it means that the WMPC plugin uses the woocommerce_cart_contents_weight
filter to add the calculated weight value, which comes into play later than get_cart_contents_weight
used by the Cart Weight. This is why the Cart Weight does not see these modified later weight values coming from WMPC.
Since the Cart Weight uses the WooCommerce default mechanisms, and WPMC modifies the weight non standard way with the filter, I’m afraid that in such case the WMPC would need to change the way how they weight values are applied by their plugin to make these two running well together.
Kind regards,
Luke
Plugin Support
lusp
(@lusp)
Since there are no further inquiries concerning this case, I’m marking this thread as resolved.
Kind regards,
Luke