Web Development
WooCommerce without a page builder: a store on a custom theme and plugin
The store's first version was built with a heavy page builder; pages were slow and every campaign meant editing several pages by hand. Here's how we moved to a custom WooCommerce setup of about 17,000 lines.
Maxend is a store selling photo prints, frames, albums and personalized products, and it's the longest-running of my freelance jobs. The store's first version was built with a heavy page builder. Pages were slow, but the real problem was elsewhere: every campaign change meant editing several pages by hand. A discount message could say one thing on the homepage and another on a product page.
What the store owner wanted was actually very clear: a fast site and a structure they could manage on their own. With a page builder, those two wishes worked against each other.
The hidden cost of page builders
Page builders are great for a quick start. But every section becomes design data stored separately on each page. If a piece of information like "free shipping threshold" appears on ten pages, there are really ten copies of it. On top of that, every page loads CSS and JavaScript even for components it doesn't use. As the store grows, both problems grow with it.
The theme carries the look, the plugin carries the behavior
My first decision was to separate responsibilities strictly:
- The
maxendtheme carries the page skeleton, the product page template and all CSS (compiled Tailwind v4). - The plugin handles shortcodes, product queries and WooCommerce behavior.
The practical benefit: even if the theme changes, the store's business rules stay put; even if a business rule changes, the design doesn't need to be touched.
The journey of a request
When a page opens, the flow is always the same: page.php → the_content() → the relevant shortcode → a Maxend_Catalog query → a template. Templates only print the data given to them, escaped; they never go to the database themselves. Thanks to this rule, finding out what a page loads and from where means looking at a single class.
// Showcase shortcode: the query lives in the catalog, the view in the template.
add_shortcode('maxend_showcase', function ($atts) {
$products = Maxend_Catalog::featured((int) ($atts['limit'] ?? 8));
return maxend_render('showcase', ['products' => $products]);
});Maxend_Catalog is the single source of product queries. Slider and cover images are kept in a catalog cache whose version increases whenever a product is saved. Nobody has to clear the cache by hand; when a product changes, the key changes and the old cache is invalidated on its own.
One piece of information, one place
Marketing text, campaigns, trust points and contact details are gathered in the Maxend_Marketing class. When support hours change or a new campaign starts, there's a single constant to touch, and the change appears everywhere on the site at once. For the store owner, the feeling of "I can change everything from one place" turned out to be worth even more than speed.
The customer's photo
The most sensitive part of a store that sells personalized prints is the customer uploading their own photo on the product page. That flow has to connect cleanly to the cart and order data. The custom theme let us build it with WooCommerce's own hooks, instead of squeezing it into the limits of a page builder.
Payments and sales channels
Payments run through iyzico and Tami with 3D Secure. There's also a small but very useful switch: a single flag closes site orders and redirects sales to the marketplace store, and it can be reopened without touching the database. During stocktaking, holidays or busy periods, that's a big relief for the store owner.
What I learned
- In a constantly evolving store, the real cost isn't the initial build but the cost of every change.
- Separating look and business rules means you can change both more boldly.
- Tying the cache to data changes instead of a "clear cache" button ends forgotten-cache bugs.
Page builders aren't bad; for some jobs they're the right tool. But for a store that will live for years and keep changing, I think building a structure where every change happens in one place is both faster and cheaper in the long run.
Related articles
- A working website instead of a proposal PDF: a builder that knows your industryWeb Development · 5 min read
- A static blog on shared hosting: Next.js, a PHP API and GitHub ActionsSoftware Architecture · 5 min read
- Static First: A Fast, Cost-Efficient and Resilient Site with Next.jsSoftware Architecture · 6 min read