<input type="radio" name="postamat" ID="PIC01"..............>
<input type="radio" name="postamat" ID="PIC02"..............>
<input type="radio" name="postamat" ID="PIC03"..............>
<script>
this.axios({
method: 'post',
url: 'https://e-solution.pickpoint.ru/api/postindexpostamatlist',
headers: {
'Content-type': "application/json",
},
data: {
PostIndex: `<? print_r ($_POST['ORDER-NUM']);?>`,
},
})
.then(data => {
document.getElementById('rmx').innerHTML += data.data.PostamatList.map(n =>
`<div>
<label><img style="vertical-align: text-bottom;" src="/api/pickico.png" alt="pickpoint" />
<input type="radio" name="postamat" value="Pickpoint, ${n.CitiName}, ${n.Address} (#${n.Number})">
${n.CitiName}, ${n.Address}, ${n.WorkTimeSMS}, <b>Стоимость доставки: <span style="color: red; font-weight:bold;"><?=$arFields[PROPERTY_BOXBERRY_VALUE]?></span> рублей</b></br></br>
</label>
</div>`
).join('');
});
</script>
<script>
this.axios({
method: 'post',
url: 'https://e-solution.pickpoint.ru/api/postindexpostamatlist',
headers: {
'Content-type': "application/json",
},
data: {
PostIndex: `<? print_r ($_POST['ORDER-NUM']);?>`,
},
})
.then(data => {
document.getElementById('rmx').innerHTML += data.data.PostamatList.map((n, ind) =>
`<div>
<label><img style="vertical-align: text-bottom;" src="/api/pickico.png" alt="pickpoint" />
<input type="radio" id="PIC${ind}" name="postamat" value="Pickpoint, ${n.CitiName}, ${n.Address} (#${n.Number})">
${n.CitiName}, ${n.Address}, ${n.WorkTimeSMS}, <b>Стоимость доставки: <span style="color: red; font-weight:bold;"><?=$arFields[PROPERTY_BOXBERRY_VALUE]?></span> рублей</b></br></br>
</label>
</div>`
).join('');
});
</script>