# Create Rule

**Create Rule to Manage Delivery by PIN Codes**

Easily control where your products can be delivered by creating rules based on PIN codes. Set estimated delivery times, return and exchange availability, and apply rules to single PIN codes, ranges, or bulk CSV uploads. Prioritize rules to ensure the most important settings are applied first, and choose whether they apply to all products, specific products, or specific collections.

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

**Create a Rule**\
Go to your Shopify store backend:\
**Apps ➤ ZOX Zipcode Check ➤ Create Rule**

* Enter a **name** for your rule.
* Set the **status** (Active/Inactive).

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2F4GZETcPTQwsHkIOc8Agn%2Fzox%204.png?alt=media&#x26;token=85abc282-7615-4b1c-ac36-acf0ee55b312" alt=""><figcaption></figcaption></figure>

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

**Add PIN Codes**\
You can add PIN codes in three ways:

1. **Single PIN Code** – Enter a specific PIN code (e.g., 314005) and set **estimated delivery days**, **return**, and **exchange availability**.
2. **PIN Code Range** – Specify a range (e.g., 314001 to 314005) to apply the rule to multiple PIN codes at once.
3. **CSV Upload** – Upload a CSV file containing multiple PIN codes for bulk import.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Fhn0Ag1EMErsYcvFWJGY3%2Fzox%206.png?alt=media&#x26;token=b2dc0822-99d5-4881-8325-0268d34e82c5" alt=""><figcaption></figcaption></figure>

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

* Choose whether delivery should be **Available** or **Not Available** for the selected PIN codes.
* Assign a **priority** to this rule relative to your other rules.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2F2wqNWgO5PB9UUjuPIoAI%2Fzox%208.png?alt=media&#x26;token=65452c81-2608-4b75-80f0-31e775972ef4" alt=""><figcaption></figcaption></figure>

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

**Select Products or Collections**\
Choose where this rule should apply:

* **All Products** – Applies to every product in your store.
* **Specific Products** – Apply the rule to selected products.
* **Specific Collections** – Apply the rule to entire collections.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FbiqeWklZnzkNOLdnDlXO%2Fzox%209.png?alt=media&#x26;token=4ea8e9ea-4012-4d93-af42-33e87ff07ca6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FcXzXU66Yf5AjlO5CGpUw%2Fzox%2010.png?alt=media&#x26;token=2f187b8b-f8e8-4b99-b217-e4efe166fc59" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Fi4ge0gmYNbtxcBy5wTDe%2Fzox%2011.png?alt=media&#x26;token=715b4fa1-1ada-43aa-8b2f-239cdaae4598" alt=""><figcaption></figcaption></figure>

* You can select an option as to which you want to apply the deliveries according to the pincodes - **products** or **collections** as per your choice.

<mark style="color:blue;">**Step #5**</mark>&#x20;

**Save and Manage Rules**\
Once created, the rule is applied automatically based on its priority. You can manage, edit, or delete rules anytime to keep delivery availability up to date.

For example, if you select a **specific product** like *Arrow Shirt*, the rule will appear on the frontend like this. Enter a PIN code to instantly see whether delivery is available for that product.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FhHm8526oDaBZiEMefQyt%2Fzox%2012.png?alt=media&#x26;token=8421a89b-92af-4bfb-9bbd-9b2beff3daaa" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FnY2eYzFcEA5RI1xpREps%2Fzox%2013.png?alt=media&#x26;token=79dfc806-1573-4182-901d-f40d3b5c2fba" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2F4eCL8bl8Si9bO7s4sG2G%2Fzox%2014.png?alt=media&#x26;token=887fe5e6-1dd6-4235-bdba-d7833455dd7d" alt=""><figcaption></figcaption></figure>

**Important:** Go to **Settings** and turn this option on to ensure customers cannot checkout if an incorrect PIN code is entered.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FLcFz2tKrPy4XoHRvlrdd%2Fzox%2015.png?alt=media&#x26;token=218aa445-67b0-47f8-9d7f-45b45e3d20af" alt=""><figcaption></figcaption></figure>
