-
1. Re: Checking Contents of Shopping Cart using Liquid
Robert Bell (Bosweb) Nov 11, 2014 8:10 PM (in response to Lynda Spangler)BC allows the cart to change without an associated page load, so if you could get the cart data through Liquid it may not always be accurate.
-
2. Re: Checking Contents of Shopping Cart using Liquid
Lynda Spangler Nov 11, 2014 8:18 PM (in response to Robert Bell (Bosweb))That is fine for my purpose. I just want to know what is in their cart on page load. If they add items after page load that is okay.
-
3. Re: Checking Contents of Shopping Cart using Liquid
Adam Cook Nov 11, 2014 9:29 PM (in response to Lynda Spangler)A little Ajax would do the trick. Just retrieve the same page via Ajax, and inspect the contents for the cart.
-
4. Re: Checking Contents of Shopping Cart using Liquid
Liam Dilley Nov 11, 2014 11:16 PM (in response to Adam Cook)You need none of this.
If you do the code within the specified template for the cart that already exists, even with liquid - BC has the stuff in place and it will update.
If you are doing the cart information through a collection, outside of this scope, all you need to do, say with jQuery is the simple .load and partial refresh a page (google, easy to find) and you would need to hook into that on times say add to cart is fired.



