The Bagisto Shopify Connector lets store admins import products from their Shopify stores into Bagisto. As a result, you can move a Shopify catalog to Bagisto without manual data entry. Each store connection also keeps its own attribute and catalog mappings.
The connector talks to Shopify through the GraphQL Admin API. Moreover, it uses the client credentials grant, so you never paste a long-lived token. Instead, the access token is fetched and refreshed automatically.
The connector works with core Bagisto alone. Therefore, no marketplace or other extension is needed before you install it.
Features of the Bagisto Shopify Connector
- Connect many Shopify stores. Each store has its own Client ID and Client Secret.
- Import simple, configurable and virtual products from Shopify. The connector picks the Bagisto product type for you.
- List every variant of a product in the import grid, with its own SKU, price, stock and image.
- Map fields such as the Shopify title, price and tags to Bagisto attributes. Set defaults for new stores, and then edit the mapping of an individual store.
- Map Shopify product and variant metafields to Bagisto attributes.
- Map Shopify categories, variant options and inventory locations to their Bagisto counterparts.
- Import product images and videos, and place products in the mapped Bagisto categories.
- Filter, search and sort the live Shopify product list before you import.
- Check variant mappings before an import. A flash message names any Shopify option that still needs a mapping.
- Refresh previously imported products from the Import Products page.
- Send sold quantities to Shopify when Bagisto records a shipment, or invoices an item that needs no shipping.
- Receive signed Shopify webhooks for inventory-level changes.
- Run heavy work in background jobs on a dedicated queue.
- Email the admin when an import succeeds or fails. Each email can be switched off.
- Review every import, refresh and connection message in the Sync Log.
- Check the connector log for import, connection and webhook messages.
- Use the connector in all 22 languages that Bagisto ships with.
Version Compatibility
Before you install the Bagisto Shopify Connector, check that your setup meets these requirements:
- Bagisto: 2.5.0
Installation of the Bagisto Shopify Connector
This guide covers a manual installation in Bagisto 2.5.0. The host application requires PHP 8.4 or later. In addition, product imports require an asynchronous queue.
Step 1:
Extract the extension so its src directory sits under packages/Webkul/ShopifyConnector/ in the Bagisto project.
Step 2:
Add the connector namespace under autoload.psr-4 in the project’s composer.json.
"Webkul\\ShopifyConnector\\": "packages/Webkul/ShopifyConnector/src"
Step 3:
Rebuild the Composer autoloader from the project root.
composer dump-autoload
Step 4:
In the bootstrap/providers.php file, add the following import. Then add the class to the return array.
use Webkul\ShopifyConnector\Providers\ShopifyConnectorServiceProvider;
ShopifyConnectorServiceProvider::class,
The provider registers its own models and event listeners. Consequently, config/concord.php needs no change.
Step 5:
In .env, select an asynchronous queue connection such as database. After that, set SHOPIFY_CONNECTOR_ATTRIBUTE_FAMILY_ID to the ID of the Bagisto attribute family for imported products. The connector defaults to family ID 1.
QUEUE_CONNECTION=database SHOPIFY_CONNECTOR_ATTRIBUTE_FAMILY_ID=1
Step 6:
Run the following command. It runs the migrations, adds the default attributes and the default attribute mapping, publishes the assets and clears the caches:
php artisan shopify:connect
Step 7:
Keep a queue worker running for the shopify and default queues. Imports, refreshes and stock updates run on shopify, while the import emails run on default.
php artisan queue:work --queue=shopify,default
Similarly, add the cron entry below if the Laravel scheduler is not already running. Replace /path/to/project with the Bagisto project directory.
* * * * * cd /path/to/project && php artisan schedule:run >> /dev/null 2>&1
The bundled php artisan shopify:queue-work command also works, but it processes only the shopify queue. In that case, run a second worker for default so the emails are sent.
After these steps, the Shopify menu appears in the admin panel.
Initial Configuration
To set up the Bagisto Shopify Connector, go to Configure > Shopify > Settings. The page has three cards.
- General: Enable Module turns the connector on or off. Max Request Limit (Daily) defaults to 50 import requests per admin a day. Import Chunk Size defaults to five products per job, with a maximum of 50.
- Synchronization: Enable Inventory Sync pushes Bagisto stock changes to Shopify. Enable Webhooks accepts real-time Shopify inventory webhooks.
- Emails: Import Success Email and Import Failure Email switch the notification emails on or off.

