Questions tagged [wishlist]

Denotes questions related to Wishlist

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Customer account wishlist block replacement removes content

I have replaced the vendor/magento/module-wishlist/Block/Customer/Wishlist.php for my own app/code/myVendor/myModule/Block/Customer/Wishlist.php I have written in the app/code/myVendor/myModule/etc/...
0
votes
4answers
116 views

Wishlist ajax remove

I want to remove product from wishlist from a custom button on detail. I did a plugin for the Magento\Wishlist\Controller\Index\Remove.php with an aroundExecute but for some reason I can't load/create ...
1
vote
1answer
39 views

Magento 2: Page Title not working for wishlist_index_index.xml

here am trying to add page title for wish list in sidebar navigation, but page title is not showing up. here is my wishlist_index_index.xml overrided file. <?xml version="1.0"?> <!-- /** * ...
0
votes
1answer
28 views

Event for Add to Wishlist button in Magento2

I want to redirect User to Observer on Add to Wishlist Click i want this for guest users Example if customer is not logged in then it must redirect user same page So far i have tried Following ...
0
votes
3answers
44 views

How do I get the current product id into wishlist.phtml in Magento2?

Here is My Block.php file app/code/Smartwave/Porto/Block/Catalog/Product/View/AddTo/Wishlist.php namespace Smartwave\Porto\Block\Catalog\Product\View\AddTo; /** * Product view wishlist block * ...
2
votes
1answer
45 views

Get current Logged user Wishlist products id in Ajax Call Magento 2.3

I Want currently logged user all wishlist products id's json array via ajax call ?
0
votes
0answers
20 views

Limit in the number of sharing wishlist in magento 2

I just found that the 'share wishlist' button on my wishlist page is gone after sending emails for the number of times set in the wishlist configuration in the backend. In other words, if the ...
0
votes
1answer
25 views

Wishlist added products icon not active in Magento 2.3

Wishlist added products icon not active or color change in product detail page and listing. But added products are present in "MY WISH LIST" in Magento 2.3
0
votes
1answer
61 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
vote
4answers
54 views

Magento2.3.1 i want to remove wishlist link from top.links but not working

I have added below code in my custom Magento_Theme default.xml file to remove top.links <referenceBlock name="top.links"> <referenceBlock name="register-link" remove="true"/> ...
0
votes
0answers
21 views

Magento 1 - Multiple websites share wishlist

How to keep wishlist during a website change? When I switch magento stores the wishlist is well preserved but when I go on a store that is on another website (with different domain) then wishlist is ...
1
vote
1answer
34 views

Magento 2 REST API: Custom API with customer_token expecting string[] instead of string

I made an API which returns wishlist of a user using customer_token as authentication, obtained via this API: rest/V1/integration/customer/token My webapi.xml looks something like: <?...
0
votes
0answers
45 views

Get customer names that have added current product in their wishlist in Magento1

I am using this code to get total times current product added in customers wishlist. <?php $wishlist = Mage::getModel('wishlist/item')->getCollection(); $wishlist->getSelect() ...
0
votes
1answer
26 views

Magento 1 script to get customers wishlist

I want to create a script to get a list of all customers and their items inside their wishlist. How can we achieve this in our Magento 1.9.4.1 store?
0
votes
1answer
45 views

Magento 2 - Don't want to remove wishlist items when click 'Add all to cart' button

I want to keep items in wishlist when user click "add all to cart" button. Have any idea how to fix it?
0
votes
0answers
22 views

Swatches inclusion on custom related product template file in Magento 2.3

I am using inclusion on swatches for custom related product template file using the method mentioned on : https://magento.stackexchange.com/a/223599/80609. But i am not able to pass related products, ...
7
votes
1answer
205 views

setup:upgrade SQL error after update from 2.2.8 to 2.3.1

What could be the reason for this error on bin/magento setup:upgrade after updating from 2.2.8 to 2.3.1? SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name '...
0
votes
0answers
14 views

Copy-paste wishlist between customers, Magento 1.9

I'm looking for a way to copy-paste a wishlist from one customer to another? Any methods? Thanks
4
votes
1answer
72 views

Magento2 : Remove disabled product from wishlist

I need to remove all the disabled products from wishlist and for this I write a product status check in Magento_Wishlist/templates/item/list.phtml like this: if($product->getStatus() == \Magento\...
0
votes
0answers
46 views

Create AJAX add to wish list in custom theme Magento 2

I am working on a custom theme. where I used Algolia instant search. All the products are listed through Algolia. vendor/algolia/algoliasearch-magento-2/view/frontend/templates/instant/hit.phtml &...
1
vote
0answers
26 views

How to share wishlist email from a custom module in Magento2.2.5?

I have created a custom module for wishlist, and I need to share email from wishlist which include multiple products in Magento2.2.5? My Code: <?php namespace Emipro\GuestWishlist\Controller\...
0
votes
2answers
29 views

Magento 2 - Compare & Wishlist hide when inactive [duplicate]

Is there a way to hide the Compare and Wishlist blocks on the front-end (in the navigation) when they are not in use?
0
votes
1answer
36 views

Add active class when product is in wishlist at category page

I'm trying to add an active class when product is in wishlist. I tried below code. <?php echo $_product->getId(); $wishlist = $this->helper('Magento\Wishlist\Helper\Data')->...
0
votes
0answers
17 views

Overwriting FinalPriceBox Class for the wishlist

we have overwritten the FinalPriceBox.php in order to show a custom price with some conditions. This works well with the categories and product page. But we have seen it's not working on the wishlist. ...
2
votes
0answers
42 views

Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?

Get Favourite product in Magento 2 REST API with URL? And Add to Favourite in Magento 2 REST API with URL?
2
votes
0answers
28 views

How to show only first 3 products in whislist

I am showing wishlist in my cart page. But I want to show only first 3 wishlist product in my cart page in Magento 2
1
vote
0answers
33 views

After Social login,product is not adding to wishlist niether not redirecting to wishlist page

I am facing issue adding product in wishlist (magento version 2.2.3). Here is scenario, Step 1 :- Make sure customer not logged in. Step 2 :- Go to product list page and click "Add to wishlist" ...
1
vote
1answer
89 views

Magento 2 Wishlist product add not working when user should in before login

I am facing issue adding product in wishlist (magento version 2.2.3). Here is scenario, Step 1 :- Make sure customer not logged in. Step 2 :- Go to product list page and click "Add to wishlist" ...
1
vote
1answer
28 views

magento 2 getting product data from wishlist

Coming in to trouble while getting correct data from my wishlist: /** @var \Magento\Wishlist\Model\Wishlist $_wishlist @var \Magento\Customer\Model\Session $_customerSession */ $...
0
votes
1answer
35 views

