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

recidive’s picture

@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 :)

brunorios1’s picture

unfortunately i'm not a coder :(

you said that you did this using fields and custom code...

can you give me more details?

thanks!

brunorios1’s picture

i'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!

recidive’s picture

Just a note Physical Fields integration is being developed in the 2.x branch.

recidive’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
recidive’s picture

Assigned: Unassigned » recidive
Status: Active » Fixed

Fixed. I'm gonna roll a beta release! Yay!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

adding example

cesar.brod@gmail.com’s picture

Issue summary: View changes

I 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!

caco13’s picture

I 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.