0

I have a custom modal in Magento 2 , using knokoutjs. This modal has a Continue Shopping button :

'buttons': [ {
                text: 'Continue Shopping',
                click: function () {
                    this.closeModal();
                }
            }]

Close modal function:

 closeModal: function () {
        $(this.modalWindow).modal('closeModal');
    }

On the category listing page, when modal is closing, it's redirecting me to footer. On product page view works just fine. Any Ideas?

  • If it works on one page and not on other page, debugging is only the option, first try with single product category page – Yash Patadia Feb 21 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.