Uniform blog/Getting started with Uniform and BigCommerce
Jamie Bolland Blog
Jamie Bolland
Posted on Nov 3, 2021

7 min read

Getting started with Uniform and BigCommerce

Uniform is now available on the BigCommerce Headless Edition marketplace, and we couldn’t be more excited. Today marks the beginning of a strong partnership with BigCommerce, with Uniform delivering three key capabilities that will help merchants take their businesses to the next level:
  • Fast, agile storefronts based on modern Jamstack architecture and powerful JavaScript frameworks developers love, like the React-based Next.js and the Vue.js-based Nuxt
  • Composable digital experiences that allow merchants and storeowners to publish new pages without tapping on a developer’s shoulder or submitting yet another ticket to IT
  • Lightning-fast personalization and A/B tests delivered at the edge for better user experiences and higher sales conversions
Keep reading to learn how to install the BigCommerce integration and perform initial configuration using a single component.

Getting started

There are two ways to get started with Uniform and BigCommerce:
  • Option 1: Start with the onboarding process from Uniform.app
  • Option 2: Install Uniform app from the BigCommerce app marketplace

Option 1: onboard from Uniform.app

Start by creating your new account on https://uniform.app. This option assumes you have a BigCommerce store setup already and you are the owner of it. Pick one of the options below after you accept the terms and service agreement:
getting-started-bigcommerce1
  1. Personalized Jamstack commerce demo, deployed to a CDN This step will deploy a simple storefront web app from this GitHub repository. This sample web app is connected to Contentful CMS, it comes with some sample content, and can be deployed anywhere where you can run a Jamstack web application. At the moment, the GUI-based deployment is enabled with either Netlify or Vercel options.
  2. Guided setup This flow is designed for developers who want to create a new project from scratch without deploying any sample content or sample apps alongside with it. This is recommended if you would like to add the Uniform and BigCommerce capabilities into your existing web app or start a new project from scratch.

1.1 Deploy Personalized Jamstack commerce demo

The first step will ask you for the desired deployment platform:
getting-started-bigcommerce2
You need the following in order to complete this step:
  • A GitHub account.
    If you don‘t have a GitHub account, sign up for free.
  • A Contentful account with the ability to add a new space.
    If you don‘t have a Contentful account, sign up for free.
  • Store owner login to your BigCommerce store. If you don‘t have a new BigCommerce store, sign up for a free trial.
Follow the steps in the wizard to complete the process:
  1. Login to Contentful (this establishes the integration to pull marketing content from this headless CMS into Uniform).
  2. Connect Uniform to your BigCommerce store.
  3. Deploy to either Netlify or Vercel (depending on your selection).
Now you can explore your Landing composition in Canvas
  • After you navigate to the dashboard, proceed to the Canvas tab, where you can take further steps:
    getting-started-bigcommerce4
  • Explore the "Landing" composition that powers the home page of this site.
  • Link the Featured Product component with one of the products from your store and save the composition changes.
getting-started-bigcommerce6
getting-started-bigcommerce5
  • Link the Product Collection List component to one or multiple products from your BigCommerce store and save the composition:
    getting-started-bigcommerce7
  • Explore other components that are connected to your Contentful CMS space.
Personalize or A/B test a component
This demo site is already pre-wired for personalization and A/B testing, but we will need to create a new intent before we can apply these features. Start by creating a new intent from the Personalization tab:
getting-started-bigcommerce8
And name it according to one of your audience intents, like "Interested in Luxury Products". Add one of the signals (either Behavior or Query String for example):
getting-started-bigcommerce9
This is how this intent is expected to be resolved. After you are done setting up the intent, publish these changes:
getting-started-bigcommerce10
Now we are ready to personalize. We recommend starting with the Hero component for personalization and the Featured Product component for A/B testing, but you can do this on any component.
getting-started-bigcommerce11
Clicking Personalize This will convert your component into the Personalization container, allowing to add any number of personalization variants. You will be able to tag each personalization variant with an intent:
getting-started-bigcommerce12
This is how easy it is to personalize content for your store in Uniform!
Learn more about how to apply the personalization and A/B testing features within Canvas here.

