People who code: we want your input. Take the Survey

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
4
votes
2answers
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....
0
votes
1answer
160 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 ...
1
vote
1answer
695 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 ...
4
votes
1answer
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.
3
votes
2answers
1k 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.
1
vote
1answer
50 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?
0
votes
1answer
78 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 ...
0
votes
1answer
940 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="...
0
votes
1answer
331 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-...
1
vote
0answers
604 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.
2
votes
2answers
2k 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
0answers
22 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
1answer
246 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"}}
0
votes
0answers
56 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 ...
3
votes
1answer
534 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
1answer
818 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 ...
1
vote
0answers
308 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....
1
vote
0answers
730 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 ...
5
votes
2answers
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 ...
3
votes
1answer
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 ...
1
vote
0answers
86 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"> <?...
0
votes
0answers
97 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 ...
1
vote
2answers
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> <!...
0
votes
1answer
237 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 ...
5
votes
1answer
7k 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="...
0
votes
1answer
734 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 ...
1
vote
1answer
3k 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 ...
3
votes
2answers
203 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
1answer
3k views

Magento 2 - Disable the compare function in admin panel

Is there a way to disable the compare function in admin panel?
0
votes
1answer
200 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 ...
0
votes
1answer
453 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 ...
1
vote
1answer
804 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 ...
1
vote
2answers
927 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. ...
0
votes
1answer
357 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 ...
46
votes
17answers
75k 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 ...
1
vote
1answer
773 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 ...
0
votes
2answers
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 ...
0
votes
3answers
498 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 ...
0
votes
1answer
540 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 ...
0
votes
1answer
467 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 ...
0
votes
1answer
149 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 ...
1
vote
1answer
568 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/...
4
votes
1answer
1k 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?...
1
vote
1answer
482 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->...
0
votes
2answers
983 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.
2
votes
1answer
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 ...
0
votes
1answer
507 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?
0
votes
1answer
156 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 ...
1
vote
1answer
476 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>...
1
vote
1answer
169 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 ...