# Smart Product Filter & Search

## Show on collection page, search page

{% stepper %}
{% step %}

### Theme editor

* In admin shopify
* Go to **Online store** -> **theme**
* Click to **edit code**

<figure><img src="/files/2PYGy6JJ4AoLe1DNSDQt" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add code integrate

* In theme editor -> Find **theme.liquild**
* Copy code script bellow and add before **\</body>**

```javascript
<script>
  window.addEventListener('globoFilterRenderCompleted', function () {
    if(typeof globoswatch !='undefined'){
        globoswatch.init();
     }
   });
</script>

```

{% endstep %}

{% step %}

### Example

<figure><img src="/files/epDDNEOf6slK4Dm3om0y" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## Troubleshooting

* If app not work on collection page with **Smart Product Filter & Search**, please contact us.
* For further assistance, contact us via **<hi@globosoftware.net>**


---

# Agent Instructions: 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:

```
GET https://docs.globo.io/app-integrations/smart-product-filter-and-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
