Skip to content

Releases: verbb/wishlist

3.0.3

14 Sep 05:13
Compare
Choose a tag to compare

Fixed

  • Fix unnecessary duplicates when purging lists.
  • Fix an inconsistency when purging empty lists, where items still exist, but no longer relate to an element.

2.0.13

14 Sep 05:11
Compare
Choose a tag to compare

Fixed

  • Fix unnecessary duplicates when purging lists.
  • Fix an inconsistency when purging empty lists, where items still exist, but no longer relate to an element.

3.0.2

07 Sep 11:58
Compare
Choose a tag to compare

Fixed

  • Fix Wishlist summary not appearing in user profile in the control panel.
  • Fix adding an item as a duplicate not working correctly.

3.0.1

21 Jul 00:28
Compare
Choose a tag to compare

Added

  • Add listTypeHandle as a query param for fetching items.
  • Add Craft Teams support for permissions.

Changed

  • Update English translations.
  • Clearing a list after adding to the cart is only allowed if the list is the owners.

Fixed

  • Fix an error when checking if an item is in a list.
  • Fix an error when editing lists on the front-end for logged-in users.
  • Fix an error for guests creating lists from the front-end.
  • Fix an error when creating new items without a linked element.
  • Fix list permissions enforcement for adding items to a cart from another users list.

2.0.12

21 Jul 00:24
Compare
Choose a tag to compare

Fixed

  • Fix an error when editing lists on the front-end for logged-in users.

2.0.11

18 Jun 06:15
Compare
Choose a tag to compare

Changed

  • Update English translations.
  • Clearing a list after adding to the cart is only allowed if the list is the owners.

Fixed

  • Fix an error for guests creating lists from the front-end.
  • Fix list permissions enforcement for adding items to a cart from another users list.

3.0.0

18 May 13:31
Compare
Choose a tag to compare

{warning} This is a major version with some breaking changes. Be sure to read our Upgrading from v2 guide.

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. Using params 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 bulk list actions for add/remove/toggle/update, to perform tasks on multiple lists at once.
  • Add the ability to change the owner user for a list in the control panel.
  • Add the ability to duplicate a list from the front-end.
  • 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.
  • Add the ability to attach a PDF to the share email.
  • Improve item query performance.
  • Add item.element eager-loading.
  • Add list.items eager-loading.
  • Add trashedElement element query param for items.
  • Add the ability to populate cart line item options from list or item custom fields.
  • Add ability to set a custom email template when sharing a list.
  • Add support for items to pick any element type when editing via the control panel.
  • Add Items:: EVENT_MODIFY_SUPPORTED_ELEMENT_TYPES event.
  • Update List Type custom fields to support UI elements and other field layout changes.

Changed

  • Now requires PHP 8.2.0+.
  • Now requires Craft 5.0.0+.
  • 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 to listType.
  • Item queries by default now don’t return items where the linked element has been trashed or deleted.
  • PDFs now support using the current site’s locale language and formatting.

Fixed

  • Fix duplicating lists (via “Save as a new list”) not working.

Removed

  • Remove listTypeId parameter for managing items. Use listType instead.
  • Remove listTypeHandle parameter for managing items. Use listType instead.
  • Remove \verbb\wishlist\services\Items::getItemsForList().
  • Remove \verbb\wishlist\services\Lists::getList().
  • Remove forceSave parameter on craft.wishlist.lists(). Lists are now created when items are added, rather than when calling this tag.

Deprecated

  • Deprecated craft.wishlist.item(). Use craft.wishlist.items(params) to find items, or craft.wishlist.addItemUrl/toggleItemUrl/removeItemUrl to manage items.

2.0.10

18 May 13:27
Compare
Choose a tag to compare

Changed

  • Update English translations.

Fixed

  • Enforce permissions for lists when managing via the front-end.

3.0.0-beta.2

26 Mar 00:20
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

Fixed

  • Fix an error referring to old content table.

3.0.0-beta.1

04 Mar 09:46
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

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. Using params 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 to listType.

Removed

  • Remove listTypeId parameter for managing items. Use listType instead.
  • Remove listTypeHandle parameter for managing items. Use listType instead.
  • Remove \verbb\wishlist\services\Items::getItemsForList().
  • Remove \verbb\wishlist\services\Lists::getList().
  • Remove forceSave parameter on craft.wishlist.lists(). Lists are now created when items are added, rather than when calling this tag.

Deprecated

  • Deprecated craft.wishlist.item(). Use craft.wishlist.items(params) to find items, or craft.wishlist.addItemUrl/toggleItemUrl/removeItemUrl to manage items.