Tags/topics: 
1
Answers
Vote up!
1
Vote down!

Royal Mail International Shipping rates

Have you implemented shipping rates from Royal Mail into a DC site?

We need to offer 'International Signed' rates to customers but would rather avoid maintaining the 24 rules that would need if we can.

Would love to hear of a solution that can be maintained by customer as they may want to tweak rates to allow for an aspect of packaging cost.

(Why Royal Mail don't make their API public is a bit of a mystery, their site has a calculator - and the site is built on Drupal!)

Andy @ BlueFusion
on June 15, 2015

1 Answer

Vote up!
0
Vote down!

FWIW we ended up doing this by creating a flat rate for each type of shipping - the 4 zones of the world set by the Royal Mail with huge thanks to https://www.drupal.org/project/rmzone

Then we added a module that gets the total weight of the order ( using commerce_physical_order_weight() ), takes into account the 250g that's included in the base rate and adds on a calculated amount for the rest of the weight and feeds it back into the shipping line item total.

In total it was 20 lines of code ( excluding comments & white space ). for the calculations & return.

Andy @ BlueFusion
Posted: Jun 24, 2015