Hi,
I'm seeing that the Commerce Correios module calculates the shipping cost using the default Weight and Dimensions specified in the rule.
But products have different weights and dimensions and the shipping costs should be different too.
Maybe we can have a integration with the Physical Fields module, like the Commerce UPS:
Drupal Commerce supports the creation of custom product types that contain the fields you need to describe the products you sell, but the core modules don't define any fields specific to physical products. This module supplies such fields as physical weight and dimensions for use on your product types, allowing all sites to standardize on these fields to interact with shipping and rate quoting services.
Thanks!
Comments
Comment #1
recidive commented@brunorios1, hello, thanks for opening this issue.
At the time I've written this module, Physical Fields didn't exist. So I did the calculation based on default dimensions and added some custom code to integrate with standards number fields I've added to my product type.
Now there's Shipping 2.0 and Physical Fields, that we should certainly rely on. I'm not sure if Physical fields integration is possible with Shipping 1.0, but it should be. Though maybe we should open a 2.0 branch and do Physical Products and Shipping 2.0 in that branch. I'm open for suggestions.
Patches are welcome :)
Comment #2
brunorios1 commentedunfortunately i'm not a coder :(
you said that you did this using fields and custom code...
can you give me more details?
thanks!
Comment #3
brunorios1 commentedi'm making some tests with the shipping calculation and it seems that the price is always the same, even when i increase the product quantity or add more products...
the module does not consider the amount of items to calculate shipping fees?
thanks!
Comment #4
recidive commentedJust a note Physical Fields integration is being developed in the 2.x branch.
Comment #5
recidive commentedComment #6
recidive commentedFixed. I'm gonna roll a beta release! Yay!
Comment #7.0
(not verified) commentedadding example
Comment #8
cesar.brod@gmail.com commentedI am using Brazilian Correios 7.x-2.0-beta2, Physical Fields 7.x-1.x-dev and Physical Product 7.x-1.x-dev. I am having the same problem. Regardless the weight or dimensions, the rates are always the same...
Also tried setting the fields on Product and Product Display... Problem remains.
I have unset the defaults and yet the problem remains.
Tried the dev version and still nothing...
Cheers!
Comment #9
caco13 commentedI installed dev version, enabled Physical Products and Physical Fields. Then created a field Weight, of type Physical Weight in Variation types. Some tests returns the amount charged for SEDEX exactly the same as calculated in Correios site.
cesar.brod@gmail.com, have you saw this topic https://groups.google.com/forum/#!topic/drupal-br/9KC_CpFsY-o? May be useful.