E-commerce 6.0.9

6 March 2026

CRITICAL FIXESDISCOUNT SYSTEMINVENTORYREVIEW SYSTEMFRONTEND

E-commerce v6.0.9

Release Date: March 6, 2026 Tags: CRITICAL FIXES, DISCOUNT SYSTEM, INVENTORY, REVIEW SYSTEM, FRONTEND

Overview

Version 6.0.9 is a targeted bug-fix release addressing issues discovered after the 6.0.6 overhaul. It corrects a gap in the discount records left by the new discount schema, fixes inventory reservation on physical product orders, and resolves several frontend UX issues in the checkout and product review flows.

Update Instructions

After updating, run the following command in terminal:

pnpm updator

Fixed

Discounts created before 6.0.6 were all rejected

  • Fixed existing discounts having no discount type after the schema change introduced in 6.0.6, which made order creation reject every pre-existing discount as invalid. Percentage is now the default, and an update sets every discount without a type to percentage.
  • Fixed a fixed-amount discount larger than the order subtotal producing a negative total, which was then charged unchecked. The discounted subtotal is now floored at zero before tax and total are calculated.

Stock could be reserved twice on a retried order

  • Fixed stock being taken twice when an order creation request was retried, for example after a timeout, because nothing checked whether the same order had already reserved it. A repeat of the same customer, product and pending order within a minute no longer decrements stock again.

Reviews

  • Fixed any signed-in customer being able to review any product without buying it. A completed order containing the product is now required before a review is accepted.
  • Fixed a customer being able to leave more than one review on the same product. One review per customer per product is now enforced, and the endpoint returns a clear error if a review already exists.

Customers could not see their own orders

  • Fixed the customer order detail returning completed orders only, so a customer could not view their own pending or cancelled orders. The status filter has been removed.

Checkout

  • Fixed the shipping cost not being recalculated when the delivery address was changed during checkout.
  • Fixed adding or removing a basket item clearing an applied discount. A discount now survives basket changes unless the discounted product itself is removed.

Product reviews on the storefront

  • Fixed the star rating resetting to zero after a review was submitted, with the form still offering "Submit" rather than "Update". The form now reflects the submitted state immediately.
  • Fixed the average rating on the product page not refreshing after a review was submitted or updated. It is now re-read after any review change.

Smaller fixes

  • Fixed an empty discount code being accepted, with the server silently returning no discount. It is now refused.
  • Fixed the order confirmation email omitting the shipping address and estimated delivery date for physical products. Both are now included.
  • Removed a shipping cost filter on the admin order list that was accepted but never applied to the query.