1.2 Guided setup

This flow is designed for developers who want to create a new project from scratch without deploying any sample content or sample apps alongside with it. This is recommended if you would like to add the Uniform and BigCommerce capabilities into your existing web app or start a new project from scratch.
getting-started-bigcommerce13
You will first need to select the integrations you are planning on using with BigCommerce.
During the next step, install the Uniform app for BigCommerce. This will enable the Uniform project to communicate with your store.
getting-started-bigcommerce3
At the end of the process you will be given a set of environment variables and can proceed wiring your Next.js or Nuxt.js app and adding the ability to fetch BigCommerce data.

Option 2: Start from the BigCommerce store

This option allows you to enable the BigCommerce integration via app installation right from your store and it requires you to have an existing Uniform.app account where you have at least one team and one project - do these steps before proceeding with the steps below.
getting-started-bigcommerce14
  1. Locate the Uniform app on BigCommerce store: https://www.bigcommerce.com/apps/uniform/
  2. Click on "Get this app", login to your store.
  3. Click "Install":
    getting-started-bigcommerce15
  4. Review and confirm requested access details (Uniform needs read only access to your product catalog in order to link to it):
    getting-started-bigcommerce16
  5. Click Open to pop up a window where you login to your Uniform.app account:
    getting-started-bigcommerce17
  6. After the login, select the project which you would like to link your BigCommerce store with:
    getting-started-bigcommerce18
That's it! Now you are able to start linking your Components in Uniform Canvas to your BigCommerce products.

Using the integration

Step 1: Create your BigCommerce linked component parameter

Component parameters allow linking your presentation component, like "Featured Product" with your data in BigCommerce. Below are the steps required to perform this.
  1. Open Component Library in Uniform / Canvas and create a new Component:
    getting-started-bigcommerce19
  2. Let's call it Featured Product:
    getting-started-bigcommerce20
  3. If you don't have existing compositions, mark this component as a composition component:
    getting-started-bigcommerce21
  4. Now let's add a new parameter:
    getting-started-bigcommerce22
  5. Let's call the parameter Product. Pick the BigCommerce ProductClick to copy parameter type:
    getting-started-bigcommerce23
  6. Save and close.

Step 2: Create a composition and link to a BigCommerce product

  1. Now let's head over to the Compositions area and create a new composition from the Featured Product type:
    getting-started-bigcommerce24
  2. Now this composition should allow us to select a featured product from your BigCommerce store catalog:
    getting-started-bigcommerce25

Other things you can do

Uniform BigCommerce integration allows to also build product lists by either allowing the selection of multiple products using the BigComerce Product ListClick to copy parameter type or by allowing the users to build a product query instead, by using the BigCommerce Product QueryClick to copy parameter type. This means that Uniform Canvas will store the query but not the concrete product selections, allowing to keep the product collection components powered by this parameter to be more dynamic:
getting-started-bigcommerce26

Add a webhook for your CDN

For your demo site to update after a composition is published, you need to create a new webhook that notifies your selected CDN that the site needs to be updated after the composition is published. You would need to register a new webhook within your new Uniform project. Learn more about how to set up the webhook here.

Enable live preview with Netlify

Uniform Canvas supports live preview. To enable this feature and have the "Preview" button show up within Canvas, you will need to configure the Preview settings for your project and make sure your Next.js app has preview enabled. Learn more about how to configure live preview for this newly deployed demo site here.

Next steps

We only scratched the surface here. This post covered the essential parts of how to add BigCommerce integration with Uniform and how to set up your first component.
The process of adding BigCommerce integration into your consuming web application is a separate effort dependent on the specific nature of your web application, and is described here.
Need more insight into how Uniform can help you take commerce to the next level? Sign up for a demo here.