> 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/zox-zipcode-checker/create-rule/app-block-setting.md). Agents can also search and read this documentation through its [MCP server](https://magecomp.gitbook.io/shopify/~gitbook/mcp).

# App Block Setting

**Customize Your Pincode Widget**

From this section, you can personalize the appearance and messages of your ZIP code checker on the frontend according to your preferences, making it match your store’s look and feel.

### <mark style="color:$primary;">1.</mark> <mark style="color:$primary;">Widget Settings</mark>

* **Choose Icon:-**\
  Select an icon that will be displayed alongside the delivery options widget.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FXDc6xSa7hmRZwMWTq373%2FScreenshot_17.jpg?alt=media&amp;token=dc1969e5-871e-4723-b918-bf4cbf3898f8" alt=""><figcaption></figcaption></figure>

### <mark style="color:$primary;">**2.**</mark> <mark style="color:$primary;">Button and Input Box Style</mark>

These settings control the visual appearance of the input field and action button.

* **Input Box Border Style**\
  Options such as "Solid" define how the input box border appears.
* **Input Box Border Radius (px)**\
  Define the roundness of the input box corners (in pixels).
* **Button Border Radius (px)**\
  Define the roundness of the button corners (in pixels).

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FcfeZ91QCZaSfBzJVeuKC%2FScreenshot_19.jpg?alt=media&amp;token=37fbce06-3c8a-4ce7-98dc-1e82c1548e5a" alt=""><figcaption></figcaption></figure>

### <mark style="color:$primary;">**3.**</mark> <mark style="color:$primary;">Text Settings</mark>

* Customize all text labels and system messages shown in the widget.
  * **Heading**\
    Example: **"Delivery Options"**
  * **Input Box Placeholder**\
    Example: **"Enter your pincode"**
  * **Button Text**\
    Example: **"Check"**

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FZ0WMqdBHr3MZKaJT54ux%2FScreenshot_24.jpg?alt=media&amp;token=5ef31a03-2ef6-4eaa-8f37-69456bf36089" alt=""><figcaption></figcaption></figure>

### <mark style="color:green;">**4. Message Configuration**</mark>

You can personalize customer-facing messages using dynamic variables.

* **Availability Message**\
  Displayed when delivery is available.\
  Example: **"We deliver to your %pincode% pincode."**\
  Variable used: {**%pincode%**} where you have to enter your pincode
* **Unavailability Message**\
  Displayed when delivery is not available.\
  Example: **"Unfortunetly we do not ship to your {%pincode%} pincode. "**\
  Variable used: {**%pincode%**} where you have to enter your pincode
* **Estimated Delivery Message**\
  Shows the estimated delivery timeline.\
  Example: "**Estimated Delivery Time: {%est\_msg%}"**\
  Variable used: **{%est\_msg%}**
* **Exchange/Return Message**\
  Informs customers about return or exchange availability.\
  Example: **"Exchange/Return available within {%return\_and\_exchange\_days%}"**\
  Variable used: **%return\_and\_exchange\_days%**
* **Cash on Delivery Message**\
  Example: **"Cash on delivery available."**
* **Detect Location Text**\
  Example: **"Detect your current location."**

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FJxGia9CJMeBwGAGRcir5%2FScreenshot_25.jpg?alt=media&amp;token=37bd1e26-467d-4df0-9fe9-1cc6e6ca1daa" alt=""><figcaption></figcaption></figure>

### <mark style="color:$primary;">**5.**</mark> <mark style="color:$primary;">Color Settings</mark>

Use these options to match the widget with your store theme.

* **Icon Color**: #303030
* **Input Box Border Color**: #545660
* **Button Background Color**: #545660
* **Button Text Color**: #ffffff
* **Availability Text Color**: #009E12
* **Unavailability Text Color**: #f91010
* **Estimated Text Color**: #000000
* **Exchange/Return Text Color**: #000000
* **Cash on Delivery Text Color**: #000000
* **Waiting List Text Color**: #0457c8

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FNZsjKQUol7x7AmZa1MBi%2FScreenshot_22.jpg?alt=media&amp;token=c98e3bf9-c90e-4e4e-b0ec-c89a282fb17b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
After implementing these custom view settings, if the customer’s pin code is validated with the product they want to order, a success message like *<mark style="color:green;">**“We deliver to your pin code.”**</mark>*  will be displayed to the customer.&#x20;

If their entered ZIP code is not validated, the app will display a failure message like, <mark style="color:red;">**“**</mark>*<mark style="color:red;">**Unfortunately, we do not ship to your PIN code.”**</mark>* to your customers.
{% endhint %}

**The output of the customization on your online store 👇**

* When delivery is not available to your pincode.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FKuORBh058wNggrPsspz9%2Fimage.png?alt=media&amp;token=f9c15bda-8f20-4e4d-b3ae-bcc0568574cd" alt=""><figcaption></figcaption></figure>

* When the delivery is available to your pincode.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FgQ0KytZ51n6M7VCZhMwa%2Fimage.png?alt=media&amp;token=0d3cc8a4-2b23-4fb3-9e19-105c6af38418" alt=""><figcaption></figcaption></figure>
