> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yayextra/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yayextra/how-it-works/add-percentage-custom-fees.md).

# 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="/files/fr1VoaXFB0zcFoFjBctg" 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="/files/L8owFsPQVqy6w100X6RH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.yaycommerce.com/yayextra/how-it-works/add-percentage-custom-fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
