Questions tagged [compare]
Questions about the "compare products" feature. Do not use this tag for questions about comparing anything else.
116
questions
49
votes
18
answers
90k
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 ...
16
votes
1
answer
1k
views
Why is the compare functionality linked to the (log)visitor id?
The first thing I do when starting a project is ask the client if he needs user logs in his website. In technical terms Mage_Log module. In all the cases so far I got the answer:
No. We will use ...
6
votes
1
answer
4k
views
Compare link on detail page
I need to implement Compare button as a link on product detail page.
What I trying to do:
<span><a class="btn-compare" onclick="popWin('<?php echo $_helper->getListUrl() ?>','...
5
votes
3
answers
1k
views
How to remove products from compare collection in Magento2?
Looking for a better way to add and remove the product on click of same icon.
If a product is already added to the compare collection then on next click of that icon, It should remove the product ...
5
votes
1
answer
8k
views
How can I move compare product link in header | Magento 2
How to move compare product link into header, Right now it is in top links. So to do so I've tried putting following line in my default.xml
<move element="compare-products-link" destination="...
4
votes
2
answers
1k
views
Remove Compare from Product List in Magento 2.1.6 [duplicate]
I need to delete the compare button from product list but I don't know how to to do it in Magento 2.1.6.
Under [vendor]/[theme]/Magento_Catalog/templates/product/
I deleted the following in list....
4
votes
1
answer
4k
views
Magento 2 - Disable the compare function in admin panel
Is there a way to disable the compare function in admin panel?
4
votes
3
answers
4k
views
Disable compare button on product page
I have followed other tags and I have the following code in my default.xml in my child theme. All the other compare functions are disabled with this code except for on the product page. Why won't this ...
4
votes
1
answer
2k
views
How to clear the compare list?
I need that, when the user goes to the compare list page it will reset so if he navigates to the products again he will have to choose different products for the list.
How can I do this?
4
votes
1
answer
3k
views
Custom popup message while add to compare on product list page
while add to compare on product listing page I want to add a popup for success message instead of Magento 2 default success message.
Help would be appreciated.
4
votes
3
answers
4k
views
what file to change for this to remove compare block?
when going to www.domain.com/customer/address/edit/id/1/
where one can edit their address
for some reason there is a block compare in left sidebar
what file do i need to edit to remove this?
...
4
votes
1
answer
2k
views
Compare Products link does not work
My product comparison link doesn't work. This is in Magento 1.9.
My issues are almost identical to this post, with the exception that clearing the index did not work. Is there anything else I can try?...
3
votes
1
answer
575
views
Magento 1 How to Hide Empty or Null Attribute in Compare Page
I've realised there are many answer which actually are technically incorrect because they only are taking into account one product. They remove any attribute that is empty or null even if the second ...
3
votes
2
answers
207
views
How to disable "add to compare" for non-registred user in magento?
When non-registred user clicking on add to compare then it shows the alert for registration (with message "registration is required"). Please help.
This is my phtml file
<?php
$...
3
votes
1
answer
2k
views
Compare products using a checkbox
It seems too cumbersome for the user to have to wait for a page reload everytime they click on "add to compare" to add a product to a compare list and I wanted to change thelink with a ...
3
votes
2
answers
2k
views
How to add product to compare products using product id programmatically in Magento 2
How to add product to compare products using product id programmatically.
Please give me suggestions.
3
votes
1
answer
4k
views
how to get a product compare url in magento 2?
I am trying to get compare url of a product.
For this i am using:
<?php echo $_compareUrl=$this->helper('Magento\Catalog\Helper\Product\Compare')->getAddUrl($_product); ?>
Its output ...
3
votes
2
answers
446
views
Make the compare list work without filling the log_* tables?
The Magento compare list feature only works, when the log_* tables are being filled. If they are not, the compare list is global, which means, whenever a customer adds to the list, every other ...
3
votes
1
answer
1k
views
Core configuration of Recently Viewed/Compared Products | Synchronize widget products with backend storage | Magento 2
Can someone explain what enabling this option do:
Store -> Settings -> Configuration -> Catalog -> Catalog -> Recently Viewed/Compared Products:
Synchronize widget products with backend storage: ...
3
votes
1
answer
919
views
Custom attribute values Not showing while compare the product in magento2
I have issue in not showing Custom attribute values in while compare the products
I have added some custom attribute and Set Yes to Comparable on Storefront in Admin side. After check Compare ...
2
votes
1
answer
620
views
Hide add to Compare in category page beside add to cart [duplicate]
I have been able to remove every link to add to compare but I cant get the one away that is placed beside the add to cart button on the category page.
2
votes
2
answers
3k
views
magento 2 - Set limit to the compared product
I need to set limit to the compared product, for example: max_limit 4, But now it is adding Number of products to compare list.
Kindly suggest.
2
votes
1
answer
2k
views
i need to limit the number of products added to compare in magento
I need to limit the number of products added to compare in Magento. Lets say 3 products.
2
votes
1
answer
701
views
How 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 ...
2
votes
1
answer
5k
views
Slick slider is not working properly in Magento2.3
I would like to use slick slider concept for compare products so I have implemented it on my Magento site. But It's not working as expected though the script has been loaded. I'm not sure where am I ...
2
votes
1
answer
2k
views
Get products in the compare list in the current session from outside magento
I am trying to get the products in the compare list from outside magento, but I am having problems with it.
The intention is to create a small php program that generates this list and can be used for ...
2
votes
1
answer
1k
views
Show deactivated/disabled products in comparison view
I am trying to show a product in comparison view, which is set as status = disabled through admin panel.
In default magento, this seems not possible as the disabled products are not visible in ...
2
votes
1
answer
287
views
Magento 2 API for product add to compare and compare list
There is any way to get API for product add to compare and get compare list for customer.
Thanks
2
votes
0
answers
75
views
Magento2.3: Compare slider is not working
We have customised the compare products as per our requirement. However, Its not working as expected. I'm not sure, whether the data binding is working or not.
For your information, I'm using slick ...
2
votes
3
answers
1k
views
Magento2 - Compare products shows lots of attributes with “N/A”
When I compare products on my store, there are a lot of I filled attributes and despite there being no value for each product I’m comparing, it still shows the attribute and a line of “N/A” values.
...
2
votes
0
answers
2k
views
Check if there are any products in the compare list in Magento 2
I'm using Magento v 2.2 and I'm trying to check if the customer/visitor (doesn't matter if logged in or not) has any products in their compare list and I'm trying to do this in
{theme_dir}/...
2
votes
0
answers
23
views
Compare Magento repository and production
I have to compare my production vs repository because there are much difference between both, but I do not know how to compare all files.
Please suggest me how to do?
1
vote
1
answer
6k
views
How to get global messages in compare products page, getMessagesBlock is empty
I'm trying to get global messages in compare products page, but none of the messages get rendered, instead all of them appear in any subsequent page I'm going, after producing messages with for ...
1
vote
2
answers
6k
views
Remove Compare Products
I am using theme254k in Magento 1. I would like to remove Compare Products section of side bar of Category Page. How can I do that ??
I found below code in catalog.xml
<default>
<!...
1
vote
1
answer
4k
views
get compared products and count in header
I have a need to show products and count in header.phtml file [Magento_Theme/templates/html/header.phtml] file.
How to access those products count and data staying in header.phtml file.
What i tried ...
1
vote
2
answers
1k
views
Adding a product to the compare list redirects to the home page
As stated, adding a product to the compare list redirects to the home page but I'd like it not to redirect at all. The product is successfully added to the list, the redirect is the only problem.
...
1
vote
2
answers
2k
views
Adding a link to comparison page in Add-to-compare confirmation
Is it possible to add a link to the comparison page from within the confirmation that an item has been added to the compare list?
The addAction() function in app/code/core/Mage/Catalog/controllers/...
1
vote
1
answer
3k
views
Get all items in the compare list and filter them by visitor_id?
I want to get all items from the product compare list, but only for a certain visitor. This is what I tried:
$_productCollection = Mage::helper('catalog/product_compare')->getItemCollection();
$...
1
vote
1
answer
538
views
Magento 2 : do not add products to compare if attributes set different
Case : Suppose i have products Shirts and Electronics, now if i add Shirt A and Mobile B to compare it allows but i want to restrict compare if same attributes sets .
So i user add Shirt to compare ...
1
vote
1
answer
59
views
Magento2: Object DOMDocument should be created
I have installed the Tigren_Ajaxcompare extension. Got the error message below
Object DOMDocument should be created.
Block
<?php
/**
* @copyright Copyright (c) 2017 www....
1
vote
3
answers
4k
views
how to get Compared Product collection in magento 2
How can I get the Products that are already added in the compare list Product Collection. For Visitor and as well as Login Customer. Can anyone guide me to solutions.
1
vote
1
answer
767
views
Magento 2 Add 'My Cart','Compare Products','Newsletter' Sidebars in right column
I have a CMS Page with '2 Column Right' layout. I want to add 'My Cart','Compare Products','Newsletter' Sidebars in right column.
http://i.prntscr.com/eb303e17180d467dbc80b942cd3076ee.png
How is ...
1
vote
1
answer
52
views
How to edit my compare products
I have my comparable products page in a table.
In my fist row there is Description.
In my 3rd row there is SKU
I want to move my SKU in the first row
How to achieve it?
1
vote
1
answer
178
views
Remove product Compare list?
We have enable the Use Flat Catalog Category and Use Flat Catalog Product. After that site is loading while login to myaccount. We checked this, after login in some category page show product compare ...
1
vote
1
answer
735
views
Retrieve comparable attributes for a product using product_id
I want to get the comparable attributes for a product but without the help of the compare session.
I have product id and I need the list of comparable attributes that are associated with the product
1
vote
2
answers
194
views
Add Success Message in Custom Popup for Add to Compare in the listing or Category Page in Magento 2
I want to add custom pop-up in category page for showing success or error message for add to compare button.
Any help is appreciated.
Thanks in Advance !!!
1
vote
1
answer
70
views
Magento 2.3 - Set max compare products to 2
I want to set the limit for the products to compare max 2 product. I tried to create this module: https://magento.stackexchange.com/a/159543/16894
But it seems that this does not work with Magento 2.3....
1
vote
1
answer
383
views
Magento 2.3 - Add attribute group name on compare products page
We want to implement the attribute group name on the compare product page and separate all attributes based on the attribute group.
We use the following code to show the attribute group name on the ...
1
vote
1
answer
76
views
Magento override Catalog Compare controller doesn't work
for some reason the Compare controller override doesn't work for me, I tried about everything I could find, but it just doesn't happen and I am running out of ideas. Do you see anything I am doing ...
1
vote
1
answer
1k
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 ...