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

#   Configuring fixed vendor fee per product

##

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile") Topic Author
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

10 years 7 months ago [\#236558](#236558) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  *[Configuring fixed vendor fee per product](/forum/23-market-how-to/883843-configuring-fixed-vendor-fee-per-product#236558 "-- HikaShop version -- : 2.6.2 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome latest -- Error-message(debug-mod must be tuned on) -- : None  I have hikashop and hikamarket set up that each vendor has it's own products. I have several cliënt groups who have different prices for the same product. I wish to configure a fixed price my sub-vendors get for their product without the client-prices having any influence on what the sub-vendors get.  I currently have the vendor price calculated on having a fixed fee for the main vendor. But is it possible to this the other way around? Example how it works now: For client A product price is 12 euro's For client B product price is 11 euro's  If I set up a Vendor flat fee on the product for 5 euro's, the sub-vendor would get 7 euro's in sales when his products are sold to client A and 6 euro's in sales when is products are sold to client B.  I wish that no matter which client buys the product, the vendor will get a fixed amount for his product from the main vendor.  How would I do that? I tried to use the fixed fee entry. But for some reason the field order&#95;product&#95;vendor&#95;price in the #&#95;&#95;hikashop&#95;order&#95;product table would record the price for the consumer. I am currently using this block in the product edit to maintain the fees:  Thank you in advance!")* was created by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")*

-- HikaShop version -- : 2.6.2
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome latest
-- Error-message(debug-mod must be tuned on) -- : None

I have hikashop and hikamarket set up that each vendor has it's own products. I have several cliënt groups who have different prices for the same product. I wish to configure a fixed price my sub-vendors get for their product without the client-prices having any influence on what the sub-vendors get.

I currently have the vendor price calculated on having a fixed fee for the main vendor. But is it possible to this the other way around?
Example how it works now:
For client A product price is 12 euro's
For client B product price is 11 euro's

If I set up a Vendor flat fee on the product for 5 euro's, the sub-vendor would get 7 euro's in sales when his products are sold to client A and 6 euro's in sales when is products are sold to client B.

I wish that no matter which client buys the product, the vendor will get a fixed amount for his product from the main vendor.

How would I do that? I tried to use the fixed fee entry. But for some reason the field order_product_vendor_price in the #__hikashop_order_product table would record the price for the consumer.
I am currently using this block in the product edit to maintain the fees:

[ ![Screen&#95;Shot&#95;2016-04-13&#95;at&#95;15&#95;46&#95;15.png](/forum/attachment/30662) ](/forum/attachment/30662 "...t&#95;15&#95;46&#95;15.png")

Thank you in advance!

- [ ![Screen&#95;Shot&#95;2016-04-13&#95;at&#95;15&#95;46&#95;15.png](/forum/attachment/30662) ](/forum/attachment/30662 "...t&#95;15&#95;46&#95;15.png") [ ](/forum/attachment/30662?download=1 "...t&#95;15&#95;46&#95;15.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgzODQzLWNvbmZpZ3VyaW5nLWZpeGVkLXZlbmRvci1mZWUtcGVyLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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 7 months ago [\#236562](#236562) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Configuring fixed vendor fee per product](/forum/23-market-how-to/883843-configuring-fixed-vendor-fee-per-product#236562 "-- HikaShop version -- : 2.6.2 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome latest -- Error-message(debug-mod must be tuned on) -- : None  I have hikashop and hikamarket set up that each vendor has it's own products. I have several cliënt groups who have different prices for the same product. I wish to configure a fixed price my sub-vendors get for their product without the client-prices having any influence on what the sub-vendors get.  I currently have the vendor price calculated on having a fixed fee for the main vendor. But is it possible to this the other way around? Example how it works now: For client A product price is 12 euro's For client B product price is 11 euro's  If I set up a Vendor flat fee on the product for 5 euro's, the sub-vendor would get 7 euro's in sales when his products are sold to client A and 6 euro's in sales when is products are sold to client B.  I wish that no matter which client buys the product, the vendor will get a fixed amount for his product from the main vendor.  How would I do that? I tried to use the fixed fee entry. But for some reason the field order&#95;product&#95;vendor&#95;price in the #&#95;&#95;hikashop&#95;order&#95;product table would record the price for the consumer. I am currently using this block in the product edit to maintain the fees:  Thank you in advance!")*

Hi,

There is no built-in feature to do so.
But you can extend the way that HikaMarket is processing the vendor total thanks to a custom plugin.
With the triggers "onBeforeMarketCalculateVendorPrice" and "onAfterMarketCalculateVendorPrice" you can completely override how the processing is made or perform some adjustments.

You can know a little more about the parameters of these triggers here :
[ www.hikashop.com/support/documentation/1...CalculateVendorPrice](https://www.hikashop.com/support/documentation/163-hikamarket-developer.html#onBeforeMarketCalculateVendorPrice)

But the best would be to see the content of the function "calculateVendorPrice" in the HikaMarket Vendor class ; specially if you want to know how to load the product fees.

Regards,

---

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

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

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