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
2 votes
1 answer
626 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
4 votes
2 answers
2k 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
0 votes
1 answer
189 views

Add to Compare: is there known exploitation?

Last week, one of my site received a bruteforce attack. When I check log/reports, I see this in my report: a:5:{i:0;s:313:"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or ...
Adarsh Khatri'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
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
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
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,240
0 votes
1 answer
81 views

Empty getAddToCompareUrl only in guest mode

I have this variable $_compareUrl=$this->getAddToCompareUrl($_product) to get compare url but this is empty in guest mode, only when i signed in magento it's not empty. I recently migrate from ...
unknownmx's user avatar
0 votes
1 answer
1k views

How can I remove wishlist and compare block pieces form the 404 not found page?

I need to remove wishlist and compare from the not found page. I use CMS to make the not found page. This is what I tried as a Design XML Update, and it didn't work: <referenceContainer name="...
Vladimir Despotovic's user avatar
0 votes
1 answer
360 views

How can I get compare button in header section with the same functionality as of cart button

I'm an IT student and new in magento. I was wondering, how can I create compare button as on that link http://ultimo.infortis-themes.com/demo/ I found sidebar.phtml file under vendor/magento/module-...
Dariusz's user avatar
1 vote
0 answers
638 views

Magento 2 - Compare product Count and Compare product URL Not working?

In Magento 2, I am not getting compare product count on adding the product to compare list even it does not redirects when I click on compare product button in header location. Kindly Suggest.
user48923's user avatar
2 votes
2 answers
4k 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
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
259 views

How to add "Compare List" into cms page?

I tried to add compare list into cms page, but it doesn't work {{block type="catalog/product_compare" template="catalog/product/compare/list.phtml"}}
Michael's user avatar
  • 19
0 votes
0 answers
62 views

Add To Cart Button have not press event

I am new to magento 2.1.. I have a problem to show the products.Product is shown in that page but the issue is the when i am pressing add to cart button it is not pressing also same problem in add to ...
Moin Malek's user avatar
3 votes
1 answer
579 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
1 answer
926 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
1 vote
0 answers
359 views

Magento 2.1.2: How display products compared with the popup - AJAX

I have this code - custom module Ajax: _CompareAction : function(){ $('body').on('click','.action.compare',function(e){ e.preventDefault(); var href = $(e....
MMateusz's user avatar
1 vote
0 answers
881 views

Products are not adding in compare list in magento2?

I have to implement product compare feature in my magento2. For this i am using <?php $this->getAddUrl($product); ?> and I am getting the compare url of the product. But after click on add ...
Yudi's user avatar
  • 616
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
3 votes
1 answer
5k 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
1 vote
0 answers
99 views

How to export Compare product list in PDF formate in magento 1.9?

I want export Compare product list in PDF. i am using magento 1.9. someone knows answer please help. thanks in advance.... following is my list.html file. <div class="comparison-div"> <?...
Neeya's user avatar
  • 363
0 votes
0 answers
101 views

How to send compare product list via email in magento 1.9?

I want send compare product list via email in magento 1.9. i have tried this link Email Compare Product List but not works for me. following is my list.phtml file <?php <div class="page-title ...
Neeya's user avatar
  • 363
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
  • 754
0 votes
1 answer
271 views

How to add a delete button/icon for each product in the compare page? [closed]

How can I add a delete function for each product on product compare page? For example, if I added three products and click compare, then decided to remove any one of the products by clicking on a ...
ASSLTT's user avatar
  • 73
5 votes
1 answer
9k 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
0 votes
1 answer
862 views

Magento2: Why does the Compare Products sidebar on category pages not show up, but return when I delete a certain layout file? See further explanation

The Compare Products sidebar on category pages does not show up, and I was trying to figure out why. So I temporarily deleted files under the app/design/frontend/customer-name/default folder to see if ...
kig's user avatar
  • 41
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
3 votes
2 answers
215 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
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,369
0 votes
1 answer
230 views

how to display attribute group set on compare list page on frontend?

I want to display Attribute Group set Name on frontend of compare page. i tired due to searching. anybody knows how to make attribute group set on compare product page list. please help. your help be ...
Neeya's user avatar
  • 363
0 votes
1 answer
487 views

How to view related products for all products in compare list?

I want to add the related products block to the compare list, however I am getting a fatal error Call to a member function getRelatedProductCollection() on a non-object. I suspect this is because I ...
Richard Parnaby-King's user avatar
1 vote
1 answer
908 views

Compare products in sidebar of category pages not showing when no products

I am working on http://urbantrend.co.in/test/ project. And In sidebar on category pages compare products disappears if there is no product http://urbantrend.co.in/test/index.php/womens.html. If i have ...
Kishor's user avatar
  • 359
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
0 votes
1 answer
389 views

Removing "Compare" from my template in Magento 2

Each product has a "Add to Compare" link with it and the catalog list page has a "Compare Products" section in the sidebar. I want to remove all trace of compare functionality in my template. All the ...
Paul Wright's user avatar
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
1 vote
1 answer
865 views

Product add to compare if product out of stock

If any product is out of stock in inventory then that's not add to compare list. But if I click Add to Compare button then It's show a message The product PRODUCT NAME has been added to comparison ...
Abdus Salam's user avatar
0 votes
2 answers
1k views

Can't add product to compare, _validateFormKey() return false

I'm updating an old Magento instance from 1.7.0.2 to 1.9.2.1 (I know there is the v. 1.9.2.2). I'm also using the Ultimo theme, but i tested the bug also with the standard RWD theme that comes with ...
hippoglollum's user avatar
0 votes
3 answers
510 views

compare block disappears from sidebar

I see when there is no item selected to compare, the block-compare is not displaying in sidebar and after adding product to compare it is there. How to display this block always and show message"You ...
Zinat's user avatar
  • 2,079
0 votes
1 answer
551 views

Compare and wishlist link doesn't work

I need to add compare and wishlist link in to the 1column.phtml file. I added this code in this page but nothing show!!! app/design/frontend/default/celebrity/template/page/1column.phtml For compare ...
Elham Gdz's user avatar
  • 605
0 votes
1 answer
484 views

How to display Attribute Group Name on compare page?

I used this guide and was able to display the attribute group name on the product page, but I'm wondering how to do the same on the compare page ? I'm using magento ce 1.9.2.1 with custom Porto theme ...
Tony's user avatar
  • 31
0 votes
1 answer
180 views

Product compare list empty on costum module page

At header.phtml I load the product compare list with the following code: $collection = $this->getLayout()->createBlock('catalog/product_compare_list')->getItems(); On default pages like ...
FamousWolluf's user avatar
1 vote
1 answer
599 views

Add to compare redirects to home page

I've got this issue. I'm building a multiwebsite shop with magento 1.9.2. I've modified the index php to auto detect language and insert language code in url following this: https://gist.github.com/...
krybbio's user avatar
  • 1,258
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
1 vote
1 answer
523 views

Adding attributes to “list.phtml” for compare page

I want to show all attributes of a product in compare page. I added this code in catalog/product/compare/list.phtml but I get this error: <h2><?php echo ( ( $_item->...
Elham Gdz's user avatar
  • 605
0 votes
2 answers
1k views

hide empty attributes from compare product [duplicate]

How can i hide empty attributes from compare product? is it possible ? if yes how ? For better understanding i attached image please look in it. Thank you in advance.
Jain Bhavesh'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
0 votes
1 answer
537 views

how to remain in same page when i click on compare button in magento 1.9

When clicking on the add to compare button, I want to remain on the same page & perform the add function without redirecting to the homepage - is this possible?
ramesh's user avatar
  • 19
0 votes
1 answer
164 views

How do I constrain column width on the compare popup page?

http://election.perumiaminews.com My attributes are fairly long so when you click the compare button, the column with the attributes is super wide. The other columns have a max width so the text ...
OblongSquare's user avatar
1 vote
1 answer
525 views

Magento Products Compare limit

I want to set a max amount of products that can be added to the compare list. I want to set the max at 3 products that can be compare. Tried this code: Step1:Create config.xml at app>code>local>...
JGeer's user avatar
  • 1,422