Skip to main content

OpenCart Integration

OpenCart is an easy-to-use, powerful, Open Source online store management program that can manage multiple online stores from a single back-end.

The following guide will show you how to integrate your OpenCart store with Starshipit, once completed your orders will automatically import into Starshipit and the tracking numbers will be written back to OpenCart when you print a label.

The first step is to download and install the Starshipit app in your OpenCart account, in a second step you will have to create an API access in OpenCart and add the Starshipit IP address, to finalise the integration you will need to copy/past the OpenCart API information in your Starshipit account.

Integrate using OpenCart API

1. Download and install Starshipit Extension for OpenCart

https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=33254

2. Create a API access for Starshipit in OpenCart

  • Log on to your OpenCart Administration site
  • Go to Settings>Users>API
  • Complete API Name
  • Generate the API Key
  • Set Status as "Enabled"
  • Go to "IP Addresses" Tab
  • Add the following IP addresses:
    • 104.40.200.176
    • 104.40.201.109
    • 104.40.204.252
    • 104.40.205.110
    • 104.40.205.29
    • 125.236.208.143
    • 13.69.68.2
    • 13.70.65.114
    • 13.70.65.145
    • 13.70.67.84
    • 13.70.71.54
    • 13.70.71.83
    • 13.73.195.135
    • 13.75.138.224
    • 13.75.144.52
    • 13.75.144.82
    • 13.75.145.35
    • 13.75.149.31
    • 137.117.153.170
    • 222.154.228.31
    • 23.101.208.53
    • 23.101.208.54
    • 23.101.208.55
    • 23.101.208.56
    • 23.97.146.237
  • Click Save

 Add_API_access.png

Add_IP_addresses.png

3. Add OpenCart integration with API details in Starshipit

  • In Starshipit go to Settings > Integrations > Add a new integration > OpenCart
  • Tick Enable OpenCart
  • Tick Use API
  • Fill in the API Name and API Key created in the previous step 
  • Click Save

Use_API_settings.png

 

Troubleshooting

- I have successfully integrated my OpenCart shop but the orders are not coming through.

--> Per default Starshipit import the order with Status = Pending, make sure you have Pending order in OpenCart, or change the "Status to Import" in the settings.

 

Supported versions

Starshipit's extension supports the following versions of OpenCart:

Version 2
2.0.1.1
2.3.0.2

Version 3
3.0.0.0
3.0.3.6

 

 

 

OpenCart Legacy Integration (deprecated)

1. Implement the PHP files on your website

  • Please download the files from here.
  • Once downloaded, extract the .zip file. It includes an import.php file and update.php file.
  • Login into your Starshipit account and get your API Key which is available under Settings > API Key
  • Once you have created your key, enter it into the second line of each file above.
  • Look for $apiKey= "Get key from Settings > API Key"; and replace the part of the = with your key
  • Copy Files to Server
  • Navigate to your OpenCart server root directory and copy the two files from above into the admin folder.

 2. Enter the path of the PHP files in Starshipit

  • In the Starshipit Main menu Click on Settings > Integration > Add New and select OpenCart from the Add Integration List. 
  • Tick the 'Enabled' checkbox at the top of the page and enter the full URL to the admin folder on your site (i.e. http://www.yourwebsite.com/admin/).
  • Then click 'Save' to apply your changes.

Legacy_Settings.png

3. Troubleshooting

Q. My orders have not imported

A. The first step is to verify is that the import.php file is well located and accessible by Starshipit.  

Try to access the following URL through your browser: http://www.yourwebsite.com/admin/import.php -  if the browser is returning a 404 error please go back and redo the previous steps.  

If it returns an execution error, please contact the support team at support@starshipit.com.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.