This commit is contained in:
Vivek Sharma 2020-02-11 13:29:22 +05:30
commit 213a622fec
2 changed files with 2 additions and 6 deletions

View File

@ -168,9 +168,10 @@ class Cart {
if (isset($cartProduct['parent_id']) && $cartItem->parent_id != $parentCartItem->id) {
$cartItem = $this->cartItemRepository->create(array_merge($cartProduct, ['cart_id' => $cart->id]));
} else {
if ($product->getTypeInstance()->showQuantityBox() === false) {
if ($cartItem->product->getTypeInstance()->showQuantityBox() === false) {
return ['warning' => __('shop::app.checkout.cart.integrity.qty_impossible')];
}
$cartItem = $this->cartItemRepository->update($cartProduct, $cartItem->id);
}
}

View File

@ -8,11 +8,6 @@
.list-card .wishlist-icon i {
padding-left: 10px;
}
.product-price span:first-child, .product-price span:last-child {
font-size: 18px;
font-weight: 600;
}
</style>
@endpush