Fixed a cart reload loop and moved a florist to a new theme by Hafiz Fahad MunirFixed a cart reload loop and moved a florist to a new theme by Hafiz Fahad Munir

Fixed a cart reload loop and moved a florist to a new theme

Portfolio project
Hafiz Fahad Munir
The Peachtree Petals homepage, live on the new theme.
The Peachtree Petals homepage, live on the new theme.
Peachtree Petals is a florist in Atlanta that depends on scheduled and same day deliveries. The owner had a new theme ready but could not launch it: on the new theme, the delivery app made the cart flash and reload over and over. I found the cause inside the app's own code, fixed it with one small change to the theme, and moved the store over without touching the app.

The challenge

Customers choose a delivery date and time in the cart through a delivery app. On the new theme the date picker kept vanishing and the page kept reloading. To stop it the owner had switched the app off, which meant customers could not choose a delivery date at all, so the new theme could not go live.

What I found

I traced the loop inside the app's code. Its health check reloaded the page whenever its widget went missing, and its reload guard reset every time the widget came back, so the reloads never stopped. It only broke on the new theme because the new cart form had a different id, so the app's fallback could not find where to put its widget.

What I built

One stable placeholder in the cart that the app can always mount into. No change to the app was needed.
The florist's 4 custom order fields, moved to the new theme: the occasion, the note on the card, comments for the florist and where to leave the order.
A same day delivery countdown that knows the order cut-off, skips weekends and stays right when daylight saving time changes.
A write-up of the bug for the delivery app's own developers.
The cart on the new theme, with the 4 custom order fields carried over and the delivery app's Shipping or Pickup choice in place.
The cart on the new theme, with the 4 custom order fields carried over and the delivery app's Shipping or Pickup choice in place.
With Shipping chosen, the delivery app shows its cut-off times and the date picker. This is the widget that kept disappearing before the fix.
With Shipping chosen, the delivery app shows its cut-off times and the date picker. This is the widget that kept disappearing before the fix.

Testing

In testing, the cart reloaded 4 times in a row on the new theme. After the fix it reloaded 0 times, and the delivery date, time and store all reached checkout.

Results

Cart reloads in testing: 0, down from 4.
Custom order fields carried over: 4.
Changes needed in the delivery app: none.
The new theme went live with deliveries working, and the delivery app is switched back on.
Built with: Liquid, JavaScript, a theme migration and a delivery app integration.
Client: Peachtree Petals, florist, Atlanta, United States, 2026.

0 likes · 1 view · Nov 25, 2026

Found why a delivery app kept reloading a florist's cart, fixed it with one theme change, then finished the theme move and added a same day countdown.

Tags