QUESTION:
I installed the module M2 Quick View on my site Magento M2.2.5 and got the error below on compile:
[RuntimeException]
Class Magento\Catalog\ViewModel\Product\Checker\AddToCompareAvailability does not exist in [Bss\Quickview\Controller\Catalog\Product\Add\Interceptor]
Can you provide me the solution to fix this?
ANSWER:
The error happens since module M2 Quick View v1.0.9 is not compatible with M2.2.x - M2.3.2.
To fix this error, please edit the file app/code/Bss/Quickview/Controller/Catalog/Product/Add.php
as below:

Or download the attached file below and overwrite the current file on your site.
If you have any other question or concern, please feel free to contact us. We'd be happy to support!
Get to know us!!
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Improve your website performance by choosing our extensions:
- BSS Commerce’s Magento 2 B2B Extension simplifies wholesale operations with flexible pricing and advanced company management.
- BSS Commerce’s Magento 2 SEO Extension boosts search visibility and drives more organic traffic with powerful optimization features.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article