Jump to content

Nie wyświetla regulaminu w popup


lukaszwojcik

Recommended Posts

Witam, mam pytanie o wyświetlanie okna regulaminu przy składaniu zamówienia.

Aktualnie na końcu zamówienia klikając w link do regulaminu przy boxie do potwierdzenia akceptacji regulamin się nie wyświetla.

Jak to naprawić ew. zrobić aby regulamin otwierał się w nowym oknie ? Próbowałem target blank w payment.tpl we fragmencie '[1]' => '<a href="#checkout-payment-step">',
nie działa.

Co może być powodem nie wyświetlania się regulaminu w oknie ? Link się zgadza.

może modyfikacja w pliku checkout.js
$('.js-terms a').on('click', (event) => {
event.preventDefault();
var url = $(event.target).attr('href');
if (url) {
// TODO: Handle request if no pretty URL
url += `?content_only=1`;
$.get(url, (content) => {
$('#modal').find('.js-modal-content').html($(content).find('.page-cms').contents());
}).fail((resp) => {
prestashop.emit('handleError', {eventType: 'clickTerms', resp: resp});
});
}

$('#modal').modal('show');
});

niestety na js się nie znam kompletnie

Będę wdzięczny za pomoc

Prestashop 1.7 sklep https://daars.pl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...