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
My role
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 I 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 I proved it

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. I caught a pricing conflict before building on top of it, and fixed a gap from the first phase 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

Got something your theme or apps can’t do?

Tell me what you are trying to build or fix. The quote form takes about a minute, and I reply within 24 hours with honest next steps, even when the answer is that you do not need me.

What can I help with?

You will hear back within 24 hours.

Step 1 of 4
What can I help with?