[Skip to main content](#vessel-content)

#   How to add a maximum fee

##

- **[sabroso](/forum/user/38789-sabroso "View sabroso's Profile")**
- [![sabroso's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38789-sabroso "View sabroso's Profile") Topic Author
- [ Offline](/forum/user/38789-sabroso)

Less More

- Posts: 128
- Thank you received: 2
-
-

9 years 10 months ago [\#258351](#258351) by [sabroso](/forum/user/38789-sabroso "View sabroso's Profile")  *[How to add a maximum fee](/forum/23-market-how-to/888063-how-to-add-a-maximum-fee#258351 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi there,  I hope you can help me clarify how to achieve the following.  On the Vendor fees I can add a flat fee that will be added per product bought and a percentage fee that will be on the total amount.  But can I cap the total fee to maximum value?  For example the flat fee per product is 1 euro and the percentage fee is 10%, but I would like to cap the vendor fee to a maximum of 10 euros.  That means if a customer buys 3 products of 20 euros the vendor fee will be (3x1 euro)+(3x20x10%) = 9 euros  But if the customer buys 4 products of 20 euros, I would like the vendor fee to be 10 euros ( the maximum cap ) instead of 12 euros (calculated)  How can this be achieved?  Many thanks")* was created by *[sabroso](/forum/user/38789-sabroso "View sabroso's Profile")*

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6

Hi there,

I hope you can help me clarify how to achieve the following.

On the Vendor fees I can add a flat fee that will be added per product bought and a percentage fee that will be on the total amount.

But can I cap the total fee to maximum value?

For example the flat fee per product is 1 euro and the percentage fee is 10%, but I would like to cap the vendor fee to a maximum of 10 euros.

That means if a customer buys 3 products of 20 euros the vendor fee will be (3x1 euro)+(3x20x10%) = 9 euros

But if the customer buys 4 products of 20 euros, I would like the vendor fee to be 10 euros ( the maximum cap ) instead of 12 euros (calculated)

How can this be achieved?

Many thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4MDYzLWhvdy10by1hZGQtYS1tYXhpbXVtLWZlZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#258367](#258367) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to add a maximum fee](/forum/23-market-how-to/888063-how-to-add-a-maximum-fee#258367 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi there,  I hope you can help me clarify how to achieve the following.  On the Vendor fees I can add a flat fee that will be added per product bought and a percentage fee that will be on the total amount.  But can I cap the total fee to maximum value?  For example the flat fee per product is 1 euro and the percentage fee is 10%, but I would like to cap the vendor fee to a maximum of 10 euros.  That means if a customer buys 3 products of 20 euros the vendor fee will be (3x1 euro)+(3x20x10%) = 9 euros  But if the customer buys 4 products of 20 euros, I would like the vendor fee to be 10 euros ( the maximum cap ) instead of 12 euros (calculated)  How can this be achieved?  Many thanks")*

Hi,

In order to implement such kind of rules for the fees, the best is to use a little custom plugin with the trigger "onAfterMarketCalculateVendorPrice"
[ www.hikashop.com/support/documentation/1...CalculateVendorPrice](https://www.hikashop.com/support/documentation/163-hikamarket-developer.html#onAfterMarketCalculateVendorPrice)
It allow you to have a control on the vendor price after the fee processing ; so you can place a maximum limitation and force the price to not be higher than X euros.

I think it will be the best for you needs.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4MDYzLWhvdy10by1hZGQtYS1tYXhpbXVtLWZlZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
