addToCart(product) {
var productPrice = this.productCount * parseInt(product.price);
// this.cart=[];
let cartProduct = {
product_id: product.id,
name: product.name,
image: product.image,
count: this.productCount,
totalPrice: productPrice
};
this.cartService.addToCart(cartProduct).then((val) => {
//this.cart.push(cartProduct);
});
}