Version 3.0.0

May 1, 2024

Added

  • Added Craft 5 / Craft Commerce 5 compatibility

Changed

  • spicyweb\reorder\enums\LineItemStatus and spicyweb\reorder\enums\OrderStatus are now proper enums, rather than abstract classes

Removed

  • Removed Craft 4 / Craft Commerce 4 compatibility

Version 2.0.1

January 9, 2024

Fixed

  • Fixed a TypeError that occurred if a non-AJAX reorder request failed

Version 2.0.0

May 4, 2022

Added

  • Added Craft 4 compatibility
  • Added Craft Commerce 4 compatibility

Changed

  • Service methods that would previously take a cart/order ID as an argument now take a cart/order element instead

Removed

  • Removed Craft 3 compatibility

Version 1.1.5

December 14, 2020

Fixed

  • Fixed an issue where reorders could fail at the point of comparing the current user's ID with the order customer's user ID, if one of them was set as a string instead of an integer

Version 1.1.4

February 7, 2020

Changed

  • update requirement for commerce 3

Version 1.1.3

July 30, 2019

Added

  • Add ability to only reorder certain items - thanks @ttempleton
  • New Icon
  • Add issue template

Version 1.1.2

December 6, 2018

Added

  • Now sets reorder.unavailable session variable, for accessing unavailable line items in templates, when redirecting after form submit (thanks @engram-design)

Version 1.1.1

November 4, 2018

Fixed

  • Updated usage of Craft Commerce resolveLineItem() method for changes made in Commerce 2.0.0-beta.13 regarding setting item quantities and notes

Version 1.1.0

October 28, 2018

Added

  • Added hasAvailableLineItems() service method to check whether an order has any available line items
  • Added new order status OrderStatus::NoItemsAvailable

Fixed

  • No longer tries to delete line items on a new cart when set not to retain cart
  • Now ensures that, if the cart is new, items have been added to it before saving it

Version 1.0.2

October 25, 2018

Fixed

  • Ensure cart has been saved (and therefore has an ID) before attempting to resolve cart line items; fixes error in newer Craft Commerce 2 beta releases

Version 1.0.1

October 20, 2018

Fixed

  • Fixed error when a line item's note is null (thanks @engram-design)
  • Ensure lineItemStatus takes into account Live status (thanks @engram-design)

Version 1.0.0

September 25, 2018
  • Initial release