why my Wishlist showing only one product

In my Magento store when I add a product into wishlist it will replace the old product and add a new one. I don't know why this is happening. I have checked all core files in my project. can anyone ...
1
vote
1answer
70 views

Create a Empty Wish-list Button in magento 1.9

i want to create a empty wishlist button in wishlist page, so that when user click the button all the items from the wishlist are removed. how can i do that please help.
4
votes
0answers
20 views

Magento2.1 add pagination to my wishlist

Want to add pagination and toolbar to my wishlist page on customer panel. Mean that i want to do something like list.phtml on wishlist page in customer account - customer panel.
1
vote
1answer
24 views

Magento 2.2.5 - Add wishlist to custom new page

We have a separate new page for listing the products, there we need a "Wishlist" option as like as in product catalog page. Can anyone share the exact idea to implement it?.
5
votes
1answer
49 views

How to add custom attribute in magento2.1 customer panel wishlist section?

I want to add guaranty (custom product attribute) to customers wish-list page that is in customer dashboard in my Wishlist tab. Means that I wanted to show price, qty, name, guaranty, and add to ...
3
votes
0answers
37 views

Error: category.product.addto.wishlist is not a child of catalogsearch.product.addto

Magento 2.2.6 ### Steps to reproduce (*) <!--- Important: Provide a set of clear steps to reproduce this bug. We can not provide support without clear instructions on how to reproduce. --> ...
3
votes
0answers
60 views

Product attributes on wishlist

I'm trying to display a couple of product attributes on the wishlist page. However, when I call $product->getData('attribute_code') it returns NULL. Here is the code I currently have in place: ...
3
votes
0answers
45 views

how can a customer email his wish-list to admin in magento 1.9

i want to add a "send wishlist to admin" button in wishlist section, so that when customer click on this button his wishlist will send to the admin through email. how can i do that. please help
1
vote
0answers
23 views

how to download wishlist in excel format in magento 1.9

i want to download my wishlist in excel format without any plugin, currently i'm able to download my wishlist as docx type. Please help.
1
vote
1answer
212 views

Magento 2.3.0 How to override wishlist & compare product list page using plugin

I want to override wishlist & compare product grid using plugin. after that i would like to append custom div under class="product-image-container". I try & search a lot but no luck. is there ...
0
votes
1answer
82 views

How to get wishlist product details on wishlist_product_add_after event in magento2

How to get wishlist product details on wishlist_product_add_after event in magento2. Please suggest me.
0
votes
1answer
173 views

How to get products from wishlist using customer id

Magento 2.3 PHP 7.1 I trying to get products from customer wishlist in Model but $products array is empty. $products = []; $items = $this->wishlist->loadByCustomerId(1, true)-&...
2
votes
1answer
214 views

How to update/trigger wishlist counter in Magento 2.3?

I am trying to add products in wishlist using ajax with phtml + Controller. However, the product gets added to wishlist but the counter of wishlist doesn't change. Is there a way to trigger an update ...
1
vote
2answers
352 views

Get Customer Details by Wishlist Product Id in Magento 2

A list of products was added to wish-list by the number of customers and I need to know that which customer was added a particular product to the wish-list, based on the product id. I need to get the ...
2
votes
1answer
125 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 ...
2
votes
2answers
1k 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.
0
votes
0answers
218 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
0answers
76 views

How to generate a popup when product added to wishlist programmatically in magento2

How to show popup with success message when product added to wish list instead of going to wishlist page programmatically ?
1
vote
1answer
158 views

Hide product price from wishlist in magento2

How can I hide price based on a condition from customer wishlist products. <block class="Magento\Wishlist\Block\Customer\Wishlist" name="customer.wishlist" template="Magento_Wishlist::view.phtml" ...
0
votes
1answer
69 views

How to render HTML entities in the wishlist sidebar

I have added the © symbol to product names in Magento 2. These all appear fine on the category and product pages, however when I add an item to my wishlist the product name appears with the text &...
1
vote
0answers
49 views

To implement ajax based toast notification for add to cart, wishlist and compare

Is there any way to show toaster notification using jQuery for add to cart and wishlist and compare from product list page and detail page. Want to show some of the below toast notification after ...