- Added Craft 5 / Craft Commerce 5 compatibility
spicyweb\reorder\enums\LineItemStatus
andspicyweb\reorder\enums\OrderStatus
are now proper enums, rather than abstract classes
- Removed Craft 4 / Craft Commerce 4 compatibility
- Fixed a
TypeError
that occurred if a non-AJAX reorder request failed
- Added Craft 4 compatibility
- Added Craft Commerce 4 compatibility
- Service methods that would previously take a cart/order ID as an argument now take a cart/order element instead
- Removed Craft 3 compatibility
- 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
- update requirement for commerce 3
- Add ability to only reorder certain items - thanks @ttempleton
- New Icon
- Add issue template
- Now sets
reorder.unavailable
session variable, for accessing unavailable line items in templates, when redirecting after form submit (thanks @engram-design)
- Now sets
reorder.unavailable
session variable, for accessing unavailable line items in templates, when redirecting after form submit (thanks @engram-design)
- Updated usage of Craft Commerce
resolveLineItem()
method for changes made in Commerce 2.0.0-beta.13 regarding setting item quantities and notes
- Added
hasAvailableLineItems()
service method to check whether an order has any available line items - Added new order status
OrderStatus::NoItemsAvailable
- 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
- 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
- Fixed error when a line item's note is null (thanks @engram-design)
- Ensure lineItemStatus takes into account Live status (thanks @engram-design)
- Initial release