Skip to main content

Questions tagged [compare]

Questions about the "compare products" feature. Do not use this tag for questions about comparing anything else.

Filter by
Sorted by
Tagged with
50 votes
18 answers
93k 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 ...
Malaiselvan's user avatar
  • 1,422
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 ...
Marius's user avatar
  • 198k
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() ?>','...
Stopper's user avatar
  • 385
5 votes
3 answers
2k 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 ...
Swati Gupta's user avatar
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="...
Kaushal Suthar's user avatar
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....
Dean's user avatar
  • 125
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?
TFS's user avatar
  • 4,349
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 ...
Rad Factor's user avatar
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?
Elaine Marley's user avatar
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.
rajat kara's user avatar
  • 1,219
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? ...
carlo's user avatar
  • 447
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?...
Jimmery's user avatar
  • 1,509
3 votes
1 answer
578 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 ...
André Ferraz's user avatar
3 votes
2 answers
211 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 $...
Swati Nehe's user avatar
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 ...
Elaine Marley's user avatar
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.
mohammad mahamood ali's user avatar
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 ...
Yudi's user avatar
  • 616
3 votes
2 answers
450 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 ...
user1638055's user avatar
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: ...
Greg's user avatar
  • 2,739
3 votes
1 answer
925 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 ...
Rajkumar .E's user avatar
  • 3,580
2 votes
1 answer
624 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.
Kaki Sami's user avatar
  • 327
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.
user48923's user avatar
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.
orhan's user avatar
  • 21
2 votes
1 answer
788 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 ...
Softec's user avatar
  • 2,085
2 votes
1 answer
112 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....
Galib's user avatar
  • 37
2 votes
1 answer
6k 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 ...
Script Host's user avatar
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 ...
Webster Webb's user avatar
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 ...
Mr_Green's user avatar
  • 1,615
2 votes
1 answer
331 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
Feedlay Technologies's user avatar
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 ...
MagentoDev's user avatar
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. ...
Conk1's user avatar
  • 21
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}/...
Lez's user avatar
  • 2,917
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?
mohamet monte's user avatar
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 ...
ruuter's user avatar
  • 1,079
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> <!...
abu abu's user avatar
  • 744
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 ...
Suman K.C's user avatar
  • 1,159
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. ...
Aardi's user avatar
  • 105
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/...
Buttle Butkus's user avatar
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(); $...
user1638055's user avatar
1 vote
1 answer
575 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 ...
user1799722's user avatar
1 vote
1 answer
79 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....
Masud Shaikh's user avatar
  • 1,189
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.
Learing_Coder's user avatar
1 vote
1 answer
770 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 ...
Jancy Abraham's user avatar
1 vote
1 answer
54 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?
Ranganathan's user avatar
  • 3,220
1 vote
1 answer
179 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 ...
Rat's user avatar
  • 834
1 vote
1 answer
742 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
Pradeep Sanku's user avatar
1 vote
2 answers
363 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 !!!
Mitul Vadalia's user avatar
1 vote
1 answer
409 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 ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
85 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 ...
Jan Zikmund's user avatar
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 ...
Chirag Patel's user avatar
  • 6,156