I know this isn’t the answer you’re looking for – but you’re setting yourself up for quite a bit of work.
The Woocommerce Wholesale Suite does exactly what you need flawlessly without all the extra work (aswell as role specific payment methods / shipping methods).
https://en-gb.wordpress.org/plugins/woocommerce-wholesale-prices/
Related Posts:
- In WooCommerce filter the available Payment Methods by User Role [closed]
- Admin access for custom user capabilities
- WP_Query with meta_query for children
- WooCommerce limited role
- Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?
- WooCommerce which roles and capabilities control user login re-direct to Woo Account Page?
- WooCommerce Admin order – Only run action if user is loaded
- WooCommerce get_author_posts_url() – Author URL redirecting to shop base
- Sort products by Sale price and stock status
- Switch to user link shortcode
- How to show specific admin menu to specific user role?
- Assign user role by text field in WordPress (Woocommerce) [closed]
- Need help with woocommerce roles
- Update a list of product to featured if product have meta value (Mysql not wpquery)
- How to change user role after login?
- how to change value return by _stock_status
- Woocommerce customer role doesn’t change if user is already a subscriber [closed]
- Changing second user role while updating/downgrading membership level – s2member [closed]
- How to add a menu page for options in wordpress for user that has the role of vendor?
- How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions
- Restrict the shop_manager role to the WooCommerce Orders Page
- Can I remove WooCommerce specific product categories from shop managers?
- Add another user role based on a defined input field in WordPress (Woocommerce)
- Removing unwanted role after purchase
- Product categories don’t appear as option to build menu
- Woocommerce show cross sells on singe product page [closed]
- Search results don’t show products
- Is there a way to get customers logged out without calling wp-login.php?
- How to filter Post using Meta Data REST API
- WooCommerce checkout: How can I change $field_container of a checkout field?
- Is it possible to recalculate cart prices? [closed]
- Woocommerce: Get Cart ID
- Woocommerce – remove sale price field from dashboard [closed]
- WooCommerce Country Drop Down colours CSS [closed]
- Fatal error: Call to undefined method WooCommerce::nonce_field()
- Where do I find where woocommerce stores product data in cpanel file manager?
- Woocommerce wp-admin search products through custom meta value too
- show shop instead of 404 page for missing products
- if statement for search results
- Woocommerce exclude specific categories products from related products
- Woocommerce: Prevent sending of email when order is “Completed”
- Apply a discount percentage to regular price WooCommerce by function
- Server-Based CRON Job
- How to incluide custom field in WooCommerce email using placeholder
- Woocommerce: Can’t put items in cart in iframe and on iphone
- Display products by category in Woocommerce cart page?
- Checkout is blocked with blockUI when using action woocommerce_cart_calculate_fees
- Checkout form looks terrible [closed]
- How to upload multiple image using wp_insert_post
- How can i manage total price in checkout page? [closed]
- In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?
- WooCommerce product category permalinks
- How to do string attachment with wp_mail
- Can’t show most recent comment on top with wp_list_comments() for WooCommerce reviews
- WooCommerce order complete email logic
- WooCommerce Displaying Price With & Without TAX [closed]
- Filtering variable WooCommerce products by stock level using meta_query
- wc_get_products() not return the images details
- Adding Product Name on Admin Panel Order list and User’s My-Account Order List
- woocommerce – how to get product link by id
- woocommerce_register_post action not firing [closed]
- Add SKU in Product Title
- Search in 1) Post, 2) Products (woocommerce) and 3) Custom post type or Taxonomy type on a single page
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- display product’s category static slider name and image in loop wordpress
- Send admin new order email to logged in user as well
- How to reverse/swap the order of “Sales price” and “Regular prcie” in woocommerce?
- Woocommerce before and after shop loop not works
- Creating child theme out of Coeur
- Change Out of Stock Error Message in WooCommerce Cart
- I want a simple dropdown for locations in woocommerce
- Getting hundreds of spam orders in WooCommerce with failed stripe payment [closed]
- How to fetch woocommerce highest price and lowest price in custom template page?
- Multisite login – registration is duplicated
- One Time Access URL after purchasing subscription
- How to fetch WooCommerce products with 50% discount?
- Anonymous users can not access website
- How to make phone number become whatsapp link in back-end order details woocommerce
- How to show variations only which are in stock on shop page in woocommerce?
- select2 & selectWoo Not Loading Options
- WordPress & Woocommerce variation Price
- Adding country subdomain to an existing website like www.example.com/uk
- Move woocommerce directory
- Hide review form if user has left a comment
- Would it be ok if i had only 1 main woocommerce category?
- How to get product variation price in woocommerce_checkout_create_order_line_item hook
- WordPress post_content gets deleted in cron after wp_update_post
- wordpress site auto redirect to another site when I enable woocommerce
- Woocommerce price in meta data
- White screen only on some woocommerce products
- Disable add to cart button when product is out of stock
- Customizing the add to cart function
- Display product variations on same row [closed]
- Manual Woocommerce Complete order Emails
- Is it possible to customize username field from the registration page in woocommerce? [closed]
- Own WooCommerce theme showing text boxes instead of slider for price filter widget
- My WordPress site hacked with unwanted popups [closed]
- Woocommerce: Extra added country field not taking value from database
- How to get price of my products show in snippet on google?
- WooCommerce PHP – If Product Category Has Children [duplicate]