Deleting the quickview and redirecting the product page as default

Created by Support Agent, Modified on Wed, 8 Apr at 10:46 AM by Support Agent

Could you please follow this form?
- file app/code/Bss/AjaxCart/Controller/Index/Index.php

line 208

$this->urlInterface->getUrl('ajaxcart/index/view', ['id' => $params['id']])
=>
$product->getProductUrl()

- file app/code/Bss/AjaxCart/view/frontend/web/js/ajax.js

function _requestQuickview

_requestQuickview: function (url) {
            $.fancybox.open({
                padding : 0,
                href: url,
                fitToView: false,
                autoSize: false,
                autoWidth: true,
                type: 'iframe',
                helpers: {
                    overlay: {
                        locked: false
                    }
                },
                afterLoad: function () {
                    this.height = $(this.element).data("height");
                    var id = $('.fancybox-type-iframe iframe').prop('id');
                    var height = document.getElementById(id).contentWindow.document.body.scrollHeight + 25;
                    var maxHeight = parseInt($(window).height() * 95 / 100);
                    height = (height > maxHeight) ? maxHeight : height;
                    this.height = height + 'px';
                }
            });
        },
=> 
_requestQuickview: function (url) {
    window.location.href = url;
}


Here is our information that you might care:


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.


Browse for more at: https://bsscommerce.com/magento-2-extensions.html and discover our most powerful tools that might help you boost your store performance:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article