The Reorder from History plugin lets customers rebuild a past order into their active cart in one click, or selectively by picking individual lines and adjusting quantities. It exposes a two-phase Shop API:
previewReorder: a transaction-free query that returns, for each source line, the resolved
variant, stock status, historical unit price (what the buyer paid last time), current catalog
price, and an indicative total. Safe to call repeatedly as the buyer edits quantities.addReorderToActiveOrder: an atomic mutation that commits the chosen lines to the active
order via Vendure core's bulk addItemsToOrder primitive. The full
OrderItemPriceCalculationStrategy chain runs (including your price-rules, packaging-units,
quoted-price and gift-card wrappers), so reordered lines automatically get the correct
customer-specific pricing.This page is part of the Vendure Platform documentation. Access requires a valid Vendure Platform license.