

Software Developer
Posted in
May 7, 2024
Acro Commerce’s own Chithra K has put together this handy, step-by-step guide to integrating your BigCommerce store with the Drupal CMS.
The BigCommerce for Drupal module, created by Acro Commerce in partnership with BigCommerce, was released early this year and brings together two different platforms – BigCommerce, the open SaaS ecommerce platform, and Drupal, the open source content management system. The result provides a wonderful new way for retailers to implement an innovative and content-rich headless ecommerce strategy. If you use one and would like to have the capabilities of the other, the BigCommerce for Drupal module is the bridge you need. With this module, you can use Drupal as the powerful front-end CMS with BigCommerce as the easy-to-use and scalable ecommerce backend.
This post is a step-by-step guide for people who want to know how to install the BigCommerce for Drupal module and get started with both platforms. If you just want to know more about BigCommerce and Drupal together as an ecommerce solution, check out this post instead.
Here’s a quick overview of how this all works. The BigCommerce for Drupal module integrates BigCommerce and Drupal together, but each platform is still used for different tasks.
In BigCommerce, you configure products, categories, shipping, taxes and everything else for the ecommerce side of your site. BigCommerce is also where you go to manage orders as they come in.
Drupal is then used for the website front end and themeing. Product and category information from BigCommerce are synced to Drupal, importing them as Drupal Commerce products so that they can be displayed and used like any other Drupal-based content. Any non-commerce content is also managed within Drupal. When a customer goes to checkout, a BigCommerce checkout pane is embedded in the Drupal site to securely process payment and save customer and order information.
On to the guide! Follow these steps, and you’ll have your BigCommerce and Drupal store configured in no time!
This guide already assumes that you have the following ready.
With the prerequisites done, here’s what you need to do to the BigCommerce for Drupal connection made.
Click on the “Create API Account” button and select “Create V3/V2 API Token”.

Fig: BigCommerce Store API Accounts page
Provide a name (i.e. Product Sync) and select the scope for each feature (i.e. if you don’t want the ability for the Drupal admin to modify the product information, you can set the scope for “Products” as “read-only”).

Fig: API configuration in BigCommerce
Click “Save” to save your changes. Once saved, you will see a summary and a prompt to download a file. Download it and keep it safe. Once you create an API account, you can’t modify the keys (but you can always make a new one).

Fig: BigCommerce API Credentials dialogue box
Get and install the BigCommerce for Drupal module.
TIP: This module requires a bunch of other modules to work. To get the BigCommerce for Drupal module and all of its dependencies at the same time it’s recommended to use Composer instead of manually downloading it. Running the following command within your Composer-based Drupal project will get everything you need.
composer require drupal/bigcommerceHit “Save”. If everything is correct, you will see a message saying “Connected Successfully”.

Fig: BigCommerce Configuration page in Drupal site
Click the “Create new BigCommerce channel” button. You will then see a Site ID and Site URL on the setting page.

Fig: BigCommerce configuration page in Drupa
Now in the same Channel Settings area, click on the “Update BigCommerce Site URL” button. This lets you confirm that the URL generated is actually sent to BigCommerce, otherwise, the checkout form will not be loaded on your Drupal site.
You can also confirm the channel connection from within the BigCommerce admin dashboard by visiting the Channel Manager admin page.

Fig: Channel Manager storefront confirmation in BigCommerce
Click the “Sync Products from BigCommerce” button and ta-da, all the products, variations, and categories will be synced to your Drupal site in an instant.
Alternatively, you can also synchronize via the following Drush command. Advanced Drupal users can use this command on cron to do automatic syncing.
drush migrate:import --group bigcommerce
Fig: Product Synchronization page

Fig: Syncing from BigCommerce in progress
NOTE: If you run into errors when syncing products, it is probably because you don’t have a store added in the Drupal Commerce module yet. Add one at Commerce > Configuration > Store > Stores.
TIP: Any time you make changes to the products in BigCommerce, visit this page or use the Drush command to synchronize the changes. Before syncing, you’ll also see a message telling you that updates are available.
Now that everything is set up, go to a product page, and it to your cart and proceed to checkout.
If everything was done correctly, you will be able to see the BigCommerce checkout form embedded into your Drupal site! Hurray! All of the shipping methods, payment methods, tax calculations, and other BigCommerce store configurations will be seen in the embedded form here.
If you don’t see the checkout form make sure that your channels settings are correct and that you have an SSL certificate installed.

Fig: Drupal’s checkout page with embedded BigCommerce checkout form

Fig: Drupal’s checkout page after order complete
Once an order has been placed, the order information will be stored in Drupal (at Commerce > Orders) and will also be sent to BigCommerce (at Orders > View).

Fig: BigCommerce backend View Orders page
The BigCommerce for Drupal module is ready for production and available for everyone to use.
I wanted to share some additional notes from when writing this guide.
Acro Commerce is the development team that partnered with BigCommerce to make the BigCommerce for Drupal module a reality. We have many, many years of ecommerce consulting and development experience available to support your team, too.
We'd love to talk with you if you want to explore Drupal, BigCommerce, or both for your online store.
Editor’s note: This article was originally published on December 2, 2019, and has been updated for freshness, accuracy and comprehensiveness.
May 7, 2024
