$this->cart->contents(boolean);¶
Returns an array containing everything in the cart. You can sort the order, by which this is returned by passing it “true” where the contents will be sorted from newest to oldest, by leaving this function blank, you’ll automatically just get first added to the basket to last added to the basket.