InfoReviews Bring Your Business to Life › Support › Image Store › How to get just the number of items in the user's cart? Viewing 4 posts - 1 through 4 (of 4 total) Post navigation Next → Author Posts October 31, 2012 at 4:56 pm #50641 DaveParticipant Is there any way to simply get the number of items in the user’s cart via PHP, outside of displaying the entire “store nav?” For example, somewhere else in our theme we would like our own message, such as, “You have 2 items in your cart.” How to get that number? October 31, 2012 at 11:38 pm #50676 Xpark MediaKeymaster @Dave, Try this global $ImStore; $ImStore->cart['items']; if there cart is empty the variable will not be set. November 5, 2012 at 3:12 pm #50801 DaveParticipant Tried that. Unfortunately, this occurs: Fatal error: Cannot access private property ImStoreFront::$cart in [file] November 6, 2012 at 9:38 am #50846 DaveParticipant Now works in 3.1.9. Thanks! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Login form protected by Login LockDown. Log In