KimTec Households: Custom WooCommerce Store for a Nairobi Retailer

- 83
- products in the live catalogue
- 8
- product categories
- 10
- WooCommerce templates overridden
- 1
- custom M-Pesa Paybill payment gateway
KimTec Households is a Nairobi retailer selling household appliances, kitchenware, furniture and electronics. They needed an online store, and the usual route (a marketplace theme with a stock WooCommerce checkout) assumes a global shopper: multiple countries, card payments and long address forms.
KimTec's customers are in Kenya. They pay with M-Pesa or cash, they want to see the discount and the stock level at a glance, and the store needed a quick way to reach the shop on WhatsApp. It had to be built around that from the start, not bent into shape afterwards.
I built the store end to end as the only developer: the design, a custom WordPress theme written from scratch, the product import, M-Pesa payment, WhatsApp ordering, and the hosting and domain setup on the client's Truehost package.
Writing the theme myself, rather than adapting a marketplace one, meant every page could be shaped around how this shop sells:
A storefront with a promotional top bar, search, a category carousel and trust highlights: pay on delivery, same-day Nairobi dispatch and warranties.
Product pages with brand and SKU, a discount badge, stock status, a quantity selector, Add to cart and Buy now, plus clear payment and delivery notes.
A checkout and account area simplified for Kenyan customers.
A custom M-Pesa Paybill payment gateway.
The theme is a set of PHP templates and a design-token stylesheet (CSS custom properties for the orange and slate palette). WooCommerce's shop, product, cart, checkout and My Account templates are overridden, and small scripts handle the category carousel, the product image gallery and checkout behaviour.
Discount badges: the generic "Sale!" flag is replaced by a computed percentage. For variable products, the badge shows the biggest price drop across all variations.
Kenya-only checkout: selling is restricted to Kenya through WooCommerce's own setting, which leaves a single pre-selected country. Hiding the country field instead does not work reliably, because WooCommerce re-requires it on every request and first-time customers reached checkout with an empty value. Checkout is also collapsed to one address, with the coupon prompt, order notes and unused fields removed, and a local pickup option that hides the address fields.
M-Pesa Paybill gateway: a custom plugin extending WooCommerce's payment gateway class. The customer pays a delivery fee to the Paybill upfront and enters the M-Pesa transaction code, which is validated on the server. The order then moves to Processing and the balance is paid on delivery. Shop pickup skips the upfront fee. The code is stored on the order and shown in the admin order screen and in order emails.
Catalogue data: products were prepared as WooCommerce CSV and imported in bulk, with brands, SKUs, categories and sale prices.
Workflow: local development in Docker, a Git-based staging site for client review, then production.
The client bought a Truehost web hosting package, and I handled the whole hosting process: the domain and hosting setup, WordPress and WooCommerce configuration, deploying the theme and gateway, and setting up WhatsApp chat and ordering.
I also made further configuration, theme and checkout changes directly on the server.
Building for one market is mostly about removing things. Most of the checkout work was deleting what a Kenyan shopper does not need, and the platform pushes back when you try it from the front door: WooCommerce enforces some fields at a level that CSS and field tweaks cannot override, so working with its own settings was more reliable than working around them.
A manual Paybill flow with a validated transaction code keeps payment simple and free of third-party API dependencies, and the code on each order gives the shop something to match against its M-Pesa statement. Automatic confirmation, for example through the Daraja API, would be a natural next step.


Gift