improve cart recovery: product links in email, persistent session cookie
All checks were successful
deploy / deploy (push) Successful in 3m32s

- add product_id to order_items (migration + schema + create_order)
- cart recovery email now includes a direct product link per item
- extend session cookie max_age to 7 days so carts survive browser restarts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-24 13:12:41 +00:00
parent 2f4cd81f98
commit 61887b9d5b
7 changed files with 69 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
defmodule Berrypod.Repo.Migrations.AddProductIdToOrderItems do
use Ecto.Migration
def change do
alter table(:order_items) do
add :product_id, :string
end
end
end