Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

$(document).on('click', ".shopify-orders", function () {

    doGetAjaxRequestHandler(context + "/shopify/orders",
    (response) => {
        $('#main-content').html(response);
        // Initialize DataTable
        $('#orders').DataTable();

    });
});

$(document).on('click', ".order-detail", function () {
    let id = $(this).data('id');
    id = id.substring(id.lastIndexOf('/') + 1);
    doGetAjaxRequestHandler(context + "/shopify/order/place/"+id, (response) => {
        $('#main-content').html(response);
    });
});