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

#   Fee configuration on custom field and multiple groups

##

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

Less More

- Posts: 105
- Thank you received: 2
-
-

10 years 1 month ago [\#252699](#252699) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  *[Fee configuration on custom field and multiple groups](/forum/23-market-how-to/886970-fee-configuration-on-custom-field-and-multiple-groups#252699 "-- HikaShop version -- : 6.0 -- HikaMarket version -- : 1.6.7  Hello,  I have two main questions : 1/ Fee configuration on custom field: is it possible to give a different fee to the vendors based on certain product characteristics/custom field values/category of product?  2/ multiple groups if I have different fees set up for different groups and if a vendor belongs to several of these groups (at least 2!), what happens to the fee calculation for this vendor (does it add up, is there a priority,...)?")* was created by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")*

-- HikaShop version -- : 6.0
-- HikaMarket version -- : 1.6.7

Hello,

I have two main questions :
1/ Fee configuration on custom field:
is it possible to give a different fee to the vendors based on certain product characteristics/custom field values/category of product?

2/ multiple groups
if I have different fees set up for different groups and if a vendor belongs to several of these groups (at least 2!), what happens to the fee calculation for this vendor (does it add up, is there a priority,...)?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2OTcwLWZlZS1jb25maWd1cmF0aW9uLW9uLWN1c3RvbS1maWVsZC1hbmQtbXVsdGlwbGUtZ3JvdXBzP3RtcGw9bWFya2Rvd24=) 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)
-

10 years 1 month ago [\#252713](#252713) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Fee configuration on custom field and multiple groups](/forum/23-market-how-to/886970-fee-configuration-on-custom-field-and-multiple-groups#252713 "-- HikaShop version -- : 6.0 -- HikaMarket version -- : 1.6.7  Hello,  I have two main questions : 1/ Fee configuration on custom field: is it possible to give a different fee to the vendors based on certain product characteristics/custom field values/category of product?  2/ multiple groups if I have different fees set up for different groups and if a vendor belongs to several of these groups (at least 2!), what happens to the fee calculation for this vendor (does it add up, is there a priority,...)?")*

Hi,

1 - You can configure the fee globally, per vendor and per product.
If you want to have fees depending some other rules, it will require the usage of a custom plugin.

The best is to use that trigger and modify the content of the variable "$products" which will contain the fee rules for the products
[ www.hikashop.com/support/documentation/1...CalculateVendorPrice](https://www.hikashop.com/support/documentation/163-hikamarket-developer.html#onBeforeMarketCalculateVendorPrice)

2 - There is a some priorities and some ordering.
Fist, in the priorities, the fees set on the product are prioritized on the vendor fees (which are also prioritized on the global fees).
If you have several rules on the global fees for different groups and they have the exact same restrictions (min price / min qty), the first declared rule will be choose.
Between two rules with different "min price" / "min qty", the best price for the vendor will be choose.

In the function "getProductFee" of the HikaMarket class order you will find the code which process the fee rules and return the selected product fee.
That function is called by the function "calculateVendorPrice" that you can override thanks to the trigger "onBeforeMarketCalculateVendorPrice".

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2OTcwLWZlZS1jb25maWd1cmF0aW9uLW9uLWN1c3RvbS1maWVsZC1hbmQtbXVsdGlwbGUtZ3JvdXBzP3RtcGw9bWFya2Rvd24=) 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.050 seconds

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