diff --git a/components/buy/buy.js b/components/buy/buy.js
index 948a4d5..0354a9c 100644
--- a/components/buy/buy.js
+++ b/components/buy/buy.js
@@ -55,6 +55,10 @@ $(document).ready( () => {
Apis.addToCart(null, pid, selectedQty).then( (data) => {
console.log(data)
+ const headerCart = $('.component-header .cart-cta .counter')
+ if(headerCart.length) {
+ headerCart.text(data.cart.length)
+ }
modal.fadeIn()
}).catch( (error) => {
console.error(error)
diff --git a/components/buy/buy.scss b/components/buy/buy.scss
index 38d21cf..2b07e2f 100644
--- a/components/buy/buy.scss
+++ b/components/buy/buy.scss
@@ -233,7 +233,7 @@
.goto,
.close {
- @include font-style($font-serif, 'regular', $font-24);
+ @include font-style($font-serif, 'regular', $font-20);
}
}
}
@@ -251,7 +251,7 @@
.add-modal {
.modal-content {
- max-width: 700px;
+ max-width: 750px;
}
}
}
diff --git a/components/header/header.html b/components/header/header.html
index 7b43a3d..eac36bf 100644
--- a/components/header/header.html
+++ b/components/header/header.html
@@ -6,6 +6,10 @@
+
+ = count($_SESSION['CART']);?>
+
+