> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/skelta-buy-x-restrict-y/global-restriction.md).

# Global Restriction

You can restrict a product globally. That is, your customers will not be able to buy the globally restricted product with any other product from the online store.

You can set the global restriction by following these steps.

<mark style="color:blue;">**Step #1**</mark>

Go to **Dashboard** <mark style="color:blue;">➤</mark> **Global Restriction** <mark style="color:blue;">➤</mark> **Add  Restriction**

<figure><img src="/files/NfbSgimkH9UfA4f3QKDM" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #3**</mark>

Select the product you want to restrict globally from the dropdown field, and once you have added the products, select the **Add** button.

<figure><img src="/files/Ul0KZQxKqhPahpDex4UU" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
After creating this global restriction, your customers will <mark style="color:red;">**not be able to buy**</mark> **the products selected for limits** <mark style="color:red;">**along with**</mark> any other products. They would have to purchase <mark style="color:red;">**either**</mark> **of the selected products** <mark style="color:red;">**or**</mark> other products at a time.
{% endhint %}


---

# 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://magecomp.gitbook.io/shopify/apps/skelta-buy-x-restrict-y/global-restriction.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.
