E-commerce 0.11.0: Order email copies for your team and order emails sent exactly once
E-commerce 0.11.0 lets your team get copies of the buyer’s order emails, sends the shop’s own order notification in the language you choose, and makes sure an order email goes out exactly once, and never after the order was cancelled.
Copies of order emails for the shop
Each email the buyer receives about an order can now also go, unchanged, to a list of addresses you set under Order emails on the shop settings page (shop_order_email_copy_recipients). Replies to a copy go to the buyer, so whoever handles the order can answer directly. Each copy is tracked separately, so a copy that fails is retried without mailing the buyer a second time.
The shop's Order emails settings with the new "Copies of the buyer's emails" field.
The email that tells the shop an order arrived (shop_order_received) can now be sent in any enabled language instead of always the site’s primary one, with shop_order_email_language. Useful when the shop is run in a different language from the one most customers buy in.
Order emails sent once, and only when they should be
Two deliveries of the same order email running at once, or a caller holding an old copy of the order, could send the email twice. A delivery now claims the email on the stored order before sending; a second one sends nothing and tries again later if the first never finished. A queued order confirmation is also dropped if the order was cancelled or refunded in the meantime, so a refunded customer no longer receives a confirmation afterwards.
Stock limits that hold
Changing a quantity in the cart now checks stock against the cart line as stored, under the cart lock. A cart page left open on an old, larger quantity could push a line past the stock or have a valid change ignored. A refusal for stock no longer rolls back a transaction your own code had open, and products that are not from the catalogue are no longer counted against Warehouse stock.
Upgrading
No migration. If you call OrderEmails.deliver/2 yourself, it can now also return {:snooze, seconds} when another delivery holds the claim.
Full release notes: E-commerce 0.11.0
0.11.0 · 11 November 2026
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 in
shop_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_languagesendsshop_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.
E-commerce 0.11.0. Install or update: {:phoenix_kit_ecommerce, "~> 0.11"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.