How to get just the number of items in the user's cart?

Bring Your Business to LifeSupportImage StoreHow to get just the number of items in the user's cart?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #50676
    Xpark Media
    Keymaster

    @Dave,

    Try this

    global $ImStore;
    $ImStore->cart['items'];

    if there cart is empty the variable will not be set.

    #50801
    Dave
    Participant

    Tried that. Unfortunately, this occurs:

    Fatal error: Cannot access private property ImStoreFront::$cart in [file]

    #50846
    Dave
    Participant

    Now works in 3.1.9. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.