Overview
- Learn how to set up shipping rates at checkout for Magento 2.
- Install the Starshipit Magento 2 extension and allow customers to see live courier pricing on your checkout page.
- Starshipit supports live rates at checkout for selected carriers.
- Learn how to use dimensions in Magento 2 for live rates.
Live rates at checkout
Starshipit uses the destination address and the total weight and dimensions of the cart to electronically return a quote for each of your couriers. Your customer can select the preferred shipping method and the order will be imported into Starshipit with this shipping method.
How to use dimensions for live rates
Starshipit supports dimensions for live rates at checkout for Magento 2. To start using dimensions, you will need to create custom attributes in your Magento 2 store.
To create a custom attribute:
- Open your Magento 2 admin panel.
- Navigate to Stores > Attributes > Product.
- Click the Add New Attribute button.
-
Create the following custom attributes using the exact spelling (not case-sensitive) under the Attribute Label field:
- Length
- Height
- Width
- Leave the Catalog input Type as Text Field.
- Click Save Attribute for each attribute.
All custom attributes created for one product will also be created for all products as empty fields. If the fields are empty or if the customer sets a non-numeric character in the dimension, Starshipit will assume the value as zero when getting rates.
Once the attributes are added, live rates using dimensions will be available to customers immediately.
1. Install the extension app
Before installing any extension, please create a backup of the root folder of the Magento website and of the database.
- Download the Magento Extension File.
- Unpack the starshipit-services-3.0.0.zip file you've downloaded.
- Connect to the server where the website source folder is located with FTP/SFTP/SSH client.
- Upload all files and folders that you have unpacked to the root folder of your Magento website.
- Connect to your Magento directory with SSH.
- Run the following commands:
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy
2. Generate your API key in Starshipit
- Log in to your Starshipit account.
- Go to Settings, then select API.
- If the API Key field is blank, click Regenerate, then click Save.
- Copy the API key. You will need to paste in to your Magento Admin panel.
3. Add your API key in Magento 2
- Go to your Magento Admin Dashboard, select Stores.
- Under Settings, select Configuration.
- Select Sales, then click Shipping Methods, and select Starshipit from the list.
- Set Enabled to Yes.
- Paste your API key from Starshipit in the API Key field.
- Fill in the required fields according to your preferences.
- Click Save Config.
Your checkout should now display your Starshipit live rates.
What's Next?
Learn how to set up rates at checkout.