• Resolved ee100

    (@ee100)


    I have applied the admin coupon to be applied on the cart when Dokan installed using the below instructions:

    “Now, if you need this feature then please open dokan-lite/includes/class-order-manager.php file and comment out this line – add_filter( ‘woocommerce_coupon_is_valid’, array( $this, ‘ensure_vendor_coupon’ ), 10, 3 )”

    However, the problem I’m having is that in Dokan the Earning calculation that is made in the Vendor dashboard incorporates the discount that has been applied, which means the coupon that is applied affects the vendor’s earnings.

    – Is there a way I can change this so that the earning is calculated on the order without the coupon applied so that we “the Admin” have to incur the discount charges?

    Thank you so much for your help in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @ee100 ,

    Dokan disables the admin coupon to avoid this issue.

    When you checkout vendor products there are no admin products in the cart so the coupon can not cut the value from anywhere else.

    This is will require customization to be able to re-arrange the earnings between the vendor and admin with WC coupon enabled. Unfortunately, the customization requirement discussion is beyond the scope of this support forum. You can discuss it with an expert.

    I hope I was able to explain the situation.

    Thank you 🙂

    Thread Starter ee100

    (@ee100)

    Hi Rashed,

    Thank you for your response, we have been trying for days to fix this problem and I understand it’s customization.

    Can you let us know which PHP file would be most appropriate to make this change to the earning calculation? I believe it’s in dokan-lite -> Includes -> Orders -> Orders.php?

    Is there a contact we can reach out to help us on this issue? We are happy to pay a small charge for this specialist help.

    Thank you 🙂

    Hello @ee100 ,

    You can contact the customization team from weLab to help you with the customization.

    Thank you 🙂

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