wordpress use single ajax in place of multiple ajax requests in a smarter way
I appreciate your question is quite old and you no doubt already have your solution but hopefully this may help someone else. You could replace your javascript post calls with a single call to a single function that extracted both parts of data and returned them as an object. $(‘body’).on(‘change’,’#product_name’, function() { //Get product prices … Read more