# Add Percentage Custom Fees

How to charge an extra fee in percentage on top of the price of base product and the extra options.

The GIF example below shows how to Charge an Extra fee in Percentage on top of the price of the base product and the extra options (only for the premium version).

After configuring the Options to assign to the product you want, then move to the Actions tab to set the conditions for adding percentage custom fees.

<figure><img src="https://1017190968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj2smJJDNU4M9yRHtLZ9O%2Fuploads%2FAcSk91mb3rn5N9inJXb1%2FAdd%20Percentage%20Custom%20Fees.gif?alt=media&#x26;token=835ecdca-34d1-4467-b422-9c0892b653f2" alt=""><figcaption></figcaption></figure>

For instance, we will set the Shipping Fees section based on the original products or whole package. If the customer chooses Regular shipping method, then an additional fee will be automatically calculated at 5% based on the value of the whole package. Likewise, if they choose Express shipping method, adding fee will be 10% of the whole package.

* Step 1: Add condition&#x20;

Move to Actions tab, and click on “Add new action set” to add a condition corresponding to the pre-created option. For example, choose “Shipping"

* Step 2: Assign “Shipping Label" in condition option

In this section, assign the “shipping label” to that condition, “Regular" or “Express".

* Step 3: Select type of extra fee

Select the option to apply when the customer meets the above conditions. &#x20;

* Step 4: Adjustment the value of the extra fee

Next, assign this option set to specific products and display it on the product page.

Once setup is complete, see the results on the front end of the products page of your WooCommerce store.

<figure><img src="https://1017190968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj2smJJDNU4M9yRHtLZ9O%2Fuploads%2FKupChUxa8FXo32Oy96UV%2FFront%20end%20of%20product%20page%20YayExtra%20setup.png?alt=media&#x26;token=ee21d795-027a-4bb7-88ba-e31cbc620e94" 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.yaycommerce.com/yayextra/how-it-works/add-percentage-custom-fees.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.
