I'm trying to write a custom.inc to allow shipping to be applied per product type. I have followed the guide here http://drupal.org/node/135862 . My custom.inc is trying to use just one product type (cloning tangible will probably break in future updates and makes updating more painful).

The following error occurs even when I'm using just the standard shipping.inc…

When buying an item that has a shipping rate of 0 it always appears in the cart review section, even when 'suppress if the total is 0' is checked. The rate for the region is set to 0 and 0 kg.

Is this normal?

It is giving me headaches with my custom.inc, since I want 3 different rates for one product type. I get 3 rows in the review cart with 2 showing £0:00 - not pretty.
I was hoping to use alter the 'Flexicharge attributes' to allow a select list of the flexicharge settings to apply a preset for the product this is instead of the weight attribute.
This means I should be able to apply only one per product, even though all 3 flexicharge profiles are set to use the one product type.

I hope this makes sence.

Thanks,
Drew

Comments

drew reece’s picture

I have gone back to the tutorial and created an additional product type. I'm trying to apply a flexicharge based on product type. I'm even using the simple shipping provider to eliminate any errors i have coded in my custom.inc. (a clone of shipping.inc)

It seems the option 'Product types:' in the flexicharge defaults simply doesn't work if there are 2 different product types in the cart.

I'm having trouble figuring out what is going on with the transaction and items arrays. Anyone have any suggestions?

Thanks,
Drew

funkeyrandy’s picture

Priority: Normal » Critical

im having the same issue:

http://drupal.org/node/228989

is this a bug? how/what is solution?

drew reece’s picture

Status: Active » Closed (duplicate)

This is the same problem as …
http://drupal.org/node/228989

D