Overview
Coopl sells industrial measuring and heating parts: thermocouples, RTD sensors, thermostats, controllers, heating elements and cables. Its first shop ran on WordPress and WooCommerce. The old site had been hacked, and the owner no longer wanted WordPress, so I rebuilt the whole shop in Laravel.
It was a clean rebuild: none of the old code came across. Only the data did — products, orders, posts and redirects — and every image was checked for hidden code before it was allowed in.
The hard part was moving without losing Google. Every page keeps its old address, title and description, so to Google the shop simply carried on.
Tech Stack
- Laravel 13 / PHP 8.4 — the shop itself, running on ordinary shared hosting
- Filament — the admin panel for products, orders, prices, SMS, payments and redirects
- Livewire + Tailwind CSS (Vite) — a fast, right-to-left Persian storefront
- MariaDB — products with variants, stock and price-by-the-meter cables
- PHPUnit — 227 tests covering checkout, payment, SEO and the import scripts
Features
- Catalogue with categories, filters by type, sheath length and diameter, variants and stock
- Cart and checkout: pay online, or send the order and the shop calls back
- Login with a one-time SMS code or email; order texts to the customer and the shop
- Made-to-order forms for custom thermocouples, RTD sensors and heating elements
- Blog and pages written as Markdown files, 74 articles brought over from the old site
- Product feed for a price-comparison site, with a signed request check
- Persian calendar dates, prices in Toman, and a bulk price-change tool in the admin
Outcome
The new shop went live on the client’s own domain in October 2026, replacing the hacked WordPress site on the same domain.
- 2,026 old addresses checked by a script before the switch — each one opens the same page or redirects to it, none to a “not found”
- The old redirects, Yoast titles and descriptions all carried over
- A new sitemap that lists every product with its picture (the old one listed none)
- Product data for Google: price, stock, brand and breadcrumbs
- The preview copy was kept out of Google, so it never competed with the real shop