It looks like you're new here. If you want to get involved, click one of these buttons!
Wanting to add a count of items in the users shopping cart in the header. Looks like this is the user had 3 items in the cart:
Shopping Cart (3)
I want to populate the (3) with the a method in the "Cart_model"
I put this code in the _blocks/header.php file
$cartItems = $this->Cart_model->countItemsInCart($cartId);
It throws an error:
Message: Undefined property: MY_Loader::$Cart_model
What's the way to get around this?