Automating Role-Based Wholesale Pricing in WordPress
php
dev.to
I built this plugin to solve a common WooCommerce problem: wholesale logic usually lives in spreadsheets, email threads, and manual exceptions instead of the store itself. With NEXU B2B Wholesale for WooCommerce, I wanted WordPress to enforce B2B rules automatically. The core idea is simple: assign a buyer role, then let pricing, product visibility, order minimums, and payment flow react to that role. Under the hood, the plugin extends WooCommerce product and cart logic with role-aware conditi