- Preparing your WooCommerce products
- Configuring your Store
- Generating your API Keys
- Setting script execution time
Preparing your WooCommerce products
Before connecting your WooCommerce store and importing your products into Sellbrite, please verify that your products are set up properly to work with Sellbrite.
Visibility - Make sure your products are Published and have the Visibility set to Public. These are the only ones that will be accessed by Sellbrite.
SKUs - While SKUs are not required on your WooCommerce products in Sellbrite, we recommend that you use them, especially for products with variations. Add SKUs to your products in WooCommerce before importing them into Sellbrite. (Learn more about Why You Need SKUs here)
Manage Stock - Confirm that the Manage Stock setting is enabled on all your products, including on the variation level if your products have variations. This will allow Sellbrite to sync your inventory with the products in your store.
Configuring your Store (enabling the REST API)
The instructions below are based on the WooCommerce layout introduced in version 2.4. Sellbrite does not support WooCommerce versions prior to 2.4.
To enable the REST API within your WooCommerce store admin, visit the WooCommerce > Settings > API tab and check the Enable REST API checkbox. Don't forget to save changes.
To verify that you are using the correct Permalink settings, visit Settings > Permalinks (this is on the Wordpress settings page, not the WooCommerce settings)
Use any option EXCEPT for the Default permalink option.
Create a new user with an Administrator role.
Generating your API Keys
The WooCommerce REST API works on a key system to control access. Once you generate your API keys, you will need to copy and paste these keys into the WooCommerce settings page in Sellbrite.
Visit the WooCommerce > Settings > Advanced tab and click REST API.
Then click Add Key.
Enter a description and choose the user you created in the steps above. Then set permissions to Read/Write.
Click the Generate API Key button, and your Consumer Key and Consumer Secret will be created.
Keep this window open -- you won't be able to access the key again if you navigate away or close the window.
In a new window, login to your Sellbrite account and visit Settings > Sales Channel Integrations > WooCommerce. Copy and paste the Consumer Key and Consumer Secret into the fields on this page.
Then enter your store URL, and click the Connect your account button.
Once your WooCommerce account has been connected, Sellbrite will attempt to create a Product Tag in your WooCommerce Store to ensure you've setup your connection correctly. You can find and delete this Product Tag in your WooCommerce store by navigating to Products > Tags.
Setting script execution time
Please contact your system administrator if you need help with this.
While it's not required, increasing the maximum time a script is allowed to run on your server before it is terminated is recommended, especially if you have products will a lot of variations (more than 20 or so).
To do this, you will need to change the max_execution_time setting in your php.ini file on your server. The default is 30 seconds. You should change it to 60 or 120 seconds to allow for ample time for your server to process the calls from Sellbrite.