посоны, приветствую
помогите пожалуйста, не могу подружится с sweetalerts2
надо вызвать попап на такой кнопке
<div class="status-block">
<a href="#" class="buy-button w-inline-block" data-swal-template="my-template" id="test">
<div class="<?php echo $status2; ?>"><?php echo $status1; ?></div>
js код
Swal.fire({
html: '<h3>Выберите способ оплаты</h3>' +
'<h5>Производя оплату Вы подтверждаете что ознакомлены и согласны с правилами магазина</h5>' ,
imageUrl: '/images/qiwi.png',
imageWidth: 300,
imageHeight: 170,
showDenyButton: true,
showCancelButton: false,
showConfirmButton: true,
denyButtonText: '<h4>QIWI</h4>',
confirmButtonText: '<h4>CARD</h4>',
denyButtonColor:
#6c994e
,
confirmButtonColor:
#6c994e
,
}).then((result) => {
if (result.isConfirmed) {
и дальше по тексту код открывает такие же попапы. надо вызвать с кнопки первый