• Resolved dominusparte

    (@dominusparte)


    Hi, I created a coupon for my site with the woocommerce menu but when I tried applying it to test out I keep getting this error: A coupon must be restricted with a vendor product. and from my search is the dokan plugin that is restricting it please can you help me on how to fix this issue thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @dominusparte,

    In order to offer a site-wide discount, you will need to use the WooCommerce coupon option. The coupon is restricted. We removed the admin coupon to be applied on the cart when Dokan installed because we have thought of the scenarios below:

    Say you are an admin and have created a coupon that provides a discount of $40 flat for all your vendor’s products. Some of the vendors may sell products that are $5. So, it is impossible to provide a $40 flat discount for a product with a $5 cost.
    Another fact is, a vendor might not want to put any discount on his shop’s products, in that case, the admin cannot forcefully apply a discount for his products. For products that are very costly, a discount is not an option.

    Now, if you need this feature then please put the below code on your child theme’s function.php.

    add_filter( 'dokan_ensure_vendor_coupon', '__return_false' );

    In case it is not working let us know. We will help you with a way around.

    Regards,

    Thread Starter dominusparte

    (@dominusparte)

    thanks so much, it worked

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A coupon must be restricted with a vendor product’ is closed to new replies.