Child Product Lock Removed

This commit is contained in:
Devansh 2021-12-13 10:27:23 +05:30
parent cd85077bdd
commit a3ce5e333a
1 changed files with 0 additions and 8 deletions

View File

@ -101,14 +101,6 @@ class WishlistController extends Controller
'customer_id' => $this->currentCustomer->id,
]);
/**
* Accidental case if some one adds id of the product in the anchor tag amd gives id of a variant.
*/
if ($product->parent_id != null) {
$product = $this->productRepository->findOneByField('id', $product->parent_id);
$data['product_id'] = $product->id;
}
if ($checked->isEmpty()) {
if ($this->wishlistRepository->create($data)) {
session()->flash('success', trans('customer::app.wishlist.success'));