What you set up
- Button on the order page: on or off.
- Button in the order list: on or off.
- Cart before reordering: keep what is in it and add, or empty it first.
What customers see
- A small button next to the "view" button of each order, and a button at the top of each order page.
- After the click they land on the cart. Products that are no longer sold, or whose option choice is gone, are skipped and named in a notice.
- The cart's own rules still apply: minimum quantity (a product is never added below its minimum), stock warnings, prices as they are today.
- All texts are in a language file you can translate.
Safe
- Only the customer's own placed orders can be reordered. Another customer's order number, an order that was never placed, a plain link visit and a guest all add nothing.
- No database tables.
Good to know
- Products with an uploaded-file option are skipped (the old file cannot be reused).
- Prices are today's prices, not the old order's.
- Themes that print the order list or order page from their own template may need the button placed by hand.
- Tested on 2.3, 3.0, 4.0 and 4.1 with the real admin installer (46, 48, 51 and 51 checks). Not checked by clicking in a real browser.