1. Home
  2. Work
  3. Custom photobooks

A paid membership the cart gets right

Members save 40% across the store. The cart now shows what joining is worth, keeps every price right as items change, and tracks each member’s lifetime savings.

Client
Photobook brand with a paid membership
Market
Mexico, Spanish store
Who built it
Hafiz, sole developer
When
Aug 2026
CartMember pricefree shipping at 70%Membersaves 40%

The problem

Membership pricing is easy on a product page and hard in a cart. Every add, remove and join has to keep prices, savings and the free shipping bar correct without a page reload, and without disturbing the photobook designs customers build in a third party editor.

What was built

  1. Four cart states: below break-even, join, joined with live savings, and member with lifetime savings.
  2. A lifetime savings counter kept by two Shopify Flow workflows, adding on paid orders and subtracting on refunds.
  3. Product page price and join blocks, switched on per product with a single tag.
  4. A free shipping bar that rounds to whole pesos, and a guard that stops a membership being bought twice.

How it was proved

17/17live tests passed on the cart page and drawer
14photobook design fields protected byte for byte
1real order and refund used to prove the counter

The result

Live, then extended to product pages in a second phase. A pricing conflict was caught before anything was built on top of it, and a gap from the first phase was fixed at no charge.

“Hafiz built out a set of custom cart drawer blocks for our membership program ... Everything works the way we spec’d it. He also set us up properly with GitHub instead of editing theme files directly, which I appreciated.”
★★★★★Store owner, Mexico · Fiverr, Aug 2026
Contact

Tell HFM Dev what your store needs.

Book a free 30 minute call, or send the quote form, which takes about a minute. Every request is read by Hafiz himself and answered within 24 hours, with honest next steps, even when the answer is that you do not need HFM Dev.

What can HFM Dev help with?

You will hear back within 24 hours.

Step 1 of 4
What can HFM Dev help with?