# Add Custom Fee based on Shipping Fee

{% hint style="info" %}
This feature is only available on PRO version
{% endhint %}

This rule type allows you to add a custom fee based on the shipping fee. This means that when your customers checkout with a permanent shipping fee you have set for your store, this rule will apply a fixed fee or a percentage fee based on the available shipping fee.

There are 2 types of custom fees in this rule.&#x20;

* Fixed fee
* Percentage fee&#x20;

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

1. This tab shows 2 methods to configure with Add Custom Fee based on Shipping Fee rule
2. This tab allows users to set up the condition for this rule to be applied.&#x20;

**Note**: YayPricing allows users to add settings to enable tax calculations for the checkout fee. This means that when your store sets a tax rate for customers' checkout, YayPricing will include this rate in your shipping fee.

**FYI:** Each business operates a different shipping method that suits their needs, they can deliver their goods using their own vehicles or use common carriers or private carriers. As such, to apply taxes and calculate shipping costs, business owners must comply with each state’s own regulations, which vary and operate depending on the products in the shipment.

Set up a tax rate in your eCommerce platform. Then, YayPricing supports automatically calculating and adding tax to the shipping fee, ensuring compliance.

**For example**, the default shipping fee on your WooCommerce store is $10. Our business must charge 10% VAT on shipping. With YayPricing rule, If the cart quantity is more than 10 products, the shipping fee would add a customs fee based on the default shipping fee, precisely 50% of the shipping fee. Choose Tax rule is Standard, which means based on tax rate of business.&#x20;

Let’s see how it works!

* Step 1: Configure the rule to add a 50% fee based on the shipping fee. Enable the standard tax rate.

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

* Step 2: Set the condition that the rule will be active if the cart quantity is more than 10 products.

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

* Step 3: Add products to your cart and see how it works.

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

Happy Selling!


---

# 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/yaypricing/features/checkout-fees/add-custom-fee-based-on-shipping-fee.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.
