From c0427d69564ab6ba43c0c55b717753b53ae6e663 Mon Sep 17 00:00:00 2001 From: jamey Date: Tue, 24 Feb 2026 22:58:41 +0000 Subject: [PATCH] fix add-to-cart button not submitting in shop mode The button type condition checked @mode == :live but ThemeHook sets mode to :shop, so the button rendered as type="button" (doing nothing). Changed to @mode == :preview to match the existing phx-click pattern. Co-Authored-By: Claude Opus 4.6 --- lib/berrypod_web/components/shop_components/product.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/berrypod_web/components/shop_components/product.ex b/lib/berrypod_web/components/shop_components/product.ex index 25a3f69..4670e7f 100644 --- a/lib/berrypod_web/components/shop_components/product.ex +++ b/lib/berrypod_web/components/shop_components/product.ex @@ -1525,7 +1525,7 @@ defmodule BerrypodWeb.ShopComponents.Product do ~H"""