<a href="#popup:fastorder" class="fastform"></a>
<script>
document.addEventListener("DOMContentLoaded", function() {
(function () {
document.addEventListener('click', function(event) {
if(event.target.closest('.t-store__card__btns-wrapper')){
const card = event.target.closest('.js-product');
const prname = card.querySelector('.js-store-prod-name').innerText;
const skuname = card.querySelector('.js-store-prod-sku').innerText;
const pricename = card.querySelector('.js-product-price').innerText;
if( event.target.querySelector('a[href="#order"]') != null ) {
const form = document.querySelector('.uc-fast-order');
form.querySelector('.t702__descr').innerHTML = 'Позиция: '+prname+'<br>Цена: '+pricename+' р.<br>Артикул: '+skuname;
form.querySelector('input[name="fastorder"]').value = prname+' - '+pricename+' р. - Артикул: '+skuname;
document.querySelector('.fastform').click();
};
};
});
})();
});
</script>
<style>
.js-store-prod-btn2{
pointer-events:none
}
.t-store__card__btns-wrapper {
cursor: pointer
}
</style>