Child Product Lock Removed
This commit is contained in:
parent
cd85077bdd
commit
a3ce5e333a
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue