casperh123/Clyppers-Role-Based-Pricing-for-Woocommerce ? reverse-engineered prompt

Reverse engineered prompt

Build me a WordPress plugin for WooCommerce that lets me set different prices based on the customer’s user role, including logged out guests.

I want an admin area where I can create and manage pricing rules for each role, turn pricing on or off per role, search for products or categories, and copy one role’s rules to another. It should support special pricing for a single product, a category, a broader category group, or a default sitewide rule, and the more specific rule should always win.

The pricing should handle percent discounts or markups, fixed amount discounts or markups, and fixed sale prices. I also need quantity based pricing breaks, so if someone adds enough of an item to the cart, the price changes and that lower price should already be visible on the product page.

Please make it work cleanly with WooCommerce, build the admin screen, and keep the code organized so it is easy to extend later. If you need to check current WordPress or WooCommerce docs, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab