I've migrated a Couch site to a new server/IP. The site is precisely as-is and works fine in every way (except this). I used the WHM/cPanel transfer tool so I'm _pretty_ sure all settings are the same - and near certain all files are identical.
But when clicking 'ADD TO CART', nothing is added to the cart.
There are no errors thrown. Just the item is not added and the cart remains empty.
In /js/cart-modal.js I added:
console.log($(this).attr('action'));
console.log($(this).serialize());
Just before the Ajax call - and those values look absolutely fine.
Console doesn't show any issues with the Ajax call.
I'm struggling to follow the flow in the code and can't for the life of me work out what the problem is here.
Thanks for any advice you can offer.
But when clicking 'ADD TO CART', nothing is added to the cart.
There are no errors thrown. Just the item is not added and the cart remains empty.
In /js/cart-modal.js I added:
console.log($(this).attr('action'));
console.log($(this).serialize());
Just before the Ajax call - and those values look absolutely fine.
Console doesn't show any issues with the Ajax call.
I'm struggling to follow the flow in the code and can't for the life of me work out what the problem is here.
Thanks for any advice you can offer.