<!-- TITLE: Sticky Cart Header - Magento 2 module documentation-->
<!-- SUBTITLE: Author: Paweł Wasiluk -->
# Sticky Cart Header Module
## Module overview
Let your customers see the cart regardless of which part of the page they are in. The Sticky Cart Header module adds so-called sticky header with the current state of the cart and buttons that allow you to quickly go to the shopping process or basket.
## Module compatibility
This module is compatibile with Magento Community versions: **2.3**.
## How it works
After installing the module, head to the Admin Panel. There, go to **Stores > Configuration > Aurora > StickyHeader**.

Under the given weight, you will receive configurations for the module, consisting of 2 fields:
**Enable On Main Page** - enable the module for all pages except the product card
**Enable On Product Page** - enable the module for the product card page
After completing the configuration. Sticky header is now fully functional. On all pages excluding the product card, the module is as follows:

And on the product card page, where it differs in that instead of going to the cart and purchasing process, it allows you to add the product to the cart:

It is worth noting that sticky header is applied only if we have a product in the cart.
## Demo
demo3.magecreation.com
## Installation
### Composer
1. Add repo to composer.json:
```text
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:magento2/sticky-cart-header.git"
}
...
],
```
2. Add package to composer.json:
```text
"require": {
...
"aurora/sticky-cart-header": "1.*"
...
},
```
3. In Magento root folder run commands:
```text
composer update aurora/sticky-cart-header
php bin/magento module:enable Aurora_StickyCartHeaders
php bin/magento setup:upgrade
```
### Manual
1. Unzip archive.
2. Upload extension files on your server to:
```text
{Magento root}
└── app/
└── code
```
3. In Magento root folder run commands:
```text
php bin/magento module:enable Aurora_StickyCartHeader
php bin/magento setup:upgrade
```
### Thank you for your interest in our products!