Log in
Helper

Data

Magento\Wishlist\Helper\Data

What it does

This helper class provides utility methods for working with customer wishlists in Magento 2.

Developers use it to retrieve wishlist data, generate URLs for wishlist actions (add/remove/configure items), check if wishlist functionality is enabled, and get wishlist item counts.

It's commonly used in templates and blocks to display wishlist features and handle wishlist-related operations throughout the store.

Public Methods

  • setCustomer()
  • getCustomer()
  • getWishlist()
  • getItemCount()
  • getWishlistItemCollection()
  • getRemoveParams()
  • getConfigureUrl()
  • getAddParams()
  • getMoveFromCartParams()
  • getUpdateParams()
  • getAddToCartUrl()
  • getAddToCartParams()
  • addRefererToParams()
  • getSharedAddToCartUrl()
  • getSharedAddAllToCartUrl()
  • getListUrl()
  • isAllow()
  • isAllowInCart()
  • getCustomerName()
  • getRssUrl()
  • defaultCommentString()
  • getDefaultWishlistName()
  • calculate()
  • isDisplayQty()
  • getProductUrl()