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; }
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