<?xml version="1.0" encoding="UTF-8"?>
<response>
<Call Number="5296808"/>
<Call Msg="Добавлено заказов 1"/>
<Order DispatchNumber="1039548075" Number="number-Eotvl0"/>
<Order Msg="Добавлено заказов 1"/>
</response>
curl_setopt($curl, CURLOPT_HTTPHEADER,
array('Content-Type: application/x-www-form-urlencoded',
'Content-Length: '. strlen($request)));
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, [
'xml_request' => urlencode($request)
]);
<div class="basket basket__svg--active" id="basket" tabindex="1">
<div class="wrapper-blocker">
<div class="item__link-blocker"></div>
<a class="basket__link" href="#">
<svg class="empty-basket" width="25" height="25"><use xlink:href="sprite.svg#empty-basket"></use></svg>
</a>
<div class="popup-basket" id="popup-basket">
<div class="inner">
<table class="table" border="1">
<tr><th>Товар</th><th>Количество</th><th>Сумма</th></tr>
<tr><td>Болгарка</td><td>1 шт.</td><td>5852 р.</td></tr>
<tr><td>Сверло</td><td>5 шт.</td><td>250 р.</td></tr>
</table>
<form action="#" method="post" class="form__button">
<button name="Купить" class="butt butt__pay">Купить</button>
<button name="Отмена" class="butt butt__cancel">Очистить</button>
</form>
</div>
</div>
</div>
</div>
.popup-basket {
position: absolute;
outline: none;
display: none;
right: 7px;
border: 1px solid;
border-radius: 10px;
z-index: 1;
background-color: var(--background-color-popup);
}
.basket__link {
display: block;
}
.wrapper-blocker {
position: relative;;
}
.basket:hover .item__link-blocker {
visibility: hidden;
}
.basket:hover .popup-basket {
display: inline-block;
}
.item__link-blocker {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
opacity: 0;
}
.basket__link {
pointer-events: none;
}
.basket:hover .basket__link {
pointer-events: auto;
}
.basket:hover .popup-basket {
display: inline-block;
}
.basket__link {
pointer-events: none;
}