WordPress.org

Forums

WooCommerce - excelling eCommerce
Prevent wholesale user role from using coupons? (3 posts)

  1. naikstercom
    Member
    Posted 1 year ago #

    Hi,

    I have retail customers and wholesale customers roles setup but how do I make sure that the "wholesale" users can't use discount coupons to buy in bulk/wholesale.

    How could I achieve this please? Remove the coupon field on cart/checkout or alert them that they can't use coupons if they tried.

    Thanks

    https://wordpress.org/plugins/woocommerce/

  2. thedeancorp
    Member
    Posted 10 months ago #

    Did you find a solution for this?

    I found this (www.woothemes.com/products/group-coupons), but I prefer not to buy from woothemes since they only come with a 1yr upgrade license, support is non-existent and they are way overpriced. I would much rather buy from somewhere like codecanyon but I haven't found anything.

  3. varktech.com
    Member
    Posted 10 months ago #

    one off the cuff idea, would be to do this via css
    1. use one of the early filter or action statements from the pages where coupon can be redeemed
    2. In the function initiated by the filter/action from (1),
    -check the role
    - if wholesale, publish a css file where the coupon code area has css display:none ....
    ymmv
    Best,
    vark

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic