> For the complete documentation index, see [llms.txt](https://docs-shpf.bsscommerce.com/b2b-wholesale-solution/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-shpf.bsscommerce.com/b2b-wholesale-solution/getting-started/enable-or-disable-the-app-in-your-theme.md).

# Enable or Disable the App in Your Theme

Turn the B2B Solution app embed on or off in your theme, add the app blocks some modules need, and check each module's Storefront setup, all from inside the app.

B2B rules only reach your storefront when three things are true:

1. The module is **on** (the switch next to the module name).
2. The **B2B Solution app embed** is on in your live theme.
3. For cart features, the module's **app block** is added to your cart page.

The app shows all three in place, so you do not have to guess which one is missing.

{% hint style="info" %}
**Manual Orders** and **Auto Tags** work without the app embed. A registration form placed on a theme page needs it, because the form script loads through the embed.
{% endhint %}

## Where to see the status

* **Home › App status**: the **Storefront embed** row shows **On** or **Off**. When it is off, click **Turn on** to open the theme editor, and use **Check again** after you save. Below it, the app block rows (for example **Orders Custom Fields app block** and **Tax Exempt app block**) show **Added** or **Not added** with an **Add block** button.
* **Home › Needs your attention**: while the embed is off, the task **Turn on the app embed in your theme** appears with the same buttons.
* **Each module › Storefront setup**: the same checks for that one module (see below).
* **Module title bar**: a status badge next to the module name reads **On**, **Off** or **App embed off**. Hover it for the reason.

<figure><img src="https://1478990334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGolQYRPH9iUGYatlTXwl%2Fuploads%2Fgit-blob-cd17dab759e98a78cbafcc8a576a8b64fdc14a85%2Fcms-embed-01.png?alt=media" alt="App status card on Home"><figcaption><p>App status card on Home</p></figcaption></figure>

## Enable app embed

{% stepper %}
{% step %}

#### Open the theme editor from the app

Click **Turn on** in **App status** on Home. In a module, open **Storefront setup** and click **Open theme editor**. Both take you to your live theme with **App embeds** open.

<figure><img src="https://1478990334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGolQYRPH9iUGYatlTXwl%2Fuploads%2Fgit-blob-7de87a7c68cf9795a9641fd2673e11354c063c20%2Fcms-embed-02.png?alt=media" alt="Open the theme editor from the app"><figcaption><p>Open the theme editor from the app</p></figcaption></figure>
{% endstep %}

{% step %}

#### Turn on B2B Solution under App embeds

In the theme editor, switch on **B2B Solution** under **App embeds**.

<figure><img src="https://1478990334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGolQYRPH9iUGYatlTXwl%2Fuploads%2Fgit-blob-ba830a2515f8787f7cd8fcdf06211f68efd06f07%2Fcms-embed-03.png?alt=media" alt="Toggle B2B Solution on in App embeds"><figcaption><p>Toggle B2B Solution on in App embeds</p></figcaption></figure>
{% endstep %}

{% step %}

#### Click Save, then check again

Click **Save** in the theme editor, go back to the app tab and click **Check again**. The app checks your published theme, so an embed switched on in an unpublished copy only counts once that copy is live.
{% endstep %}
{% endstepper %}

During onboarding, the same step is **Turn on app embed**: see [Set Up Your First Rule with the Onboarding Guide](/b2b-wholesale-solution/getting-started/set-up-your-first-rule-with-the-onboarding-guide.md).

## Disable app embed

{% stepper %}
{% step %}

#### Open the theme editor

Open the theme editor from **Home › App status** or any module's **Storefront setup**.
{% endstep %}

{% step %}

#### Turn B2B Solution off and save

Switch **B2B Solution** off under **App embeds** and click **Save**. B2B prices and the other storefront features stop at once. Your rules and settings stay saved, and you can turn it back on any time.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Code that automatic installation or our team added to your theme files stays in the theme after you turn features off or uninstall. Message us in live chat and we remove it for you.
{% endhint %}

## Turn a module on or off

Each module has its own switch next to its name at the top of its page. Turning it off hides that module on the storefront and stops its script from loading, but keeps every rule saved. If a module is off, its **Storefront setup** shows **Turn on the ... module** with a **Turn on module** button.

## Storefront setup, per module

Open **Storefront setup** from the module's header (or **More actions** if it is not visible). It is available for Custom Pricing, Price Lists, Volume Pricing, Extra Fee, Net Terms, Discount Codes, Buy One Get One, Tax Exempt, Tax Display and Multi-currency. Orders Custom Fields has one page called **Storefront**.

The page lists these checks, each with a fix next to it:

| Check                                                                                         | What it means                                             | Button                                                                                   |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| **module is on**                                                                              | The module switch is on for your store                    | **Turn on module**                                                                       |
| **App embed is on in your theme**                                                             | The B2B Solution app embed is active                      | **Open theme editor**, then **Check again**                                              |
| Theme check (for example **Custom prices in your theme**, **Net Terms button in your theme**) | Whether prices or cart features appear on your storefront | **Open storefront**, or **Add app block** when the block is missing, and **Ask support** |

Below the checks, **Show manual installation** (**Show app block setup** for cart features) expands the installation options.

<figure><img src="https://1478990334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGolQYRPH9iUGYatlTXwl%2Fuploads%2Fgit-blob-59ad8d97bea79c830c1882d46d5c75ad46470895%2Fcms-embed-04.png?alt=media" alt="Storefront setup for Custom Pricing"><figcaption><p>Storefront setup for Custom Pricing</p></figcaption></figure>

### Add app blocks (cart features)

**Net Terms**, **Tax Exempt** (tax ID field), **Discount Codes** (discount code box) and **Orders Custom Fields** each add something to your cart page through an app block. When the block is missing, the Storefront setup shows **Not added yet** and an **Add app block** button that opens the theme editor at the right place. Add the block, click **Save**, and come back. The registration form block is optional: the page link and shortcode work without it.

### Automatic installation

For **Custom Pricing**, **Price Lists**, **Volume Pricing** and **Tax Display**, the app can add small markers to your theme so prices update in the right place.

{% stepper %}
{% step %}
Click **Show manual installation** in the module's Storefront setup.
{% endstep %}

{% step %}
Under **Automatic installation**, choose your theme in **Select a theme to install into**.
{% endstep %}

{% step %}
Click **Install**. The code goes into the selected theme only, so you can pick an unpublished copy, test it, then publish.
{% endstep %}
{% endstepper %}

After it runs, the page shows **Module installed** (theme files were updated) or **Code installed** (nothing needed to change, because the code was already there).

{% hint style="warning" %}
If the feature already works on your storefront, do not reinstall: it can duplicate code and cause conflicts.
{% endhint %}

The **Install** button is disabled when none of your themes is supported. See [List of Supported Themes](/b2b-wholesale-solution/getting-started/list-of-supported-themes.md). If your theme is missing from the list, click **Contact support** or **Ask support**: our team sets it up on your theme for free.

### Advanced installation

**Advanced installation** is a manual setup for developers, typically about 30 minutes: insert the app snippet into your theme (Liquid), preview prices on product and collection pages, and test during checkout. Click **Start coding** to begin.

## Switched or updated your theme?

The app embed, the app blocks and the installed code belong to one theme. After you switch themes or publish an updated copy, turn on the app embed in the new theme, add the app blocks again and run **Automatic installation** there, or ask support to do it.

## Storefront still not showing?

Work through these in order:

1. Turn on the app embed (Home › App status), Save, then **Check again**.
2. Turn on the module (**Turn on module** in Storefront setup).
3. Test as a customer the rule applies to, for example one with the rule's customer tag. Guests and customers without the tag keep seeing normal prices.
4. Add the app block for cart features.
5. Still nothing? Click **Ask support** in Storefront setup. Our team sets it up on your theme for free.

{% hint style="warning" %}
If **Optimize B2B script loading** is on (**Settings › General**), B2B pricing and order scripts do not load for visitors who are not logged in. Keep it off if guests should get B2B prices or order rules.
{% endhint %}

The in-app **Help center** has the same checklist: search **B2B Solution does not show on my storefront**, or click **Still not showing on your store? Follow the checklist** at the bottom of Storefront setup. See [Navigate the App](/b2b-wholesale-solution/getting-started/navigate-the-app.md).

{% hint style="info" %}
If you need further assistance, please feel free to reach us at [**support@bss-b2b.solutions**](mailto:support@bss-b2b.solutions) or [**Live Chat**](https://go.crisp.chat/chat/embed/?website_id=9f64b5a9-1a02-4190-93b8-8ef56b19f740).
{% endhint %}
