Rouge Pilates
A bilingual WordPress website, Mindbody booking and a custom friend-invitation plugin.
- Type of work
- WordPress website & custom plugin
- Year
- 2025–2026
- Technologies
- WordPressPHPMindbodyPolylangJavaScriptCustom themeMindbody WebhooksVoIP.ms SMS APIPHPUnit
- Live site
- rougepilates.com ↗︎
Website & Mindbody integration
The challenge
Rouge Pilates is a Pilates studio in Gatineau, Québec, that runs its schedule, bookings, memberships and payments on Mindbody. The website had to sell and book directly through Mindbody while still looking fully like the Rouge brand, in French and English. Then the studio opened a second location with Reformer classes, and the site had to grow from one studio and one method into two studios, two methods and one consistent brand.
My role
Built and maintain the site as a custom WordPress theme on top of Blocksy, with hand-coded PHP templates for every main page. The core of the project is the Mindbody integration: the live class schedule, customer login, and every class pack, membership and gift card on the pricing page are Mindbody widgets placed inside Rouge-designed pages, so visitors book and pay without leaving the site. For the Rouge 2.0 update I redesigned the homepage for the new Labrosse studio, created six new pages, rebuilt the pricing page around both studios and both methods, and updated navigation and the footer for two locations.
The solution
Mindbody runs through its official Healcode widgets, connected to the studio's Mindbody site and Branded Web identity. The booking page embeds the Mindbody schedule, where visitors filter by location, class type and instructor and reserve a spot. The "Se connecter" button in the header is a Mindbody account widget, so clients sign in to the same account they use in the app. The pricing page holds 14 Mindbody purchase widgets: 6 class packs, 7 memberships and a gift card, each linked to its own service in Mindbody. Mindbody loads these buttons asynchronously and rewrites the markup around them, so I wrote a MutationObserver script that waits for each button to render and then adds its validity label, like "Valid 3 months", and placed other badges outside the widgets so they are never overwritten. Scoped CSS restyles the Mindbody buttons in Rouge colors, and every button label switches between French and English through Polylang.
From studio discovery to booking
Explore the studios
Browse classes and locations in French or English.
Choose a class or plan
Filter the schedule or compare packs and memberships.
Continue in Mindbody
Healcode widgets handle the account, reservation or purchase.
Manage the next visit
Use the same Mindbody account on the website and app.
Booking and purchases follow separate Mindbody widget paths; WordPress presents the content.
For the studio team
Prices, passes, memberships and the class schedule are all managed in Mindbody, so whatever the studio changes there is what the site shows and sells, with no website edits needed. In WordPress, new signups from the landing page form appear in a "Rouge Pilates" admin page and a dashboard widget, where they can be viewed, deleted or exported to CSV, and FAQ entries are edited like regular posts.
Key features
- Mindbody schedule embedded on the booking page, with location, class and instructor filters
- Mindbody customer login in the site header
- 14 Mindbody purchase widgets: class packs, memberships and a gift card
- MutationObserver script that labels Mindbody buttons after they load
- Mindbody buttons restyled in the Rouge brand, labels in French and English
- Custom WordPress theme with PHP page templates and Polylang
- Six new pages and a homepage redesign for the second studio
- FAQ custom post type, and a signup form with its own database table and CSV export
Gallery
Outcome
Visitors can discover the studio, compare offers, buy a pass or membership and book a class, all on one bilingual, on-brand website, while the studio manages everything in Mindbody. The site now presents two studios and both Mat and Reformer classes as one brand. After the first launch, the studio came back to me for the Rouge 2.0 update.
Better Together — invitation automation
Automated friend invitations for a Mindbody studio, built as a custom WordPress plugin.
The challenge
Rouge Pilates, a Pilates studio in Gatineau, Québec, launched Better Together: an offer where a customer buys a package and shares a class with a friend. The studio wanted each buyer to invite a friend by text, the friend to sign up through its existing Mindbody registration, and staff to keep full control of class credits, without a new booking system or changes to checkout.
My role
Built a custom WordPress plugin in PHP that connects the studio’s website, Mindbody and its existing SMS number through VoIP.ms. The plugin includes purchase verification, private invitation links, an SMS queue and a French dashboard for staff.
The solution
The automatic workflow detects a purchase, verifies the sale and emails the buyer a private invitation link. The buyer enters a friend’s number, and the plugin sends a personal invitation from the studio’s own SMS number. The friend registers through the official Mindbody form on a branded page. Staff review the registration and add the class credit in Mindbody.
For the studio team
A French dashboard brings together purchases, invitations, SMS status, registrations and credits. Staff add credits in Mindbody and close invitations in one click. A reminder list highlights friends who have not registered after two days, with a ready-to-copy message for the buyer. A manual mode uses the same database and screens; the studio launched with it while waiting for Mindbody API access.
Built for reliability and privacy
- Verified purchases: signed webhooks are checked against the Mindbody API, and each sale is recorded once.
- No double texts: the SMS queue retries failures without resending when the outcome is uncertain, and enforces a daily limit and an opt-out list.
- Private invitations: 256-bit tokens are stored only as hashes. Invitations require a verified purchase, with a fixed allowance per purchase.
- Credits stay with staff: people add credits in Mindbody, so an incorrect match cannot automatically give a class to the wrong person.
- Privacy: phone numbers are masked in logs and anonymized after a retention period. Invitation pages are excluded from search engines and caches, and credentials never reach the browser.
- Safe updates: versioned database migrations preserve existing data.
- Tested: 120 automated tests cover the flow, security checks and SMS queue, alongside live tests on real phones.
Inside the plugin
Source-based demonstrations adapted from the plugin’s PHP templates and original CSS, using fictional data. These are illustrative previews, not production screenshots. The Mindbody registration widget and live SMS services are not connected in these previews.
Status
SMS sending and the invitation flow are live-tested. Automatic purchase verification is built and waiting for Mindbody’s live API approval.













