Multi-Channel Capabilities
Multi-Channel Capabilities
Multi-Channel Capabilities
Since version 3.1.0, BigCommerce for WordPress is capable of managing multiple channels (and displaying different product listings for each channel) from within a single WordPress site. This makes it possible to have multiple storefronts on a single WordPress instance with BigCommerce serving as headless commerce back-end.
This article explains how to enable and make use of BigCommerce for WordPress’s multi-channel capabilities. The first two sections briefly note the filters required to enable and use the functionality; then, in Plugin Example, a more in-depth demonstration with example code is provided. For longer discussion on multi-storefront use cases and additional examples, see Build a Multi-Region Storefront with BigCommerce for WordPress 3.1.0+ on our Developer Blog
Multi-channel capabilities can be enabled with the addition of a BigCommerce for WordPress specific filter:
This will enable an admin to connect to multiple channels on the settings screen. The primary channel will still be used for all front-end requests unless filtered to use a different channel.
Once multi-channel support is enabled and multiple channels are connected via BigCommerce settings in the WordPress admin, the channel displayed to shoppers on the front-end can be toggled with the following filter:
The filter above displays the connected channel associated to the WordPress term_id passed to get_term() (31 in the example). An easy way to find your connected channel’s term_id is by hovering over the Make Primary link in BigCommerce Channel Settings in the WordPress Admin (note the term_id shown in the URL indicated by the red arrow):

A common use case for multiple channels and storefronts is offering differentiated shopping experiences for multiple geographic regions (ex: a UK and US storefronts with different translations, currencies, products, and pricing). With BigCommerce for WordPress’s multi-channel capabilities, it’s possible to create a multi-region storefront using a single WordPress instance powered by a BigCommerce back-end. To demonstrate, this section provides steps to creating a simple plugin for switching channels and currency symbols via query string parameters.
In your WordPress instance’s wp-content/plugins/ directory:
query-string-activationquery-string-activation subdirectory, create a file called query-string-region-activation.phpOnce finished, the directory structure should look as follows:
For more information on editing WordPress and plugin files, see Editing Files (wordpress.org).
Add and connect the desired channels in WordPress Admin > BigCommerce > Settings > Channels and make note of the term_id in the URL when hovering over Make Primary:
.png)
In the example screenshot above, we’ve created and connected two channels:
US channel with term_id 32 (primary), andUK channel with term_id 31The term_ids for your channels will probably be different
Now that we’ve connected two channels and made note of the term_ids, we’re ready to begin coding.
Using your favorite code editor, copy and paste the following source code into query-string-region-activation.php:
31 in get_term() above with the term_id of your channeluk, GBP, and £ to the country code and currency corresponding to your channel, as desiredHere’s what’s happening in the example code:
add_filter( 'bigcommerce/channels/enable-multi-channel', '__return_true' );if statement to check the value of the ?region= query string from the browser:
us and IS uk, filter to channel with term_id=31 (UK in this case)
GBP (British pound sterling).£Once everything is configured correctly, we can test by navigating to All Products (/products/) on the WordPress storefront (note the product and currency symbol):

Now let’s switch the channel and currency symbol by passing in region=uk in the query string (notice product and currency symbol have changed):

Obviously, the example plugin above is simple and not super useful as-is; however, it’s a starting point to creating rich, multi-storefront shopping experiences.
For additional implementation ideas (such as adding a region selection dropdown and switching regions based on a shopper’s geo IP), checkout how to Build a Multi-Region Storefront with BigCommerce for WordPress 3.1.0+ on our developer blog.
How does BigCommerce for WordPress sync changes made to products in BigCommerce? In the past, if you made a change to a single product you would have to re-sync your entire catalog to copy the changes to WordPress. Now each product has a Sync button in the admin area so you can initiate a sync on a given product.
What is the taxonomy for storing channels? Most stores will only have one, but a store with multi-channel enabled may have many. The taxonomy’s UI is hidden, and it is only exposed during onboarding (when selecting the initial channel) and in the Channel Settings section when multi-channel is enabled. All products are associated with a channel term on import.
BigCommerce
Other Resources