public function beforeRender() { $this->template->shoppingCartItems = $this->shoppingCart->getItemsCount(); }