# Discount Percentage in Frontend

Once you have enabled the extension from the backend, the extension will display discount percentage on the frontend product page. The extension will automatically fetch the product’s special price and calculates discount percentage accordingly.

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

Discount Percentage supported for Grouped Products

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

Discount Percentage supported for Configurable Products with Dropdown option

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

Discount Percentage supported for Configurable Products with Swatch option

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


---

# 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-discount-percentage-extension/discount-percentage-in-frontend.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.
