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

Blank screen when connecting to a new used Cisco Catalyst 2960s from Ubuntu
Published May 28, 2026

Blank screen when connecting to a new used Cisco Catalyst 2960s from Ubuntu

Looks like I have the correct cable to connect with a Cisco Catalyst 2960s: nickout@mordor:~$ nickout@mordor:~$ ls /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A914IGBX-if00-port0 /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A914IGBX-if00-port0 nickout@mordor:~$ nickout@mordor:~$ lsusb […]

Why does it take so long to execute commands with sudo?
Published October 24, 2021

Why does it take so long to execute commands with sudo?

I have a VM running Kali Linux 2021.3. I have only 2 users kali and root. The kali user possesses sudo permissions […]

Published May 3, 2025

How a Magento Development Agency Can Rescue a Failing Online Store?

Running an online store is never easy, but it’s even harder when your site is built on a powerful platform like Magento […]

Advanced Shipping Restrictions for Magento 2 by Cynoinfotech
Published July 6, 2025

Advanced Shipping Restrictions for Magento 2 by Cynoinfotech

Magento 2 Shipping Restrictions Extension by Cynoinfotech Continue reading on Medium »

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