Repository navigation
0.11.0 - 2026-11-11
Copies of the buyer's order emails, a language for the shop's own order email,
and fixes to stock limits and order email delivery.
Added
- Copies of the buyer's order emails (#117): each buyer email can also go,
unchanged, to the addresses inshop_order_email_copy_recipients(set under
Order emails on the shop settings page), with replies going to the buyer.
A copy has its own once-per-order mark, so a copy that fails is retried
without mailing the buyer again. - A language for the shop's order email:
shop_order_email_languagesends
shop_order_receivedin a chosen enabled language instead of the site's
primary one.
Fixed
update_cart_item/2checks stock against the line as stored, read under the
cart lock. A cart page left open on an older, larger quantity could raise a
line past the stock, or have a raise silently ignored. A stock refusal no
longer rolls back a transaction the caller has open.- An order email is sent once even when two deliveries overlap or the caller
holds an old copy of the order. A delivery claims the email on the stored
order before it sends; a second one sends nothing and, as a job, comes back
when the claim has run out.OrderEmails.deliver/2can now answer
{:snooze, seconds}. - A queued order email is no longer sent once the order is cancelled or
refunded, so a refund before the queue ran no longer confirms the order. - A Legacy product built in memory is no longer counted against a Warehouse
item. Only catalogue products have stock.