Turning off Enable Module hides the Shopify menu and blocks the connector’s admin pages. Likewise, imports, stock pushes and webhooks stop until you turn it on again.
Connect a Shopify Store
First, create an app in the Shopify Dev Dashboard, in the Shopify organization that owns the store. Then install it on that store. The connector checks the following scopes when you save the store. Note that a write scope also covers its matching read scope. For details, see Shopify’s client credentials guide.
read_productsandwrite_productsread_localesread_publicationsread_locationswrite_inventory
Next, open Shopify > Stores and click Create Store. Enter the store name in Store URL. The https:// and .myshopify.com parts are already in the field. Then enter the API Key (Client ID) and the API Secret Key (Client Secret) of the app.

On save, the connector requests a token from Shopify and checks the granted scopes. If the credentials are wrong or a scope is missing, it shows an error. It also rejects a store URL that already exists.
To track imported products, the connector sets a Shopify product metafield called bagisto.is_imported. In addition, it subscribes the store to the inventory_levels/update webhook. Shopify delivers webhooks only to HTTPS addresses, so set Bagisto’s APP_URL to its public HTTPS address. For more, see Shopify’s webhook setup guide.
The client secret and the access token are stored encrypted.
Manage Stores in the Bagisto Shopify Connector
The Stores list shows the Store URL, the admin who created the store under Created By, and the Status of each store. You can search, filter and sort by all three columns.

- Edit: opens the store. The Edit Store tab has the Store URL, the client ID, the masked client secret and a Status switch. It also lets you choose the store locales, sales channels and locations. Saving checks the credentials again.
- Delete: removes the store’s Shopify webhooks first, and then deletes the store.
- Update Status: a mass action that sets the selected stores to Active or Inactive. Only active stores appear in the import list.
- Re-indexed Existing Products: queues a check of products marked as imported in Shopify. It clears the flag only on products that no longer exist in Bagisto.
Attribute Mapping
The Bagisto Shopify Connector maps Shopify fields to Bagisto attributes. To set the defaults, open Shopify > Attribute Mapping. The page lists 16 Shopify fields. Beside each one is the Bagisto attribute that receives its value:
- Name, Description, Price and Weight
- Inventory Tracked and Allow Purchase Out of Stock
- Vendor, Product Type, Tags and Barcode
- Compare Price and Cost per item
- SEO Title, SEO Description and Handle
- Taxable
The installer adds six Bagisto attributes for this: Purchase Out of Stock, Vendor, Shopify Product Type, Tags, Barcode and Taxable. It also fills in a default mapping. For example, the Shopify title goes to Name, the price goes to Price, and the compare price goes to Special Price. Similarly, the handle goes to URL Key.

To change the mapping of one store, open Shopify > Stores, edit the store and select the Attribute Mapping tab. Each new store starts with a copy of the defaults in effect when you create it. You can also leave a field unmapped, so the import skips it.
On the store’s Meta Field Mapping card, select a product or variant metafield under Namespace & Key. Then choose a compatible Bagisto attribute. Use Add New for additional mappings, and finally save.
Catalog and Stock Mapping
The Bagisto Shopify Connector also maps categories, variant options and locations. Open Shopify > Catalog & Stock Mapping and click Add Mapping. Choose a Store, or choose Global (For All Stores). Then pick the mapping Type:
- Category: pairs a Shopify Category with a Bagisto category. As a result, imported products land in the mapped category.
- Variant: pairs a Shopify Variant Type, such as Size or Color, with a Bagisto attribute. The attribute must be a Select attribute marked Use to create configurable product. During import, the connector creates any missing attribute options.
- Inventory: pairs a Shopify Location with a Bagisto Inventory Source. This type always needs a store, because locations belong to one store.

