Код: Выделить всё
$('#log-order-button').on('click', function() {
const orderId = '{{ order_id }}';
$.ajax({
url: 'index.php?route=extension/module/log_order/log&user_token={{ user_token }}&order_id=' + orderId,
type: 'GET',
dataType: 'json',
success: function(json) {
// handle response
},
error: function(xhr, status, error) {
// handle error
}
});
});
Подробнее здесь: https://stackoverflow.com/questions/796 ... id-user-to
Мобильная версия