- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020
02:51 AM
06-01-2020
02:51 AM
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
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020
01:23 AM
06-02-2020
01:23 AM
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!