Fee configuration on custom field and multiple groups

  • Posts: 105
  • Thank you received: 2
8 years 1 month ago #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,...)?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #252713

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

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.055 seconds
Powered by Kunena Forum