Sync orders, shipments, and inventory between Onport and Saleor.
Onport allows you and your business to connect and sync sales, purchases, and inventory data across multiple e-commerce stores and sales channels. In addition to the traditional hosted and self-hosted shopping platforms, Onport also supports headless platforms such as Saleor.
Here are some of the activities that Onport is able to perform with a Saleor store.
Fetch Orders from Saleor
Create Fulfillments
Update Inventory Quantities
Update Variant Prices
Publish Variants
COLLECTING THE AUTHENTICATION TOKEN
In order to be able to connect Onport with your Saleor store, you will need to generate an Access Token from your Saleor administration panel:
Access the Saleor administration panel
Click Apps
Create a new Saleor application
Enter the app name which could be Onport or anything easily recognizable
Enable all permissions except Handle Payments
Save the App
Create token for that application as shown in the screenshot below:
You will need to store the token in a safe place to be able to enter it into Onport at a later stage.
CREATING THE VENDOR ATTRIBUTE
One of the necessary steps to prepare the Saleor environment for Onport is to create the Vendor Product Attribute.
In order to do so, here are the steps to follow:
Access the Saleor Administration Panel
Click Configuration ->Attributes -> Create Attribute
Fill In the fields i.e. Vendor
Fill in a value for the Product Attribute and hit Save
Save the Product Attribute and return to the list, where you will see the saved Attribute
Move back to Configuration and click Product Types
Click on a Product type you wish to assign the attribute to
Select the Vendor attribute and click Assign attributes
Products with the previously configured product type will have a Vendor attribute. You may want to edit them and enter the Vendor's name
GETTING THE EXTERNAL CHANNEL
In order to get the external channel id, you need to click Configuration > Channels and select the channel name.
Once the channel configuration page is opened, the URL will look like this:
https://<saleorUrl>/dashboard/channels/<id>
You will need to extract the <id> portion from the URL and save it.
GETTING THE EXTERNAL WAREHOUSE
In order to get the external warehouse id, you need to click Configuration > Warehouses and select the Warehouse name.
Once the Warehouse configuration page is opened, the URL will look like this:
https://<saleorUrl>/dashboard/warehouses/<id>
You will need to extract the <id> portion from the URL and remove the last == characters at the end.
CONNECTING TO SALEOR
New Saleor stores can be added within the setup area.
After logging into Onport, click Integrations > Select Saleor > New saleor-store
Next, you will need to enter the information that was previously copied during the setup on the Saleor Dashboard.
Here is an example of how the fields need to be populated.
Name: Store name
Store url: http://<saleorUrl>/graphql/
Access token: token from setup on Saleor
External Channel: token from setup on Saleor
External Warehouse: token from setup on Saleor
Once done, click Save. Onport will start importing products shortly after the configuration is completed.
REMOVING PRODUCTS
If you wish to remove an item from your Saleor store, we recommended first deleting the product in Saleor. Next, you'll need to remove it from Onport.
Find the variant in Onport under the Inventory section. Once you’ve found the variant, select the checkbox next to it and click the trash icon in the upper corner of the screen.
If you want to publish this item again, make sure to publish it on your Saleor store first, and then it will automatically sync with Onport the next time the sync runs (usually hourly, sometimes daily).