cancel
Showing results for 
Search instead for 
Did you mean: 

Terms and conditions change from opening modal to page redirect

Terms and conditions change from opening modal to page redirect

Hey,

 

The terms and conditions opens a modal, but it's buggy because de header is all blank and too big, and I have a dedicated terms and conditions page already so I want to redirect the users to that page with a "target:_blank" and not opening the buggy modal, but I can't understand where can I change that, I see the module-checkout-agreements but idk where to change from modal to redirect.

 

Thanks Smiley Very Happy

1 REPLY 1

Re: Terms and conditions change from opening modal to page redirect

Hi @rui_silva1 

Please try to override JS with your theme:

vendor/magento/module-checkout-agreements/view/frontend/web/js/view/checkout-agreements.js

and replace code with below code:

/**
         * Show agreement content in modal
         *
         * @param {Object} element
         */
        showContent: function (element) {            
            console.log("test");            
            window.open('https://yoursite.com/term-condition-page');            
        },


Issue resolved ?
Please click on 'Kudos' & Accept as Solution!



Problem solved? Click Accept as Solution!