• Resolved magedmoh94

    (@magedmoh94)


    Hi,

    We really need to thank you for this great plugin of how its really useful and beneficial for people like us.

    We have a single suggestion to modify in the core files of the plugin. we inspected it and found that this plugin its function work only if the user has cap (manage_woocommerce), which is in our opinion a general cap for the woocommerce because there are specific caps for coupons itself like (publish_shop_coupons).

    So its better to make a this function to work with the users who has a specific funtion related to coupons which is (publish_shop_coupons) because if any user can publish coupons for sure will have an access to duplicate it.

    This will result in what by changing the cap to (publish_shop_coupons) ?
    This will result in making this plugin compatible to work with popular multi vendor plugins which will give the access to other roles like (vendors) with the cap of(publish_shop_coupons) to use the functionality of the plugin.

    Will be compatible with ( Yith Multi Vendor, Product Vendor, etc.. )

    What do you think of this suggestion ?

    Stay Safe & Best Regards

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author pimwick

    (@pimwick)

    Excellent suggestion! We just released an update to use the “publish_shop_coupons” rather than “manage_woocommerce”

    FYI, we do have this available as a filter in case you want to change it later:

    woocommerce_copy_coupon_capability

    Hope the update helps. If you have a moment, let us know what you think of the plugin by leaving a review!

    Thread Starter magedmoh94

    (@magedmoh94)

    Hi @pimwick

    Thank you so much for the update we will start using the plugin immediately. really thankful for you.

    One last thing: does it copy the author too ?, or it adds the author who clicked publish ?

    Plugin Author pimwick

    (@pimwick)

    The copied coupon will have the Author set to the currently logged in user, it doesn’t copy that value over.

    Let me know if you have any other questions!

    Thread Starter magedmoh94

    (@magedmoh94)

    I got your point thank you so much for that help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make plugin more compatible with other plugins’ is closed to new replies.