Home Forums Theme Support Dokan Commision

This topic is: resolved

This topic contains 11 replies, has 2 voices, and was last updated by  Nayem 4 years, 5 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #33776

    Peter Thielen
    Member
    Post count: 69

    Hello,

    Is it possible to set a minimum amount for commission?
    Let me clarify my question with a example:

    Let's say I set my site to a commission of 5 %
    Then I earn 5 cent on a 1 dollar product and 5 dollar on a 100 dollar product.
    I want to earn a minimum amount of money per product, let's say 50 cent.
    So for 10 dollar products and higher the commission will be 5 % and every product cheaper then 10 dollar the commission should be 50 sents.

    Please help me with this concept.

    Best regards,

    Peter

    #33811

    Nayem
    Moderator
    Post count: 6480

    Hello Peter,

    You can set the different percentage for different seller from their profile. You have to navigate to User->All user and edit user profile and set the percentage. But you can not set the commission on per product price as your example said. We do not have this feature.

    Thank you ๐Ÿ™‚

    #33838

    Peter Thielen
    Member
    Post count: 69

    Is this a feature that will be implemented in the near future?
    If not, can you guide me in the right direction to implement this myself?

    I don't think it should be hard to implement. Just put a if statement somewhere that checks if a percentage of a productprice is lower then a fixed amount. If yes – use fixed amount, if no – use commissionpercentage. I just don't know which files and which functions I should change.

    Thanks in advance.

    Best regards,

    Peter

    #33840

    Nayem
    Moderator
    Post count: 6480

    Hello Peter,

    We always create our feature on the demand/priority of your customer. I can not make you sure about the possibility of this feature in our update in near future. But if you need this feature urgently then you may hire a expert to make this feature for you.

    Thank you ๐Ÿ™‚

    #33841

    Peter Thielen
    Member
    Post count: 69

    Let me ask again, since it was not answered:
    Can you point me in the right direction so I can implement it myself?
    Which files contain the commission functionality?

    Thanks

    #33843

    Nayem
    Moderator
    Post count: 6480

    Hello Peter,

    Please open Dokan-plugin/Includes/admin.php. In this file you will see this function- function get_settings_fields() {. In line number 170 you will find the seller percentage settings. This setting is saving through settings API.

    Thank you ๐Ÿ™‚

    #33845

    Peter Thielen
    Member
    Post count: 69

    And in which file are these settings actually used? Because this is just the function that gets the settings.

    Thanks in advance.

    #33861

    Nayem
    Moderator
    Post count: 6480

    Hello peter,

    Please open Dokan-plugin/lib/class.settings-api.php. Data is is saving in this file- class.settings-api.php. I can not provide you more hints because i am not a developer. Also we do not provide support for customization. We only provide support for our built in feature, Installation and configuration of our plugin.

    Thank you for understanding ๐Ÿ™‚

    #33869

    Peter Thielen
    Member
    Post count: 69

    Thanks I will check.

    Not even for features that could further improve the plugin?

    #33871

    Peter Thielen
    Member
    Post count: 69

    That file doesn't contain anything about commissions. I am looking for the file where the commission is calculated for a sold product.

    #33997

    Peter Thielen
    Member
    Post count: 69

    It's in order_functions.php.

    If you want to know how I fixed it, then let me know so I can send it and suggestions on how to fully implement (I can't add code in the post).

    Hope this will be implemented.

    Best regards,

    Peter

    #34025

    Nayem
    Moderator
    Post count: 6480

    Hello Peter,

    I am very glad to know that you have fixed your issue. I am marking this topic as resolved.

    Thank you ๐Ÿ™‚

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Commision’ is closed to new replies.