Associazione Cucciolo: a website rebuilt without stopping donations
A complete rebuild of the website and charity shop of an association that supports families of premature babies.
Ten weeks from plan to go-live, with donations and subscriptions safe throughout.
- My role
- Project manager for the rebuild and WordPress/WooCommerce developer
- Duration
- Rebuild July–September 2026, ongoing maintenance since
- Industry
- Non-profit, donations
Ten weeks, from plan to go-live
- Step 1July: site analysis and an eight-phase plan
- Step 2July: new hosting and staging environment
- Step 3August: design system and institutional pages
- Step 4September: one template replacing 27 product pages
- Step 512 September: go-live on the new hosting
The context
Associazione Cucciolo ODV, in Bologna, supports families of premature babies. Its website is also a charity shop: every purchase is a tax-deductible donation, so the donor’s tax code and the receipt description must always be correct.
The project combined three needs: rebuilding the website and shop around a new SEO and design strategy, cleaning up code layered over the years, and moving hosting without losing donors’ subscriptions.
What I did
- Running the project. An eight-phase plan, with milestones, decisions and open points tracked through to go-live, and the association’s staff, SEO specialist, graphic designer and photographer aligned on a single plan. When guidance diverged, a clear rule applied: SEO decided structure and headings, design decided the look.
- A rebuild that didn’t stop the shop. Isolated staging, with payments switched off and emails blocked; content frozen during the work; the shop closed only for the migration window, with test orders on reopening.
- The rules WooCommerce doesn’t cover on its own. One-off and monthly donations of any amount, linked to the chosen project; lottery tickets; stock shared across products; reports and exports for the association’s staff.
- Receipts that are always correct. Each order’s tax category, which determines the receipt description, now stays stable even when a category is renamed.
The results
- 10weeks from plan to go-live, with the shop closed only for the migration window
- 62/62donors’ saved payment methods preserved through the hosting move
- 1,395past orders reclassified, so every receipt always carries the correct description
How I worked
Measure first, then fix, and nothing counts as solved until it’s verified on the live site. One change per release, each documented. I used Claude Code to write the code within a precise protocol: review, my approval, one change at a time. Architecture, decisions, final verification and responsibility for releases stayed with me.
Have a project with similar needs?
Technical details
Key interventions
- Tax classification of orders: the category was stored as text and calculated only once, so renaming one broke the history. The reference was moved to the category’s stable ID, with an idempotent recalculation tool that resumes on its own after a timeout: 1,395 orders reclassified.
- A fatal error hidden behind a “payments problem”: the WooPayments screen wouldn’t load and support pointed to an account connection issue. Logs and backtraces revealed the real cause: a gateway filter also running on REST requests, where no cart exists. Fixed with a context guard.
- Donations compatible with caching and Italian number formats: the session-bound security token was ending up in the cached page. Replaced with a request-origin check; the parser accepts 12,50 and 12.50 and rejects ambiguous amounts such as 1.234,56.
- Security review: nonces, validation and escaping on the reports page, formulas neutralized in .xlsx exports, removal of unused public code.
- Migration with live subscriptions: starting from the production database and rebuilding content on top, rather than a merge that could have caused silent errors. Eight systematic comparisons between the two databases; 62 payment tokens preserved.
What the plugin does
Donations through Name Your Price and Subscriptions with server-side validation; the association’s projects as a custom post type keeping the old page URLs; a lottery with one row per ticket in a dedicated table; stock shared across product groups with a recursion guard; the /shop/category/product/ structure required by the SEO strategy; report, tools and stock pages with separate permissions for staff and administrators.
By the numbers
From version 1.1.1 to 1.27.1: 48 versions between 23 July and 5 November 2026, 53 commits since July, 4,232 lines of PHP in 12 files, 70 active hooks. As of 5 November 2026: 42 active subscriptions and 8 automatic card renewals completed after the migration. Integrations: WooCommerce Subscriptions, WooPayments, PayPal Payments, Name Your Price, Custom Product Addons, Rank Math, LiteSpeed Cache.
Technologies
- PHP
- JavaScript
- MySQL
- WordPress
- WooCommerce
- WooCommerce Subscriptions
- WooPayments
- PayPal Payments
- Git