# FAQs

**How size chart will be prioritized if set for all 3 – global, category and product?**

If you have set global, category specific and product specific size chart, it will prioritize to first show product chart, if not available than will display category chart and else if will show global size chart.

&#x20;

**How to show Size Chart through CMS block?**

Once you have created a CMS block with size chart details. Go to set size chart WYSIWYG editor and click on insert widget, select default template and CMS block from the list. Save the settings and you are done. Your CMS block content can be seen as size chart in frontend.

&#x20;

**How to show size chart button on product view page in Porto theme?**

* First of all go to **app\design\frontend\Smartwave\porto\Magento\_Catalog\layout** and open **xml** file.
* Now find for **\<move element=”page.main.title” destination=”product.info.main” before=”-“/>** in the file and paste below code after this.
* **\<referenceContainer name=”product.info.main”>**

&#x20;  **\<block class=”Magecomp\Sizechart\Block\Sizechart”**

&#x20;   **name=”sizechart”**

&#x20;   **template=”Magecomp\_Sizechart::sizechart.phtml”**

&#x20;   **after=”-“>**

&#x20;  **\</block>**

&#x20;    **\</referenceContainer>**


---

# 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.magecomp.com/magento-2-size-chart-extension/faqs.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.
