Skip to content
Rubin Shrestha
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
  • Search
Rubin Shrestha
  • Search
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
Home » Blog » Magento 2.3 – Set max compare products to 2
Blog

Magento 2.3 – Set max compare products to 2

by |Published November 6, 2022

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.4, because I do not get any errormessage and still can add more than 2 items.

How can I achieve this?

  • Magento
  • Magento1
  • Magento2

You may also like

Getting an access denied trying to mount a VHDX to wsl on Windows 11
Published December 26, 2022

Getting an access denied trying to mount a VHDX to wsl on Windows 11

I created a new VHDX using disk manager, and I’m trying to mount it to WSL2, running the following command: wsl -d […]

Mac automator “quick action” service responds slowly
Published January 2, 2022

Mac automator “quick action” service responds slowly

I programmed a “service” pull up Visual Studio Code via a hotkey (ctrl-cmd-e) that triggers an automator “quick action”. After the latest […]

Quantiphi Interview Experience (On-Campus) 2022-23
Published July 14, 2022

Quantiphi Interview Experience (On-Campus) 2022-23

Quantiphi is an AI-ML based Product company Recruitment process: * It hires for 3 roles Framework engineer (FE ), BA(Business Analyst ), […]

Internet connectivity issues – “Request timeout” followed by “General failure” [closed]
Published November 13, 2022

Internet connectivity issues – “Request timeout” followed by “General failure” [closed]

I recently moved into a new apartment and my internet keeps cutting on and off. I haven’t had this issue prior to […]

Interesting

  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
  • Is this the best way to rename multiple files in a Window folder using PowerShell?
  • When should I be using a fan controller over the ones on the motherboard?
  • Windows 11 taskbar search keeps loading forever and never shows results

Post navigation

  • Previous post Using a custom CSS file – hiding a button
  • Back to post list
  • Next post how to display cms block from position on product page?
——————-
  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
——————-
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
——————-
  • Blog
  • Contact
  • Nepali Typing | Nepali Unicode | English to Nepali | English Conversion | English Translate | नेपाली to English | नेपाली टाईपिङ
  • Occasional Photography
    • The desert that everybody loves in pictures
  • Photography
  • Rubin Shrestha

© 2026 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme