• Resolved matlabiir

    (@matlabiir)


    Before installing the dokan ,creating products and discount coupons, Created by the site administrator in Woocommerce.
    Now coupons are not included in the shopping cart by installing a voucher.
    A coupon must be limited to a vendor product.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello @matlabiir,

    Yes, you are correct! We have revoked the access to use admin created coupon at the checkout. Because if admin creates any coupon and customer use it for a vendor product then it creates some major calculation issue.

    Thread Starter matlabiir

    (@matlabiir)

    So what are the products and coupons of admin?
    Is the admin not already a vendor?
    This is a fundamental problem.
    Because the admins who have the store and intend to create multiple vendors,  Certainly, with these changes in the shop, They can not select this plugin.
    What do I do now with pre-created coupons? They can not enter the shoping cart.
    help me please

    Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello @matlabiir,

    The admin is not a vendor technically. If the admin wants to sell the product then he can register as a vendor to sell his own product.

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

    Thread Starter matlabiir

    (@matlabiir)

    Hi @nazmulhassann20 ,
    I explain to you why it is a big flaw.
    Each vendor’s coupon must be applicable to products sold by the same vendor. But not in the way you set it.
    Suppose:
    Seller gives each customer a unique coupon with different discounts.
    Now, after releasing any product in the store, the vendor must edit all published coupons. And the new product will recognize coupons.
    This is not logical.
    The store gets bigger every day. Coupons are getting bigger every day. And this is a big dilemma for the seller.

    Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello,

    I understand. If a vendor wants then they can use their own coupon. A vendor can easily create their own coupon for his store. So, it would not create any problem for the vendor to offer a discount. Please note that coupon is a paid feature.

    Thread Starter matlabiir

    (@matlabiir)

    Hi
    As a vendor, I want to create a coupon for all my products.
    This coupon should also be considered for products that are created by me in the future.
    What is the solution?
    Should I edit the coupons I’ve given to my customers one by one?
    It is not reasonable that for every product that I add in the future, all I edit coupons

    Plugin Support Nazmul Hassan

    (@nazmulhassann20)

    Hello @matlabiir,

    We are unable to discuss any paid feature in this free forum. If you have any query then fill our contact form 🙂

    Hey @matlabiir

    If you still need a fix for this and don’t mind editing the plugin, go to includes/class-order-manager.php and search for the function ensure_vendor_coupon. Then comment out the lines:

    throw new Exception( __( 'A coupon must be restricted with a vendor product.', 'dokan-lite' ) );

    and

    return false

    This will restore the original woocommerce coupon functionality.

    Thread Starter matlabiir

    (@matlabiir)

    Hi @jmargiewicz
    very Thanks
    My problem has been resolved

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