> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/b2b-lock-password-protect/quick-start/enable-app-embed.md).

# Enable the app embed

Turn on the theme app embed so Sami B2B Lock, Password Protect can actually enforce locks on your storefront.

Sami B2B Lock, Password Protect protects your storefront through a Shopify theme app extension embed. In your theme editor's App embeds list, you'll see it listed as **Sami Lock**. Turning this embed on is what lets the app run on every storefront page and actually enforce your locks.

{% hint style="warning" %}
Locks you create in the app won't take effect on your storefront until this embed is turned on. Everything else in the app will work — you can still build and save locks — but shoppers won't see them enforced until you complete this step.
{% endhint %}

## Turn on the embed

1. Open the app. On the dashboard, find the **Setup guide** card and its step 2, **Integrate with theme** — it spells out that "The app will not work on the online store until you enable it on your theme."

   <figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-a625e1a69ac3f84b0bd19f4d66f6d2a0f557b240%2Fscreenshot-theme-setup-select-theme.png?alt=media" alt="Step 2 of the app&#x27;s Setup guide, Integrate with theme, with its Intergrate theme button"><figcaption><p>Step 2 of the dashboard's Setup guide takes you straight to the right place.</p></figcaption></figure>
2. Click **Intergrate theme**. This opens your theme editor in a new tab, already scrolled to the **App embeds** panel with the app's embed filtered in — you don't have to hunt for it.
3. Find **Sami Lock** in the App embeds panel and switch its toggle on.

   <figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-13d77d970749e759f02ea40a7b72e0ea08a0404b%2Fscreenshot-theme-setup-app-embeds.png?alt=media" alt="Shopify theme editor App embeds panel with the Sami Lock embed and its toggle"><figcaption><p>Turn on the Sami Lock embed in the theme editor's App embeds panel.</p></figcaption></figure>
4. Click **Save** in the theme editor to apply the change.

{% hint style="info" %}
The embed has no settings of its own — the panel says "This app embed doesn't have customizable settings." Everything about how your locks look and behave is configured inside the app, not here. All you do in the theme editor is switch the embed on.
{% endhint %}

## Enabling it on another theme

The button in step 2 targets the theme you're currently working with. If you run more than one theme — say a live theme plus a draft you're preparing — open the theme editor for each theme you want protected and turn the **Sami Lock** embed on there too.

{% hint style="info" %}
Themes you create after installing the app are covered automatically — you don't need to repeat this setup for every new theme, only for themes that existed before you enabled the embed on them (or if you want to double-check a newly published theme).
{% endhint %}

## Next steps

* [Create your first lock](/b2b-lock-password-protect/quick-start/quickstart.md)
* [How locks work](/b2b-lock-password-protect/quick-start/how-locks-work.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/b2b-lock-password-protect/quick-start/enable-app-embed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
