Merge pull request #5418 from devansh-webkul/child-product
Case Removed Only For Configurable #5398
This commit is contained in:
commit
f61daeaab7
|
|
@ -101,10 +101,7 @@ 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) {
|
||||
if ($product->parent && $product->parent->type !== 'configurable') {
|
||||
$product = $this->productRepository->findOneByField('id', $product->parent_id);
|
||||
$data['product_id'] = $product->id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue