Delivery Services Fedex/USPS

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Harpal Singh
Posts: 28
Joined: 21 May 2019, 09:52

Delivery Services Fedex/USPS

Post by Harpal Singh » 25 Jun 2019, 05:09

I want to implement Fedex and USPS delivery services, but I want to add delivery charges based on products dimensions and weight and should be calculated w.r.t. delivery address. But I am getting only fixed service charges.

Should I use any third party api to get charges or any other way?

Thanks
Harpal Singh

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Delivery Services Fedex/USPS

Post by aimeos » 25 Jun 2019, 15:52

You should implement a service decorator that adds the shipping costs in the calcPrice() method depending of the products in the basket and their dimensions/weight. If the rules for Fedex/UPS shipping costs are quite simple, you can implement them locally but we would recommend to use the Fedex/UPS APIs to get the real costs. This is also save if they change their prices.

If you implement decorators using the API, we would love to integrate your pull request :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply