I'm not anti-plugin. If a well-maintained plugin does what you need, use it. It's cheaper, someone else maintains it, and it's already been tested on thousands of stores.
But a lot of the WooCommerce work I get asked to do starts at the point where plugins stopped being the answer a while ago, and nobody noticed.
One store I picked up had its trade pricing spread across three different plugins: one for role-based prices, one for quantity breaks and one for customer-specific discounts. Most of the time the price was right. Occasionally it wasn't, and working out why meant checking the settings in all three and knowing which one ran last. We replaced the lot with one small plugin that did exactly what their pricing rules said.
Signs you've gone past the point
You're combining plugins to approximate one business rule. A dynamic pricing plugin, a role-based pricing plugin and a bulk discount plugin, all configured together to produce the pricing your trade customers are meant to see. Each one does its job. The combination is something nobody can fully explain.
The rules live in settings screens nobody remembers. Your actual business logic is spread across a dozen plugin settings pages. When a price is wrong, working out why means clicking through all of them.
Plugins are fighting over the same hooks. Pricing plugins tend to hook into woocommerce_before_calculate_totals or filter product prices. When several do it, the result depends on hook priority and load order. Update one and the outcome changes.
You're scared to update. If the last update broke checkout and you've been holding off ever since, the store is already more fragile than it looks.
You're paying for five plugins and using a tenth of each. Every plugin adds code, database queries and admin screens, even for features you've never switched on.
What custom actually means
It doesn't mean rebuilding the store. It usually means one small, focused plugin that does exactly what the business needs, using WooCommerce's own hooks:
add_action('woocommerce_before_calculate_totals', function ($cart) {
if (is_admin() && !defined('DOING_AJAX')) {
return;
}
foreach ($cart->get_cart() as $item) {
$price = trade_price_for(get_current_user_id(), $item['data']);
if ($price !== null) {
$item['data']->set_price($price);
}
}
});
That's simplified, but it's the shape of it. The pricing rule is in one place, in code, in version control, where you can read it, test it and change it deliberately.
A few things I always do with custom WooCommerce code:
- Put it in its own plugin, never the theme's
functions.php - Declare High-Performance Order Storage compatibility so it survives WooCommerce's move away from posts
- Use WooCommerce's APIs rather than querying its tables directly
- Write tests around the rules that cost money when they're wrong
When a plugin is still the right call
- It's a common problem, like subscriptions, bookings or product bundles, where a mature plugin exists
- It's actively maintained and widely used
- You'll use most of what it does
- Your requirement matches its model rather than fighting it
The honest cost comparison
Custom development costs more up front. A plugin licence is cheaper than a few days of development.
But plugin stacks have running costs that don't show up on an invoice: the time spent working out why a price is wrong, the orders lost when checkout breaks after an update, and the developer hours spent working around a plugin instead of with it. Once those start adding up, custom is usually the cheaper option.
If your store has reached that point, have a look at WooCommerce development, or WooCommerce Rescue if it's already broken.