Project Description

Want to embed the Freight Rate Estimator Widget on your site?

Here is how:
1.Copy the following code and paste it to your HTML page near the closing tag of the body:

<script src="https://www.freightos.com/wp-content/uploads/tools/embed.js" data-id="freightos-estimator" type="text/javascript"></script>

 

2. Then add the following html tag where you want the widget to appear:

<estimator></estimator>

Configurations

The freight estimator can be configured to search for actual quotes instead of estimates that are pulled from your Freightos Account. This can be achieved by providing the following parameters to the main loading script:

  • data-key: your private API Key provided from Freightos. Contact apis@freightos.com if you don’t have one.
  • data-site: used to pull rates from your private site on freightos. Leave blank to get rates from public Freightos Marketplace.
  • data-partner: partnersite subdomain (e.g. mydomain.freightos.com ).
  • data-cheapest-each-mode: true/false (default true) to retrieve only the best quote per mode
  • data-affiliate: your affiliate hash provided from Freightos (checkout Freightos Affiliate Program)
  • data-direct-to-marketplace: true/false to direct the users to the partner site when they click on ‘Get live quotes’ button.

For example:

<script 
  src="https://www.freightos.com/wp-content/uploads/tools/embed.js"
  data-id="freightos-estimator"
  data-key="MY_PRIVATE_API_KEY"
  data-site="mysite"
  data-partner="mysubdomain"
  data-direct-to-marketplace=true
  data-cheapest-each-mode=true
  type="text/javascript"/>

 

The Estimator widget can be also provided un-styled to apply custom styles. This can be achieved by add unstyled to the estimator tag.

<estimator unstyled></estimator>