Releases: verbb/wishlist
Releases · verbb/wishlist
3.0.0-beta.2
Fixed
- Fix an error referring to old content table.
3.0.0-beta.1
Added
- Add the ability to create a list when adding or toggling an item in one request.
- Add
newList
parameter when managing items, to force-create a new list, even if one for the chosen type exists (and add the items to that list). - Add
craft.wishlist.getUserList(params)
to quickly get the current users list. Usingparams
allows you to specify other list types, and more. - Add
list.addItemUrl(element, params)
list.toggleItemUrl(element, params)
list.removeItemUrl(element, params)
. - Add
craft.wishlist.addItemUrl(element, params)
craft.wishlist.toggleItemUrl(element, params)
craft.wishlist.removeItemUrl(element, params)
. - Add support to update multiple items at once.
- Add
List::isEmpty()
to check if there are any items in the list. - Add
List::getItem(element, params)
to get a specific item, based on a given element and any additional query params. - Add
List::hasItem(item)
to check if a list has a specific item. - Add support for
Item::getInList(list)
to pass in a specific list to check.
Changed
- Now requires PHP
8.2.0+
. - Now requires Craft
5.0.0-beta.1+
. - All URL-based actions now have their query parameters encoded to prevent tampering with.
craft.wishlist.getInUserLists()
now accepts an element as its parameter, not just an elementId.- Change
listTypeHandle
parameter for managing items tolistType
.
Removed
- Remove
listTypeId
parameter for managing items. UselistType
instead. - Remove
listTypeHandle
parameter for managing items. UselistType
instead. - Remove
\verbb\wishlist\services\Items::getItemsForList()
. - Remove
\verbb\wishlist\services\Lists::getList()
. - Remove
forceSave
parameter oncraft.wishlist.lists()
. Lists are now created when items are added, rather than when calling this tag.
Deprecated
- Deprecated
craft.wishlist.item()
. Usecraft.wishlist.items(params)
to find items, orcraft.wishlist.addItemUrl/toggleItemUrl/removeItemUrl
to manage items.
2.0.9
Added
- Add
currentSite
as a variable when rendering a PDF. - Add the ability to order list items by their linked-to element’s title with
orderBy(‘elementTitle asc’)
.
Changed
- Bump
dompdf/dompdf
requirement to2.0.4
.
Fixed
- Fix order of operations when uninstalling the plugin.
2.0.8
Changed
- PDFs now support using the current site’s locale language and formatting.
Fixed
- Fix being unable to delete a disabled list.
2.0.7
Fixed
- Implement
Element::trackChanges()
for Blitz compatibility.
2.0.6
Added
- Add
reference
to the List element index columns.
Fixed
- Fix when duplicating a list, a new reference wasn’t generated.
2.0.5
Added
- Add empty linked element checks to
wishlist/items/cleanup-orphaned-items
Changed
- Only admins are now allowed to access plugin settings
Fixed
- Fix Wishlist list type permissions not using UIDs.
- Fix being unable to customise item element index columns in the control panel, when editing a list.
1.4.18
Added
- Add support for DomPDF 2.0+ and Commerce 3.4.21+.