How to get JavaScript variable in AJAX call as Laravel route name – Shopify
Hi I am using one AJAX function for 7 API sync calls so that I tried this code: <a href="javascript:void(0)" class="sync-commands" data-name="order-sync" >Shopify Order Sync</a> <a href="javascript:void(0)" class="sync-commands" data-name="shopify.order.sync">Shopify Product</a> and in ajax call, I am using this code: $('.sync-commands').on('click',…