The list shows the ID, what the mapping is for, the Shopify value, the Bagisto value and the store. Mappings can be edited and deleted from the list.
Create the variant mappings before you import. Otherwise, the import skips the product and a message names each option that needs a mapping. However, products whose mappings are complete are still queued.
Import Products with the Bagisto Shopify Connector
Open Shopify > Import Products and choose an active store under Select Store for Import Products. The grid then lists the products of that Shopify store, live. For a configurable product, each variant appears as its own row below the parent. Each row shows:
- Title, Id, SKU and Vendor
- Image, Price, Inventory and Product Type
- Status (Active, Archived or Draft), Imported status (Yes or No) and Category

You can search by ID and title. Furthermore, you can filter by status, imported state, gift card, product type, vendor, tag, sales channel, category, collection and product metafields. The list can be sorted by ID, title, product type, vendor, inventory and created date. New Shopify products appear when you reload the page.
Select the products and run the Import mass action. Ticking a variant row selects its parent product. The connector then splits the selection into jobs of the configured chunk size. Each job runs on the shopify queue.
The connector picks the Bagisto product type from the Shopify variants:
- A product with one variant becomes a simple product. If that variant needs no shipping, it becomes a virtual product instead.
- A product with two or more variants becomes a configurable product. Each Shopify variant becomes one Bagisto variant.
- Variant names follow the Bagisto pattern Product name-Option, for example USB-C Cable-1 m.
An import brings across product images and videos, together with each variant’s own image. It also uses the store’s mappings for attributes, categories, variant options, metafields and stock. If a product with the same SKU already exists in Bagisto, the connector links it instead of creating a duplicate.
The Delete mass action removes the selected products from Bagisto. Note that it deletes only products the connector created.
Update Imported Products
The Bagisto Shopify Connector can also refresh products you already imported. In Import Products, select the store and click Update imported product. The first refresh looks at every product marked as imported in Shopify. After that, each refresh only picks up products changed on Shopify since the last completed refresh.
If the queue driver is sync, the import stops with a message that background processing is turned off. Similarly, when an admin reaches the daily request limit, imports stop until the next day. In both cases, nothing is queued.
Inventory Sync with the Bagisto Shopify Connector
Stock moves in both directions. However, both directions need the module enabled in the configuration.
Bagisto to Shopify: with Enable Inventory Sync on, a shipment reduces the available Shopify stock of imported items. Likewise, an invoice reduces it for items that need no shipping. The deduction applies at the Shopify location mapped for that store.
Shopify to Bagisto: with Enable Webhooks on, Shopify posts stock changes to this public URL of your store:
api/shopify/webhook/inventory-update/{id}
The {id} in the URL identifies the store. First, the connector checks the webhook signature with the saved client secret. An invalid or missing signature returns HTTP 401. Then it ignores repeat deliveries of the same webhook, and queues the stock update.
When the Shopify location is mapped, the connector writes the new quantity to the mapped Bagisto inventory source. If the store has no inventory mapping, it sums the stock of all Shopify locations instead. It then writes that total to the product’s Bagisto inventory.
Sync Log and Emails
The Bagisto Shopify Connector records its results in the admin panel. Open Shopify > Sync Log. The list has the Message, Type, Status and Created At of each entry. The type is either Shopify Connection or Shopify Products Import.

- View: marks the entry as read and opens its linked admin page.
- Delete: removes it.
- Mark as Read: a mass action for the selected rows. You can also delete the selected rows in bulk.
In addition, the admin receives emails. Success emails list the imported products, while failure emails report the import errors. You can control each email separately under Configure > Shopify > Settings > Emails.
Logs and Commands
php artisan shopify:connectinstalls the connector.php artisan shopify:queue-workruns a worker for theshopifyqueue.php artisan shopify:refresh-tokensrequests new access tokens for active stores. The Laravel scheduler runs it every 30 minutes.php artisan shopify:prune-webhook-receiptsremoves old webhook delivery records. The scheduler runs it every hour.
For connection, import and webhook diagnostics, check storage/logs/shopify-connector.log.
Support
For help with the Bagisto Shopify Connector, include the affected workflow and any error message when you contact support.
For any further queries or assistance, you can drop us an email at [email protected]. You can also raise a ticket at our HelpDesk System.
Please explore our Laravel Development Services and Quality Bagisto Extensions.
Current Product Version - v2.5.0
Supported Framework Version - v2.5.0
Be the first to comment.