Questions tagged [wishlist]

Denotes questions related to Wishlist

Filter by
Sorted by
Tagged with
48 votes
18 answers
88k views

Magento 2: Safe and easiest way to disable Compare products & Wishlist Module

I am building Magento 2.0 only to sell 2 of my products online. The compare products and wishlist module is irrelevant for me. How I safely and easily remove those modules? I dont want to hack the ...
  • 1,402
7 votes
5 answers
12k views

How to check if a product is already on the wishlist in Magento 2?

In Magento 1.x I did it like this: $_product = ...; // some product object you already have $_productCollection = Mage::helper('wishlist')->getProductCollection() ->addFieldToFilter('sku', $...
1 vote
1 answer
1k views

How to change Wishlist button color once product added to Wishlist using controller

How to change the wishlist button color once the products added to the wishlist.I am getting an error while using a controller. Ref: 1)https://magento.stackexchange.com/a/256570/57334 2)https://...
  • 145
4 votes
3 answers
2k views

Wishlist button color on Magento 2.1

How to set active class to magento2.1 wish-list button on product page? I mean that, when i go to product page, if i marked that product to my wish-list before, just shows already added to wish-list ...
  • 741
4 votes
2 answers
5k views

Add Product to Wishlist with a Selected Custom option

I used below code to add a product pragmatically to a Wishlist, and is working successfully- $customer = Mage::getModel('customer/customer'); $wishlist = Mage::getModel('wishlist/wishlist'); $...
4 votes
1 answer
7k views

How to add programmatically product to wishlist in Magento 2?

I want to add the product to the wishlist in magento2. What is the way to programmatically add the product into wishlist in Magento2?
  • 3,086
3 votes
2 answers
4k views

Remove product from wishlist using customer id and product id in Magento2?

How to remove product from wishlist using customer id and product id programmatically? I searched alot about it, But the results are remove wishlist item using item id only. So is there any way to ...
0 votes
1 answer
981 views

Magento2 display configurable product price range on wishlist page?

