Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [compare]

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

0
votes
2answers
23 views

Magento 2 - Compare & Wishlist hide when inactive [duplicate]

Is there a way to hide the Compare and Wishlist blocks on the front-end (in the navigation) when they are not in use?
1
vote
1answer
20 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
1answer
139 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 ...
0
votes
0answers
49 views

add to compare list

I'm building rest api to add product to compare list. that's my code: /** * @api * @param int $productId * @return array */ public function addProduct($productId){ $userType = $this->...
1
vote
0answers
30 views

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 ...
0
votes
0answers
21 views

Custom Compare Functionality Magento 2

I have to develop custom compare functionality with custom records data. I am getting data records using API and displaying it in the table. In this table I've add column to add each record to ...
0
votes
1answer
65 views

Retrieve Compare Items Collection returning zero Items Magento 2

While I am trying to return compare items in custom module phtml file, it is returning zero items but in database table catalog_compare_item showing all the added items to compare. Class Used : ...
1
vote
1answer
43 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
1answer
31 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....
0
votes
0answers
30 views

Adding configured product to compare list?

When I configure a product (its a configurable product) and add it to the compare list, the configurable product is added instead of the configured one. That does not really make sense. Is there a ...
0
votes
0answers
17 views

Magento2: Custom comapre button functionality

How to add custom compare button with check-box. The page should be not refreshing. Please check below screenshot My Magento v2.0.17
1
vote
0answers
36 views

Magento 2 compare only those products which are having same parent category?

anyone having an idea how to compare only that category which is having the same parent. for example, a customer can compare Samsung washing machine with LG washing machine but if customer wants to ...
0
votes
1answer
218 views

How to get product's comparable attributes list by product id

I would like to know, the process to get list of comparable attributes of a product with their label/name and their values. i'm using this, but it's not working. $attributes = $objectManager->...
3
votes
1answer
334 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: ...
0
votes
0answers
34 views

dynamic generated and responsive Table in Magento

I need to compare all products based on their attributes in magento on our website https://i.stack.imgur.com/b5Ulp.jpg This is how table looks like in HTML but it's totally uneresponsive and obviously ...
0
votes
1answer
249 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. ...
0
votes
2answers
37 views

How to call Plugin which already using the preference for vendor file in magento 2

How to call Plugin which already using the preference for vendor file in magento 2. I have already has preference which is overridding the some custom Magento controller, Now how can i use plugin to ...
1
vote
2answers
566 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.
3
votes
2answers
1k 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 ...
1
vote
0answers
79 views

How to change position of attributes in compare products

Magento 2.1 in the "More Information" of products page position. It's okay but when I compare position it incorrect such as the product page attribute positions 1 2 3 4 but in compare 2 3 4 1. 1 is ...
0
votes
1answer
46 views

How to delete compare and shop by function in Magento 2

I'd like to delete all the compare and shop-by functions completely, how can I do this through the cpanel? Thank you.
2
votes
0answers
971 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
1answer
335 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.
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
80 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
470 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
1k 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.
2
votes
2answers
651 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
45 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
74 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
429 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
240 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
485 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.
1
vote
2answers
1k 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
21 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
214 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
48 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
379 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
533 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
255 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
520 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
692 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
2k 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
81 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
88 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
5k 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
216 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
4k 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
586 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
2k 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 ...