BigCommerce
Integrations
Apps
Optimizing Multi-Storefront Apps

Multi-Storefront App Compatibility

Compatible versus optimized

Multi-storefront compatible apps work with the data from all storefronts and other sales channels associated with a store. These apps must handle the core install and load functions. Compatible apps must be channel aware; they should be able to work intelligently with the configuration nuances of multiple storefronts and other sales channels.

In addition to being channel-aware, optimized multi-storefront apps are channel extensible. They offer features that allow merchants and other users to configure parameters that are unique to each channel, over and above the offerings of BigCommerce.

The features that will make an app channel-optimized depend exclusively on its use cases, so this guide focuses primarily on ensuring that your app meets the relevant requirements before you submit it for approval.

Upgrading existing apps

It may make sense to provide merchants with an opportunity to configure different behaviors for each channel on which they sell. Your app might be relevant to only certain channel types; for example, storefront type channels on the bigcommerce platform.

It's a good idea to fetch the list of a store's channels immediately after a merchant installs your app. Once your app understands whether it is compatible with the merchant's existing channels, it can inform the merchant per its use case.

You should determine whether your application is relevant only to Stencil storefronts served by BigCommerce, or if it can also add value to the merchant's "headless" storefronts that sell through other sites or sales channels. Once your app understands whether it is useful in headless contexts, you may wish to show merchants who are setting up your app a list of their store's sites and channels so that they can configure your app differently for each sales channel.

Setup and channels configuration

Ensure that your app's settings acknowledge multiple storefronts and convey that understanding to the merchant or authorized user. Your app's features should work with any subset of a merchant's channels, including a single channel, some of their channels, or across all the channels in their store.

In testing, make sure that users can install and load the app in a store with multiple BigCommerce storefront channels. Use the Channels API to work with basic data about the store's channels. Use the Sites API to work with the channels' sites.

Edit the app's profile in your Developer Portal (opens in a new tab) to indicate that it supports multi-storefront functionality. See Managing Apps in the Developer Portal.

Reading from and writing to multiple channels

An app that functions correctly with a store's multi-channel product catalog and customer base must be able to handle the following complexity. Ensure that your app meets these criteria before submitting it for approval.

  1. Products synced to the app should include correct channel assignments. Read more about retrieving product channel assignments. Merchants who use your app to create products should be able to assign them to one or more channels.

  2. Categories synced to the app should include correct channel assignments. Read more about identifying the category tree that's active on a sales channel. Your app should allow merchants to integrate new categories individually into each target channel's active category tree.

  3. Orders synced to the app should include correct channel assignments. Orders that your app creates should include correct storefront channel assignments. Your app should be able to assign new orders to one or more channels. Read more about channel-aware orders.

  4. Customers synced to the app should include correct channel access permissions within the app. If your app creates any new customers, it should be able to assign them to one or more channels. Read more about customers and channels. Customer groups synced to the app should also include correct channel assignments. If your app creates any new customer groups, it should be able to assign them to one or more channels.

Price lists

Price lists have been substantially upgraded to support multi-channel sales. Read more about channel-aware price lists.

Storefront content

All storefront content that your app creates should be assigned to the channel of the merchant's choosing. Merchants should be able to customize storefront content on a channel-by-channel basis.

  1. Scripts installed using the Scripts API should include correct storefront site assignments. Read more about using the site_id to assign a script to a site.

  2. Tracking scripts and pixels should be unique to each storefront or other sales channel. Read more about scripts and consult the Update a web analytics provider endpoint.

  3. If your app creates storefront content or features, merchants should be able to make it accessible on one or more channels. Read more about channel-aware storefront content.

  4. Any widgets that your app creates should be available on one or more storefronts. Read more about channel-aware widgets.

  5. Themes synced to the app should include correct storefront site assignments. Published themes should include configuration options for any subset of storefronts. Read more about channel-aware themes.

  6. Custom template files synced to the app should include correct storefront assignments. Custom template files that the app creates should include configuration options for one or more storefronts. Read more about widget template objects.

  7. Pages synced to the app should include correct storefront assignments. Pages that the app creates should include configuration options for one or more storefronts. Read more about working with pages' site_id property.

  8. Carts that the app tracks or creates should include the correct channel_id. Read more about channel-aware carts and checkout.

Additional settings and content

  1. BigCommerce store settings synced to the app should include the correct channel assignments. Merchants should be able to configure store settings that the app creates for one or more channels. Read more about managing store configuration.

  2. Newsletter subscribers synced to the app should include the correct storefront channel assignments. Merchants should be able to assign any subscribers that the app creates to one or more channels. Read more about subscribers.

  3. Currencies synced to the app should include correct channel assignments. Merchants should be able to ensure that currency modifications that the app makes apply to the channel or channels of their choosing. Consult the Get store information endpoint to learn more about viewing and updating currency properties.

  4. 301 redirects synced from or written to a merchant's store must include the correct storefront's site_id. Read more about channel-aware 301 redirects.

  5. Transactional emails synced from or written to a merchant's store should include the correct channel_id. Consult the reference for the Get transactional email settings and Update transactional email settings endpoints.

  6. Abandoned cart emails synced from or written to a merchant's store should include the correct channel_id. Consult the reference for the Update channel abandoned cart settings endpoint.

Did you find what you were looking for?