I would like to display the configurable product Price Range [Min and Max] Ex: $10.00 - $35.00 on wishlist items from the customer dashboard. (Customer dashboard -> My wishlist items list & ...
0 votes
1 answer
803 views

M2 - How to change Wishlist icon color after product added to Wishlist

My code: app\design\frontend\Zero\my_theme\Magento_Wishlist\templates\catalog\product\view\addto\wishlist.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for ...
  • 145
6 votes
3 answers
7k views

Add to wishlist without customer login

I am developing an extension where is a requirement of add to wishlist without logging into customer account. can anyone help me out in this? what i think two things can be done here - 1- we can ...
  • 371
2 votes
1 answer
3k views

Show description of product in wish list phtml file

I want to get description of product in wishlist Page, I tried this code In list.phtml file but no luck . <?php echo $_product->getDescription() ?> EDIT my code now look like this <?...
  • 833
2 votes
3 answers
12k views

How do I add to wishlist programatically?

I have scoured the web yet I am no nearer to understanding how I add a product to the wishlist in code. I have a product ID and a customer object in my controller and I just want to be able to add ...
  • 140
1 vote
2 answers
7k views

How to get the wishlist collection of a customer by Customer Id in magento2

I am trying to get the wishlist products collection of a particular customer by the customer Id. but it is not working. I am using the following code : $objectManager = \Magento\Framework\App\...
0 votes
0 answers
423 views

Magento 2.2.3 CE unable to add/remove item from wishlist?

We are getting facing an error message when we add (or) remove item from wishlist in magento 2.2.3 CE can you please advise? ? we didn't write any custom code from custom module. Fatal error: ...
0 votes
3 answers
1k views

Magento 2 override add wishlist controller?

I tried to override add wishlist controller from the custom module but it's not working. app/code/Demo/Wishlist/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
10 votes
5 answers
17k views

Magento 2 - How to disable wishlist and product review module

I want to disable the Wishlist and Product Reviews module including hiding all links in the menues (i.e. Dashboard, Top Navigation). Is there an easy way to do this?
  • 1,773
6 votes
4 answers
5k views

Need REST api for "Add to Wishlist" in Magento 2

I want REST api for "Add to Wishlist" in Magento 2, and also need to know in which folder to place and the endpoint
6 votes
1 answer
3k views

create mini wish list icon like mini cart

I am in requirement to add mini wish-list icon like mini cart count on top of header .I do not know this is Magento default functionality or Not.
5 votes
1 answer
10k views

How render product wishlist link functionality in custom template (phtml) in magento 2

How to display wishlist link (with functionality) in custom phtml file using template file in magento 2
  • 1,417
4 votes
1 answer
4k views

Remove from wishlist URL?

I'm trying to create a link to remove an item from the wishlist if it's there. The URL is returning /wishlist/index/remove instead of the correct URL which from what I've seen online should be /...
  • 443
4 votes
4 answers
6k views

“Add to wishlist” without redirecting to wishlist page Magento 2.06

I need to add to wishlist ajax based or customer should not redirect to wishlist page with out redirect in Magento 2 environment. anyone have suggestion please share.
4 votes
1 answer
3k views

Load additional product attributes in Wishlist

I want to show some additional product attributes in the wishlist template, but they are not loaded. On the category page it is working, so it is not an index problem. When I call $item->...
4 votes
1 answer
4k views

Check if product is in wishlist

Magento 2.1.1, PHP 7.0. I want to check inside product page or product list if product is in wishlist. Actually I have block which works, but only if Full Page Cache is disabled or this block in xml ...
4 votes
3 answers
4k views

How get wishlist in Magento 2 Rest API?

Get Wishlist product in Magento 2 REST API ? And Add to Wishlist in Magento 2 REST API ? Wishlist API is not provided by Magento 2
4 votes
1 answer
3k views

Magento 2 - Keep Wishlist items

I need to keep the wishlist items after the customer have added them to the cart. Where is the actual removal being done in the code? I'm trying to track the call, but gets lost in the post being ...
  • 155
3 votes
6 answers
7k views

Removing wishlist link - top header magento 2

I've seen this question asked time and time again, and i know this will sound like a duplicate. But every answer everyone else has doesn't work for me. I'm using: <page xmlns:xsi="http://www.w3....
  • 1,383
3 votes
4 answers
5k views

Magento2.3 Product Add to Wishlist Invalid Form Key. Please refresh the page?

I am using php 7.2.13 version and magento 2.3 latest version in xampp. When i do add to wishlist and save anything am getting Invalid Form Key. Please refresh the page? this error.
  • 33
3 votes
1 answer
2k views

How to get the selected custom options of a item in wishlist?

I need to retrieve the selected custom options of the item in the wishlist. I tried the following code. $item = Mage::getModel('wishlist/item')->load($wishlist_item_id); $options = $item->...
  • 2,035
3 votes
4 answers
4k views

how to remove text "items" from top links wishlist magento 2

I want to display just wishlist count like wishlist (2) in top bar, how can I remove the word "items" or "item"
  • 974
2 votes
1 answer
172 views

Impact of programming errors in wishlist observer introduced in 1.9.4.0?

The release of 1.9.4.0 introduces two programming errors in the wishlist observer: in order to make the method Mage_Wishlist_Model_Observer::processAddToCart compatible with PHP 7.2, the two usages of ...
2 votes
2 answers
628 views

How to add a remove link on product detail page, if it's already added on wishlist in magento2?

I want to add wishlist remove link if product is already on wishlist in Magento2. I have tried but it's not working when fullpage_cache is On 1. 2. 3.
1 vote
1 answer
329 views

Magento 2 how to restrict add wish list a product

I would like to stop adding products to the wishlist based on the product attribute how to do that? I would like to use the plugin concept instead of overriding the entire controller file. Magento\...
1 vote
1 answer
2k views

How to Check my Current Product is Already added to Wishlist Magento 2

<?php echo "<pre>"; print_r($this->helper('Magento\Wishlist\Helper\Data')->getWishlistItemCollection()->addFieldToFilter('product_id', $_product->getId())->count()); ...
  • 1,377
1 vote
3 answers
641 views

Unable to add to wishlist when visibility is set to "not visible individually"

We are unable to add products to the wishlist in 1.6.2.0 when visibility = "Not visible individually". I have explored two options so far: Enable Catalog visibility and remove category The ...
1 vote
2 answers
709 views

Multiple Items in wishlist

I was wondering how some am I not able to have more than 1 item in my wishlist. Whenever I add a new one, the old one gets replaced. I am on magento 1.9.1
  • 11
1 vote
1 answer
392 views

Magento2.3: How to download the customer wishlist collection as a CSV file?

I have a requirement that is collecting wish-list data and download/store them as a CSV file. As of now, I have referred the below URL and tried getting the sample CSV file downloaded. How to ...
  • 512
1 vote
4 answers
4k views

Magento2 - How to remove item from wishlist?

I want to remove an item from wishlist in magento2 with wishlist id or wish list item id, how can do that ?
  • 3,086
1 vote
1 answer
157 views

How to show grand total of wishlist item list incluging tax?

I wants to show grand total including tax. i have follow this link to show grand total without tax how to get Grand Total of Wishlish Items in magento? and it working fine. but i need to display grand ...
  • 363
1 vote
0 answers
354 views

How to download wishlist list item as a PDF in magento?

I would like to download wishlist items in PDF format. there will be a button on wishlist item list page as "export as PDF" after clicking on this button i wants to download wishlist item list as a ...
  • 363
1 vote
2 answers
265 views

Display tax rate of each wishlist in magento?

I wants to display tax rate of each wishlist item. when we open wishlist it should be display tax rate in front of each product. i.e i need to one extra column of wishlist page. i already tried this ...
  • 363
1 vote
0 answers
195 views

Add wishlist to my dashboard (customer_account_index)

I want to add the wishlist in my dashboard in the customer account. Problem is I have to make a new block like this. <block class="Magento\Framework\View\Element\Template" name="...
  • 321
0 votes
0 answers
279 views

change the wishlist item collection in "My Wish list" tab in My Account in Magento EE ver. 2.4.1

I am using Magento EE ver. 2.4.1 and i want to override the wishlist item collection in my account. But i am facing the below issue : PHP Fatal error: Uncaught Error: Call to a member function ...
0 votes
2 answers
2k views

Show custom attribute in sidebar wishlist

I have a sidebar whislist /app/design/frontend/base/default/template/wishlist/sidebar.phtml I need to add a "custom attribute" called manufacturer. I have tried many options like these but all don't ...
  • 15
0 votes
3 answers
5k views

Add to wishlist without redirect to wishlist

How to disable or redirect to same page after pushing add to wishlist button? Same way you can disable it for add to cart.
  • 1,049
0 votes
1 answer
176 views

getItemCollection() returns null always magento 2.3

i have created an remove wishlist rest api, i am passing customerid & productid to "removeWishlistForCustomer()" but getItemCollection() always returns null, so i can't delete wishlist ...
0 votes
1 answer
707 views

how to get Grand Total of Wishlish Items in magento?

i am trying to get grand total of wishlist item. when we update quantity of wishlist item then total will show in price column and display the all item grand total at bottom. anybody knows answer ...
  • 363
0 votes
2 answers
953 views

Move to wishlist

How can I make the product only be copied in wishlist, when I click move to wishlist from basket. Because on default it remove from basket but I want my product to be added in wishlist and also to ...
  • 455
0 votes
2 answers
7k views

"Add to wishlist" without redirecting to wishlist page

When clicking on the add to wishlist button, I want to remain on the same page & perform the add function without redirecting to the wishlist page - is this possible?