> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Use the Customer Group Slot in Makeswift

> Use the Customer Group Slot component in Makeswift to show different content to different customer groups on a Catalyst storefront.

The **Customer Group Slot** is a Makeswift component in Catalyst that renders different content depending on the shopper's [customer group](https://support.bigcommerce.com/s/article/Customer-Groups?language=en_US), such as a members-only product or a discount for friends and family. This tutorial uses it to show a different coupon message to each customer group.

## Prerequisites

* **A Makeswift-connected Catalyst project running locally.** The component is part of the Makeswift integration; see [Makeswift](/developer/docs/storefront/catalyst/makeswift/overview) for which setup paths include it. To run a One-Click Catalyst project on your machine, see [Run locally](/developer/docs/storefront/catalyst/getting-started/one-click-catalyst#run-locally).
* **An access token that can read customers.** One-Click Catalyst doesn't provide a token that can query customer and customer group data. Create a [store-level API account](/developer/docs/overview/api-fundamentals/api-accounts#store-level-api-accounts) with a read-only scope for customers, then add its access token to the `.env.local` file in the root of your project:

  ```bash showLineNumbers={false}
  BIGCOMMERCE_ACCESS_TOKEN=<YOUR_ACCESS_TOKEN>
  ```

## Set up customer groups

1. In the BigCommerce control panel, go to **Customers** > **Customer Groups** and make sure you have groups to work with. For details, see the [Customer Groups](https://support.bigcommerce.com/s/article/Customer-Groups?language=en_US) support article. This tutorial uses two groups, **Group A** and **Group B**.

   ![Customer groups dashboard](/_fern-files/_img/fca055f664535411d71d0c0a0bac189c57c94a6daa6ed31ce821ee0f68e9ed32.webp)

2. Assign customers to your groups so you can check what each one sees. If you don't have customers to work with, see the [Customer Storefront Accounts](https://support.bigcommerce.com/s/article/Customer-Account-Creation?language=en_US) support article. This tutorial uses three customers: Suzy T in **Group B**, Moon D in **Group A**, and Peter J in **No Group**. Click **Save** in each row after you change it.

   ![Customers dashboard](/_fern-files/_img/089a785362c29b2219e8ca2966c08e1dbfe768074f87d25d2672762a57fde0ec.webp)

## Add the Customer Group Slot in Makeswift

1. Go back to your channel page in the control panel and click **Edit in Makeswift**.

   ![Catalyst Edit in Makeswift button](/_fern-files/_img/5591b5a23553b0e4bdd95eba842caee11c9b2cce4d3823f1821d3f39309757df.webp)

2. Switch to your [development environment](https://docs.makeswift.com/developer/guides/environments). On the Home page, open the component drawer and drag a **Section** component onto the page.

3. Drag a **Customer Group Slot** component into the section. Each piece of group-specific content it holds is a group slot.

   The component has two controls:

   * **Targeted customer groups:** add an entry for each customer group you want to create content for, and pick the group from the **Name** list. The list stays empty until you start typing to search for groups.
   * **Simulated group:** the group to preview in the editor. You must select a simulated group to create content for that group. The **No group** option is included by default, and targets shoppers who aren't signed in or whose BigCommerce group is "No group".

4. Add **Group A** under **Targeted customer groups**, select it as the **Simulated group**, and add the text "A big discount for group A". Only Group A customers see this content.

5. Repeat the previous step for **Group B**.

6. Select **No group** as the **Simulated group** and add the content for shoppers who don't belong to a group.

## Test your changes

1. Click **Publish** in the top right, and make sure you select the page you changed.

2. Click the button next to the URL to open the page on your storefront.

   ![Makeswift navigation bar menu](/_fern-files/_img/bd32f71804e3c6cfd2c463a467af69657ece7a4aebbeda3058d5c8bf1f035076.webp)

3. Before you sign in, the page shows the content for shoppers with no group.

   ![Rendered content without signing in](/_fern-files/_img/2884592db98ec809ad177a6e0056c2ed7cef61604a340759396ab50aaadcd985.webp)

4. Sign in as each customer to check that they see their group's content. Suzy (Group B):

   Moon (Group A):

   Peter (no group):

## Next steps

* [Create your own custom components](/developer/docs/storefront/catalyst/makeswift/custom-components) for content authors to edit in Makeswift.
* [Deploy your storefront](/developer/docs/storefront/catalyst/deployment/overview) to make your published changes live in production.