Detailed installation and configuration guide for the Shopify Integration module
This guide explains step by step how to configure the Shopify integration for Dolibarr. We detail exactly where to find each value needed for configuration.
This version brings major improvements for smoother and more automated integration.
The CRON system can now automatically import your historical orders during the first synchronization, automatically creating associated customers.
CRON tasks automatically activate as soon as product and order configurations are complete, and deactivate if configuration becomes incomplete to prevent API errors.
Component | Required Version | Verification |
---|---|---|
PHP | 7.2.5 to 8.3.16 | Dolibarr Menu → Home → System Information |
Dolibarr | 19.0 to 21.x | Dolibarr Menu → Home → Version |
cURL Extension | Enabled | Dolibarr Menu → Home → System Information → PHP Extensions |
JSON Extension | Enabled | Dolibarr Menu → Home → System Information → PHP Extensions |
Dolibarr Integration
Click "Configure Admin API scopes" and enable these permissions:
Scope | Permission | Justification |
---|---|---|
read_products |
Read | Read Shopify products |
write_products |
Write | Create/modify products |
read_orders |
Read | Read orders |
write_orders |
Write | Modify orders |
read_customers |
Read | Read customer data |
write_customers |
Write | Create customers |
read_inventory |
Read | Read stock |
write_inventory |
Write | Update stock |
read_locations |
Read | Read locations |
Click "Save" after selecting all scopes.
Now that your application is created, here is exactly where to retrieve each value:
Dolibarr Field | Where to Find the Value in Shopify | Exact Format | Example |
---|---|---|---|
Shopify Store Hostname * | Your store URL (address bar) | mystore.myshopify.com (WITHOUT https://) |
test-store.myshopify.com |
Shopify Access Token * | Apps → Develop apps → [Your app] → API access tokens → "Admin API access token" | shpat_xxxxxxxxxxxxxxxxxxxxxxxx |
shpat_1a2b3c4d5e6f7g8h9i0j |
Shopify API Key * | Apps → Develop apps → [Your app] → API credentials → "API key" | Alphanumeric string | abc123def456ghi789 |
Shopify API Secret Key * | Apps → Develop apps → [Your app] → API credentials → "API secret key" | Secret alphanumeric string | shpss_xyz789abc123def456 |
Shopify Location ID * | Settings → Locations → Copy the ID of your main location | Integer number | 123456789 |
Shopify Vendor | Your brand/company name (optional) | Free text | My Store |
Hostname:
WITHOUT "https://" at the beginningAccess token:
Usually starts with "shpat_"Secret key:
Usually starts with "shpss_"Location ID:
Numbers only, no text.../locations/123456789
123456789
Field | How to Obtain the Value | Notes |
---|---|---|
Dolibarr API Key * | Automatically generated by the module | If you don't have one: Menu → Users & Groups → [Your user] → API Tab → Generate |
Dolibarr Host URL * | Automatically detected | Ex: https://yourdomain.com/dolibarr |
Dolibarr Product Category * | Menu → Products/Services → Categories → Select your category | Only products in this category will be synchronized |
Parameter | Recommended Value | Explanation |
---|---|---|
Maximum orders per sync | 10 | Limits the number of orders processed each time |
Products per cron cycle | 10 | Number of products updated per automatic cycle |
Option | Description | Recommendation |
---|---|---|
Synchronize prices | Sends Dolibarr prices to Shopify | Enabled - Essential for e-commerce |
Price level (if multiprice) | Which Dolibarr price level to use | Level 1 generally |
Synchronize descriptions | Sends product descriptions | Enabled - Important for SEO |
Synchronize images | Sends product images | Enabled - Essential |
Synchronize stock | Updates stock quantities | Enabled - Prevents overselling |
Use virtual stock | Real stock - orders + supplier orders | Enabled - More accurate |
Field | Where to Configure in Dolibarr | Example |
---|---|---|
Order prefix | Free text (ex: SHOP-) | SHOP- |
Order origin | Menu → Setup → Dictionaries → Origin of commercial proposals/orders | Internet |
Payment terms | Menu → Setup → Dictionaries → Payment terms | Payment on receipt |
Default shipping method | Menu → Setup → Dictionaries → Shipping methods | Colissimo |
Shipping product | Menu → Products/Services → Create a "Shipping" service | Service with ref PORT001 |
Default warehouse | Menu → Stocks → Warehouses | Your main warehouse |
Bank account | Menu → Bank → Financial accounts | Your main account |
SHIPPING
Shipping
0
(will be calculated automatically)Import all your previous Shopify orders automatically during the first module configuration.
Field | Description |
---|---|
Enable historical import | Enables automatic import of previous Shopify orders during the next CRON execution. Automatically unchecks after successful import to prevent duplicates. |
Import start date | Date from which to import historical orders (leave empty to import from beginning) |
Import end date | Date until which to import historical orders (leave empty to import until today) |
Historical import completed | Indicates if historical import has been performed. Once completed, only new orders will be imported |
Task | Recommended Frequency | Description |
---|---|---|
Product synchronization | Every hour | Updates products and stock |
Order import | Every 15 minutes | Retrieves new Shopify orders |
How to update the Shopify Integration module to a new version from the DoliStore.
If you cannot resolve your problem:
Your Shopify-Dolibarr integration is now configured. You can test synchronization via the manual synchronization interface.
Back to Home Rate the Module