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
-1
votes
0answers
17 views

Magento 2.3.2 Helper function getItemCollection not working

I added to add to compare button in catalog category listing page and it seems working fine when I add a product in compare list. when I navigate to compare products list page it shows all products ...
0
votes
1answer
22 views

Retrieved compared products list in homepage

I like to retrieve compared product collections in homepage template. Is there any method to retrieve the data?
0
votes
0answers
21 views

Compare() link to be placed in dropdown menu in magento 2.3

I want to place the Compare link inside the dropdown below Wishlist in header links as shown here OR https://prnt.sc/os1u0o. Can any one tell me how to do that ?
0
votes
0answers
17 views

add to compare doesn't work

When I want to add a product to compare list I get the error "page not found". The wishlist works fine, if I access the link from "mydomain/catalog/product_compare/add" it is redirected to "mydomain/...
0
votes
1answer
16 views

compare images from catalog_product_entity_media_gallery with actual presence on server

So, In our catalog_product_entity_media_gallery table in the Magento 2.3.1. database are around 25.000 lines. Like: 18963,90,/_/_/__1_3.jpg,image,0 18965,90,/_/_/__1_4.jpg,image,0 10815,90,/_/_/__1....
0
votes
0answers
18 views

Magento2: How to add button “add to campare” on product page

I will try to add button "Add to compare" on the product page. https://prnt.sc/o39yvp So I checked location file price alert: https://prnt.sc/o39zbp path: vendor/magento/module-product-alert/view/...
0
votes
2answers
29 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
22 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
212 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
65 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
50 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
36 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
104 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
44 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
34 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
35 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
18 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
62 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
236 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
418 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
1answer
290 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
39 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
707 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
81 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
48 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
1k 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
361 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
89 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
509 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
712 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
75 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
507 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
268 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
515 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
225 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
53 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
402 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
576 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
263 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
551 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
742 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
3k 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
90 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 ...