Questions tagged [wishlist]
Denotes questions related to Wishlist
407
questions
0
votes
0
answers
19
views
Get wishlistitems using customer id
How to get wishlist items collection using customer id ?
Thanks
public function removeWishlistForCustomer($customerId, $productId)
{
$wish = $this->wishlist->loadByCustomerId($...
0
votes
1
answer
292
views
How to Remove product from wishlist using product id & customer id?
How to remove product from wishlist using customer id and product id programmatically? I searched a lot about it, But the results are remove wishlist item using item id only. So is there any way to ...
0
votes
1
answer
302
views
Error while retrieving wishlist data
i am trying to retrieving wishlist data and this error appears
[2020-06-22 08:41:10] report.CRITICAL: Report ID: webapi-5ef06ea694149; Message: SQLSTATE[23000]: Integrity constraint violation: 1452 ...
2
votes
0
answers
30
views
Magento 2 rest api Information
i am trying to get wishlistdata using api
where i can find these
header "Authorization: Bearer pbhercbtk6dd3eatf1pyx8jj45avjluu"
Actual query
$ curl -X GET http://magento.example.com/rest/...
0
votes
1
answer
133
views
Cannot filter the data collection
I'm trying to filter the data collection from 4 hours to now and I have the below code but its not working.
public function getWishlistProduct($wishlistid){
$to = date("Y-m-d h:i:s");
$from ...
1
vote
0
answers
349
views
Remove routing element in rest api ( Magento )
when i call this api http://localhost/magento2/rest/V1/wishlist/1/3 it works and wishlist item gets added
but when i call http://localhost/magento2/rest/all/V1/wishlist/1/3 it does'nt work
Seems like ...
1
vote
3
answers
415
views
Magento 2 rest api error for wishlist
Below error appears on api call ,
[2020-06-18 07:57:42] main.CRITICAL: Report ID: webapi-5eeb1e76e4607; Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2....
1
vote
1
answer
400
views
Sharing a wish list button is missing in my wish list magento 2
On the my wishlist page, I am not able to see the Share wish list button in the Magento 2 frontend. Previously it worked but now that button is not appearing suddenly.
Help me.
1
vote
1
answer
273
views
Magento 2 add to wishlist controller plugin not working
I'm using Magento 2.3.4 , i tried to create a plugin for add to wishlist controller like this:
app/code/Vendor/All/etc/di.xml
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/...
0
votes
2
answers
250
views
Shared wishlist items in email not display images in Magento 2
When I share List product in my wishlist to Friend list, Everything ok, but Image can't render in the mails.
The images are broken in the mails of the shared wishlist.
0
votes
0
answers
357
views
Default Add To Wishlist is not appearing in product detail page in magento 2
Move to wishlist option is appearing in cart page but in product detail page Add to wishlist is not appearing. In the backend, it didn't disabled wishlist options but still, it is not displaying in ...
0
votes
3
answers
255
views
Error when migrate data in data migration of magento 2
I have this error, "Integrity constraint violation: 1062 Duplicate entry '3841' for key 'WISHLIST_CUSTOMER_ID'"
0
votes
1
answer
984
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
2
answers
1k
views
Magento 2 custom message for product already in wishlist
when i am trying to add product multiple times in wishlist i am getting below message :
Product A has been added to your Wish List. Click here to continue shopping.
instead, it should be
Product A ...
0
votes
2
answers
710
views
How to show all wishlist item in custom HTML without breaking any functionaility
I have created wishlist HTML which contains an image, product name, price & add & delete button. I want to show all the wishlist on my HTML page.
<section class="wishlist">
<...
1
vote
1
answer
335
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\...
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....
0
votes
1
answer
451
views
Wishlist function does not work - Item (Magento\Wishlist\Model\Item) with the same ID "5192" already exists
We are having an issues with wishlist function. Products are not added to the wishlist.
In system.log and exception.log we get the following messages, when a customer click on "add to wishlist&...
0
votes
1
answer
27
views
Generate a list in Magento Admin of customers that have a wishlist?
I need a way to get a list of customers that have a wishlist.
Thanks in advanced.
1
vote
0
answers
43
views
Magento 1.9 - Wishlist Does Not Work
I added items from Wishlist to my cart.
After you go to the cart page, you will be notified that the item has been added.
But the cart is empty.
Please tell me the solution.
1
vote
1
answer
396
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 ...
0
votes
1
answer
118
views
How to collect customer data who has added the product to wishlist?
I have a requirement that is collect customers data like wishlist, address and send them to another server using SFTP. These all should be programmatically.
Could anyone please guide me on this?
...
1
vote
0
answers
39
views
How to Redirect to Product View Page if No option Options are Selected In magento 2
i am making a guestwishlist i want to know how i can make a condtion if no product options are selected if must have to redirect me to product view page on add to cart option magento..
i did this so ...
1
vote
1
answer
265
views
Magento 2 Wishlist siderbar not showing
I am using magento 2 EE and I am facing wishlist side bar not showing for some customers like:
I have two customers
one customer pawan@gmail.com- customer type - Individual user
second customer ...
1
vote
1
answer
105
views
Magento2: How to override layout blocks
I want to override
"wishlist_index_index.xml"
with some changes.
Default layout output:-
Expected output:-
Here I want to move comment div out side "product-item-info" div.
Please let me know ...
0
votes
1
answer
702
views
Unable to Find js of data-action="add-to-wishlist" in magento 2
I want to find where JS is written for data-action="add-to-wishlist" in Magento 2
I saw add-to-wishlist and data-action many times and on research I found the action in this file Mageto_Wishlit/js/...
0
votes
1
answer
401
views
How to Override Magento Add to WishList Widget
I want to Override Magento add-to-wishlist data-action in Magento 2
i Have Created and Override Core addtowishlist Widget
in my requirejs-config.js
var config = {
"map": {
"*": {
...
1
vote
0
answers
713
views
Magento2: How to set pagination for wishlist?
As my default wishlist collection which is coming from block is not working due to the applied theme in my magento2 site.
So, I applied the collection on my list.phtml file. And the problem is I need ...
0
votes
2
answers
1k
views
Magento2: Remove products from wishlist if it is already added to wishlist in Product detail page after clicking wishlist icon?
I want to remove products from wishlist if it is already added to wishlist in Product detail page after clicking wishlist icon in magento2.3.0?
Any help would be appreciated.
0
votes
1
answer
1k
views
Magento2.3: Cannot add a product to wish-list even after logged in
I'm facing an issue in adding the product to wish-list. I have logged-in the site but still can't add the product to wish-list.
When checking the admin configuration, I see the wish-list is enabled ...
1
vote
2
answers
279
views
Magento2: How to show recently added wishlist to be displayed at the starting In wishlist Page?
I want to show a recently added wishlist to be displayed at the starting In wishlist Page in magento2?
Any help would be appreciated.
0
votes
1
answer
497
views
Add Configurable Product to Wish List
When a user clicks "Add to Wishlist" on a product that uses swatching, it saves the configurable product ID, not the simple product id. How can I get it to save the simple product id in the wish list ...
1
vote
0
answers
37
views
Magento, translate phrases of the wishlist and cart alert
I'm trying to translate the phrases that appear in the alert when trying to delete the item from the wishlist or in the shopping cart.
I refer to these two sentences:
- Are you sure you would like to ...
0
votes
2
answers
663
views
How to override "add to cart" button in wishlist using magento custom module?
How to override template file -
vendor/magento/module-wishlist/view/frontend/templates/item/column/cart.phtml
using custom module?
1
vote
0
answers
357
views
Magento 2 How can I get selected swatch options on wishlist page?
I am trying to get selected swatches color, the size on wishlist page in Magento 2.3
If I add a simple product in wishlist then attribute value is showing but when I am trying to get selected options ...
1
vote
2
answers
2k
views
How to Override WishList Customer Data in magento 2
i Want to Override
Magento\Wishlist\CustomerData\Wishlist
public function getSectionData()
{
$counter = $this->getCounter();
return [
'counter' => $counter,
...
3
votes
4
answers
7k
views
Magento 2.3.2: Uncaught Error: Call to a member function setUseContainer() on boolean
I'm facing this error when i try to login as customer, but when i go back or at Home i was logged in but every time i logout & login back, i face this error, also when i was logged in and go to My ...
0
votes
4
answers
1k
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
1
answer
618
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
1
answer
349
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
3
answers
890
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
1
answer
324
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 ?
1
vote
0
answers
580
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
1
answer
254
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
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
vote
4
answers
1k
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"/>
...
1
vote
2
answers
380
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
1
answer
117
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?
1
vote
2
answers
2k
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?
8
votes
2
answers
5k
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 '...