• Resolved damara92

    (@damara92)


    Hi! I need the admin’s profit percentage calculation to be different, and instead of subtracting that % from the value of the product added by the vendor, it should be added. So if I had a product with a cost of 10 USD and a profit of 10%, it should appear in the store with a value of 11 USD. I tried with code but it doesn’t work.

    I hope you can help me.

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support sazdhossain

    (@sazdhossain)

    Hi @damara92,

    Thank you for reaching out to us with your question about customizing the admin’s commission calculation in Dokan.

    By default, Dokan subtracts the commission percentage from the value of the product added by the vendor to calculate the admin’s profit. If you would like to modify this behavior and add the commission amount to the product price instead, it will require advanced custom development.

    Please note that custom development falls outside the scope of our support policy, and we are unable to provide assistance with custom code implementation as per our support policy. However, I am keeping this thread open so that other users in the community can share information that might assist you.

    Good luck!

    Thread Starter damara92

    (@damara92)

    Hi! I completely understand. Thanks for replying and for keeping the thread open.

    Greetings

    transparentmarketplace

    (@transparentmarketplace)

    I believe this would be a code change in the woocommerce plugin rather than a Dokan plugin?

    From my understand, product prices are set through WooCommerce and not Dokan.

    Thread Starter damara92

    (@damara92)

    Hi @transparentmarketplace ! Thank you for responding to my ticket. Actually, I don’t have any issues with the prices. What I need is to modify the way in which the profit percentage is calculated, as it is a feature of Dokan.

    I have tried to change it by code, by inserting a JavaScript function where the admin’s percentage is added to the product price, but it doesn’t work. I must be doing something wrong when calling the function.

    Greetings

    Plugin Support sazdhossain

    (@sazdhossain)

    Hi?@damara92 ,

    Due to inactivity, this topic is now being closed. If you have any further concerns or queries, please don’t hesitate to start a new topic.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Percentage Calculation’ is closed to new replies.