I\'m trying to make a ajaxed shopping cart in Shopify. I have made the product page add an item to cart without refreshing or going to the cart page. To see cart, you can click
This might not be exactly what you need but it may help. I have made and implemented an ajax cart on a shopify site I develop for. I use jquery & JSON to do this type of stuff and here's what I do:
jQuery.getJSON('/cart.js', function (cart, textStatus) {
//the cart info is in the callback. the item_count is available as part of the callback
//below I set my cartcount div with the current cart item_count
var carttext=cart.item_count;
jQuery("#cartcount").text(carttext);
});