- Improve
list.getItem()
performance when not providing additional query params to filter by.
- Fix unnecessary duplicates when purging lists.
- Fix an inconsistency when purging empty lists, where items still exist, but no longer relate to an element.
- Fix Wishlist summary not appearing in user profile in the control panel.
- Fix adding an item as a duplicate not working correctly.
- Add
listTypeHandle
as a query param for fetching items. - Add Craft Teams support for permissions.
- Update English translations.
- Clearing a list after adding to the cart is only allowed if the list is the owners.
- 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.
{warning} This is a major version with some breaking changes. Be sure to read our Upgrading from v2 guide.
- 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 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.
- 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 tolistType
. - 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.
- Fix duplicating lists (via “Save as a new list”) not working.
- 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
craft.wishlist.item()
. Usecraft.wishlist.items(params)
to find items, orcraft.wishlist.addItemUrl/toggleItemUrl/removeItemUrl
to manage items.
- Fix unnecessary duplicates when purging lists.
- Fix an inconsistency when purging empty lists, where items still exist, but no longer relate to an element.
- Fix an error when editing lists on the front-end for logged-in users.
- Update English translations.
- Clearing a list after adding to the cart is only allowed if the list is the owners.
- 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.
- Update English translations.
- Enforce permissions for lists when managing via the front-end.
- 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’)
.
- Bump
dompdf/dompdf
requirement to2.0.4
.
- Fix order of operations when uninstalling the plugin.
- PDFs now support using the current site’s locale language and formatting.
- Fix being unable to delete a disabled list.
- Implement
Element::trackChanges()
for Blitz compatibility.
- Add
reference
to the List element index columns.
- Fix when duplicating a list, a new reference wasn’t generated.
- Add empty linked element checks to
wishlist/items/cleanup-orphaned-items
- Only admins are now allowed to access plugin settings
- 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.
- Added support for item options to be updated when managing items. (thanks @bymayo).
- Add cross-site item management.
- Add support for
siteId
forcraft.wishlist.item
.
- Update
element
GraphQL description.
- Fixed PHP errors that could occur when executing GraphQL queries.
- Add batch processing for purge list/items commands.
- Fix an error when running Craft's Garbage Collection. (thanks @olivierbon).
- Fix an error when viewing list owners in the control panel.
- Fix an error when deleting a list type.
- Fix multiple list types able to be set as the default.
- Fix an error running
resave
console commands.
- Add missing translations.
- Add resave console command for elements.
- Add checks for registering events for performance.
- Memoize all services for performance.
- Rename base plugin methods.
- Add
archiveTableIfExists()
to install migration.
- Now requires PHP
8.0.2+
. - Now requires Craft
4.0.0+
. - Now supports
dompdf/dompdf:^2.0
. pdfAllowRemoteImages
is nowtrue
by default.
- Fix an error when uninstalling.
- Fix
project-config/rebuild
support.
- Remove deprecated
item
andnotice
from Ajax responses.
- Added support for item options to be updated when managing items. (thanks @bymayo).
- Add cross-site item management.
- Add support for
siteId
forcraft.wishlist.item
.
- Add batch processing for purge list/items commands.
- Add
wishlist/items/cleanup-orphaned-items
. - Show list owners with status and thumbnail in list element index view. (thanks @martyspain).
- Fix items not being removed when pruning lists.
- Add missing English translations.
- Fix an error when trying to update list items.
- Now requires Craft 3.6.0+.
- Fix GraphQL generator issues in some cases (Gatsby).
- Fix when purging lists, not taking into account timezone and comparing UTC dates correctly.
- Fix an error when generating PDFs and custom fonts, where the temporary folder isn’t writable (or created).
- Fix wishlist item title not being set when saving items through ajax requests.
- Fix
craft.wishlist.getInUserLists()
not implemented properly.
- Fix
consolidateListsToUser
only working for default list types. - Fix lack of table prefix for
mergeLastListOnLogin
handling.
- Fix issue where trying to remove or toggle a wishlist item with the
options
param could have no effect. (thanks @benface). - Fix
mergeLastListOnLogin
not respectingallowDuplicates
by allowing duplicates during merging of guest and user lists. - Add
craft.wishlist.getInUserLists()
.
- Add the ability to match existing wishlist items by
itemId
andoptions
when trying to remove or toggle a wishlist item in a list. - Allow custom fields and options to be added when toggling a wishlist item.
- Add notes for list/items when they have no custom fields in the control panel.
- Fix an error with Commerce 3.3+ and DomPDF version collision.
- Fix an error when creating a new list item in the control panel.
- Fix
mergeLastListOnLogin
not correctly merging lists when logging in a user.
- Update
mergeLastListOnLogin
to only merge lists of the same type if they have the same title.
- Fix default list type not saving to project config when first installing the plugin.
- Add
updateItemSearchIndexes
config setting to control updating search indexes for Wishlist items. - Add
updateListSearchIndexes
config setting to control updating search indexes for Wishlist Lists.
- Improve item and list database query performance.
- Fix
craft.wishlist.item
forcing the creation of a new list, when it shouldn’t. - Fix incorrectly showing list items in other users’ lists.
- Fix
lists/add-to-cart
not supporting custom error/success messages. - Fix
lists/share-by-email
not supporting custom error/success messages. - Fix user wishlist’s always showing the currently logged-in user, when editing a user in the control panel.
- When performing any list or item actions from the front end, a flash error/notice is now available with the result. Use
craft.app.session.getFlash('notice')
to output this message when using theurl()
methods or using a<form>
POST submit. - When submitting a form for managing items, you can see a
successMessage
orfailMessage
to modify the flash message returned. This is not available when using theurl()
methods. Be sure to hash the message:<input type="hidden" name="successMessage" value="{{ 'Override Message' | hash }}">
.
- Wishlist queries via GraphQL are now no longer automatically included in the public schema.
{warning} Please note the change in behaviour for
craft.wishlist.item()
has meant that you cannot rely on lists being auto-created anymore on page-load. Ensure anywhere you call{% set list = craft.wishlist.lists().one() %}
you check{% if list %}
before doing anything on the list. Ensure your templates work correctly.
- Add params to
addUrl()
,removeUrl()
andtoggleUrl()
to make it easier to create URLs. - Add listType handle to
craft.wishlist.item()
. - Add
listTypeId
query param to Item queries.
craft.wishlist.item()
no longer automatically creates new lists when the page is loaded, preventing lots of lists being created for guests. Previously as soon as the page loaded with this call, a list would be created for users, meaning lists could get out of control easily. Be sure to double check your templates.
- Fix
optionsSignature
error when updating.
- Guest lists are now (finally) persistent! Using cookies, even when the user closes their browser, their lists are retained for their next visit.
- Add migration for Shortlist plugin for Craft 2.
- Add migration for Upvote plugin.
- Add PDF template handling, to provide an easy way to generate PDF's of your lists and their content. See docs.
- Add Item Options, allowing you to save additional, arbitrary content on items. See docs.
- Add all available config settings to be able to be managed in the control panel.
- Add support for Craft 3.5+ field layouts.
- Add support for multiple tabs for lists.
- Add support for multiple tabs for list items.
- Add support to customise the item element table columns when editing a list.
- Add new tab to user’s account, for all wishlists and items they may own.
- Add
cookieExpiry
config setting. - Add
showListInfoTab
config setting. - Add
pdfFilenameFormat
config setting. - Add
pdfPath
config setting. - Add
pdfAllowRemoteImages
config setting. - Add
pdfPaperSize
config setting. - Add
pdfPaperOrientation
config setting.
- Now requires Craft 3.5+.
- Add
craft.wishlist.plugin
Twig variable, allowing access to plugin services. - Add
lists/update-items
controller action, to enable bulk-updating on list items, similar to a cart. - Add BCC and CC email options when sharing a list by email.
- Add
fields
to share-lists controller action. Allowing additional content to be used in email notifications
- Add ability to remove items from a list when adding to cart.
- Allow
add-to-cart
andshare-by-email
endpoints for lists to be accessed anonymously. - Change add-to-cart behaviour so that it only adds supplied purchasables to the cart - if provided.
- The
update
list action can now be accessed anonymously. (thanks @BrandonJamesBorders).
- Fix type check error when trying to determine list owner.
- Add
wishlist/lists/purge-inactive-lists
console command. - Provide the
list
object to controller actions, to allow usage like{{ redirectInput('lists/{id}') }}
. (thanks @brandonohara). - Add
purgeEmptyListsOnly
andpurgeEmptyGuestListsOnly
config settings.
- Improve error-handling for some template functions, to guard against errors.
- Return list reference on
wishlist/lists/create
. (thanks @BrandonJamesBorders).
- Add
wishlist/lists/update
action to enable list updating from the front-end.
{warning} Please note the deprecation of
item
for Ajax requests. If you're using Ajax to handle the response from add/delete/toggle, please adjust your Javascript code that handles this to useitems
.
- Full item model is now included in Ajax responses for
toggle
requests.
- Fix incorrect return values for add/delete/toggle for Ajax requests.
item
is now deprecated in Ajax responses for add/delete/toggle actions, and will be removed in the next major release. Please adjust your code to instead rely onitems
which is an array of returned Wishlist items. This is because these actions can support multiple items, rather than just a single one.
{warning} Please note the change in default behaviour for
purgeInactiveLists
.
- Change
purgeInactiveLists
to be on by default. This will prevent your wishlists from getting out of control.
- Add
item
model to add/remove ajax actions. - Implement GraphQL for items and lists. See docs.
{warning} Please note the change in default behaviour for
mergeLastListOnLogin
.
- Change
mergeLastListOnLogin
to be off by default. User lists won't be merged automatically, by default.
- Add
resave/wishlist-items
console command. - Add
resave/wishlist-lists
console command.
- Fix potential error when fetching an items list, when it doesn’t exist.
- Return “items” when toggling an item. This will be the item ID and the action taken upon an item ('added' or 'removed').
- Add
action
param to all item and list controller actions
- Fix logging error
Call to undefined method setFileLogging()
.
- Add
mergeLastListOnLogin
, on by default to merge guests’ lists when logging in with existing saved lists.
- Ensure saved lists for users aren’t overridden on next login.
- File logging now checks if the overall Craft app uses file logging.
- Log files now only include
GET
andPOST
additional variables.
- Fix managing lists on the front-end and requiring permissions.
- Only allow editing of list types if editable.
- Fix default data when installing conflicting with project config.
- Ensure plugin project config is removed when uninstalling.
- Allow list actions to be callable via URL.
- Add
manageDisabledLists
config setting to manage disabled lists and their items (default to true).
- Fix error when adding a new item to list in the CP.
- Fix unable to update the element for an item through the CP.
- Craft 3.4 compatibility.
- Fix project config error.
- Fix list items having incorrect search attributes.
- Add project config support.
- Add support for add/delete/toggle multiple items. See docs
- Add
purgeInactiveGuestListsDuration
to set times for guest lists to be purged, separate to user lists. This is default to 1 day. - Add purge lists to Craft's garbage collection.
- Add guest list to user list when logging in.
- Add email share action for lists. Users can directly and easily send their list via email.
- Allow managing of list items in the CP, including add and delete.
- Add
forceSave
tocraft.wishlist.lists()
to force a new list to be generated.
- Fixed SQL error for PostgreSQL. (thanks @Tam).
- Fix
craft.wishlist.item()
when called for a specific list. - Fix issue when calling multiple lists in the same request not returning the correct list.
- Add update controller action for items.
- Fix title on CP edit item page.
- Fix saving items in the CP.
- Fix missing delete action for items
- Fix setting field params via URL not working correctly.
- Fix purge function to only remove lists with zero items.
- Fix typo in purge lists function.
- Fix permissions for lists.
- Fix permissions for list types.
- Fix sidebar menu for using plugin name override.
- Adding option to provide a list type handle or id when adding an Item. (thanks @echantigny).
- Fix owner column not being correct.
- Correct AJAX action for list type deletion. (thanks @AugustMiller).
- Add routing rule for index of list type. (thanks @echantigny).
- Fix error thrown when viewing list when created in the CP. (thanks @echantigny).
- Initial release.