# Configuration

Before configuring the extension you must enable the default cash on delivery payment method from the backend of your store.&#x20;

Navigate to Stores > Configuration > Sales > Payment Methods > Cash on Delivery Payment –&#x20;

Enabled: Admin will need to select YES for enabling the default cash on delivery payment method.

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

Once the extension is enabled successfully, go to Stores>Configuration to configure the extension for use.&#x20;

<br>

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

**COD Per Product and Category:** Enable or Disable the extension from here. Set it as enabled to use the features of the extension.\
**Category or Product:** Admin can select cash on delivery per product and per category according to the requirement.


---

# 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-cash-on-delivery-per-product-category/configuration.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.
