Draft:X-Cart:ShippingEasy
Overview
ShippingEasy module system requirements and installation
See ShippingEasy module installation.
Integrating your X-Cart store with ShippingEasy
- Sign up for an account with ShippingEasy. For detailed information, see the How to create a ShippingEasy account guide on the ShippingEasy website.
- If you haven't yet done so, install the ShippingEasy module in your X-Cart store.
- To integrate your X-Cart store with ShippingEasy, you will need access to both your X-Cart store's Admin area and your ShippingEasy account settings, so be sure to sign in to both the sites and keep them open in your web browser tabs. For a production ShippingEasy account, the account settings can be accessed at https://app.shippingeasy.com/settings, for a staging account - at https://staging.shippingeasy.com/settings.
- (Skip this step if you have already configured your X-Cart store's settings in ShippingEasy during registration): Add your X-Cart store to the list of stores in your ShippingEasy account:
- In the Settings section of your ShippingEasy account, click on the Stores link under Integrations.
- Click the + Add New button on the right-hand side of the screen.
- From the Platform drop-down box, select X-Cart. In the Store URL field below, enter your X-Cart store's URL.
- Click Save.
- Enter the required store settings and click Save at the bottom of the page. This creates an entry for your X-Cart store in your list of stores in ShippingEasy.
- In your X-Cart store's Admin area, go to the Modules section (Settings menu -> Modules), locate the entry for 'ShippingEasy' and click the Configure link next to it.
<img>
You should now see the Shipping module configuration page:
<img>
Here you will find three fields that you will need to fill with values copied from your ShippingEasy account settings: your API Key, API Secret and Store API Key. - Back in the browser tab where you are using ShippingEasy, copy the Store API Key for your X-Cart store:
<img>
Paste this value into the Store API Key field on the ShippingEasy module configuration page in your X-Cart store. - In ShippingEasy, click on the Settings tab, then click on the API Credentials link under Account Settings:
<img>
Your API Key and API Secret will be displayed:
<img>
Copy and paste these values one by one into the API Key and API Secret fields on the ShippingEasy module configuration page in your X-Cart store. - If you are a third party developer using a staging ShippingEasy account, select the Staging account option on the ShippingEasy module configuration page in X-Cart. For production use, leave the Staging account check box unselected.
- Click the Apply changes button at the bottom of the ShippingEasy module configuration page in X-Cart to save the module configuration.
- Make the Shipment Callback URL that was automatically formed for your store by ShippingEasy as "Store URL + /shipment/callback" actually work for your store. To do so, insert the following rewrite rule into the .htaccess file located in your X-Cart installation directory:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^shipment/callback shippingeasy_callback.php </IfModule>
- Important: If your store uses the Clean URLs feature, make sure this code block goes before the code block for clean URLs in your .htaccess file.