fixed wishlist
This commit is contained in:
parent
3539d32cbc
commit
e7480df0c5
|
|
@ -34,7 +34,7 @@ class ProductDetail extends JsonResource
|
||||||
'category_id' => $this->category_id ?? null,
|
'category_id' => $this->category_id ?? null,
|
||||||
'variables' => $this->decodeVariables($this->variables),
|
'variables' => $this->decodeVariables($this->variables),
|
||||||
'skus' => SkuDetail::collection($this->skus)->jsonSerialize(),
|
'skus' => SkuDetail::collection($this->skus)->jsonSerialize(),
|
||||||
'in_wishlist' => CustomerRepo::inWishlist($this, current_customer()),
|
'in_wishlist' => CustomerRepo::inWishlist($this->resource, current_customer()),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue