Jump to content

getOrderShippingCost on custom carrier module


PaoloGDMtech

Recommended Posts

Hi,

 

i need some help: i'm coding a custom carrier module.

In my getOrderShippingCost method i'm gonna calculate shipping costs using both cart total weight and price.

I'm fine with determine part of the cost based on the total cart price, but in order to determine the value of the weight shipping cost, i'd like to obtain the value computed by another "standard" prestashop carrier, that is set to operate only with weight ranges.

Now, i know this other carrier's ID, but have no idea about which method (and how!) to use to get the shipping value with a given (ID) carrier.

Any hints?

Thank you in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...