storeSettings = new StoreSettings(); $this->cartItems = $cartItems; $this->itemCount = Arr::get($config, 'item_count') ?? 0; $this->defaultOpenCart = Arr::get($config, 'open_cart') ?? false; $this->isAdminBarEnabled = Arr::get($config, 'is_admin_bar_enabled') || is_admin_bar_showing() ?? false; $this->cartRenderer = new CartRenderer($cartItems); } public function render() { ?>