Carrier-calculated Shipping Rates
page last edited on 30 September 2016
Some carrier companies provide web services that allow shopping carts to access information about the shipping options and rates provided by these companies in real time. Shopping carts integrated with such services can provide real-time carrier-calculated shipping quotes to their users.
X-Cart 5 provides integrations with a few of the most popular real-time shipping rate calculation services, including:
- Canada Post;
- Royal Mail Service;
- EMS Russian Post;
- Bongo International;
- Pilibaba Chinese Checkout;
During checkout, after a customer has submitted the shipping address, X-Cart sends the order information to the API of the carrier (for example, FedEx). The carrier then uses the information submitted by X-Cart - including the information about the origin and destination addresses, the weight of the products in the order and, if specified, the expected parcel dimensions (length, width, height) - to calculate the shipping rates. The customer is then provided with information about the shipping options and rates applicable to the order.
For unregistered customers shipping rates are displayed at checkout in the very same order they are set in the admin area (first comes the first active shipping method from the shipping settings page (Store setup -> Shipping)).
For registered customers the first shipping method displayed at checkout will be the one they used for the previous order. The rest of the shipping methods will come in the order of active shipping methods defined in the admin area.
Since the shipping costs are calculated automatically by the carrier at the exact time the order is placed at, this method allows you to get the most accurate rates.
To use carrier-calculated shipping rates, configure shipping as outlined below:
- In your store’s Admin area, go to the Shipping methods section (Store setup > Shipping):
- Click the Add shipping method button: You’ll see a pop-up where you can choose the type of shipping rates you would like to use:
On the Carrier-calculated rates tab within the popup window, locate the carrier whose real-time rate calculation service you would like to use. Click on the respective icon: If the selected shipping integration addon is installed and enabled at your store, you will be redirected to its settings page. If not, you will be redirected to X-Cart’s Marketplace from which you will need to install the respective addon.
- Configure the settings of the selected shipping integration addon and save the changes. We have instructions for some popular shipping addons:
If necessary, configure a surcharge that will be added on top of the carrier calculated shipping rates to accommodate additional expenses. For details, see the article on Handling fee.
Make sure the shipping method you have configured is active.
Make sure you have specified your company address in the store’s settings. When calculating shipping rates for an order, the carrier’s shipping rate service will use this information as the origin address where the order will be shipped from. For more info on how to set up your company address, see the article Specifying your company’s identity and contact information.
- Make sure that all products that will be shipped using the shipping method you configured:
- have the option Requires shipping (in older X-Cart versions - Shippable) enabled;
- have a non-zero product weight specified.
That is all. Now you should be able to get shipping rates for your products.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.