$(document).ready(function() {
$('#one_click_buy').submit(function(e) {
e.preventDefault();
$.ajax({
type: "POST",
url: 'component_folder/ajax.php',
dataType: "json",
data: {'id': <?= $arResult['PRODUCT_ID'] ?>},
success: function(response)
{
$('#OneBuyClickRX').modal('hide');
$('#ordersuccess').modal('show');
}
});
});
});
json_decode($id);