This commit is contained in:
Pranshu Tomar 2020-04-28 20:34:14 +05:30
parent 1a716047ac
commit b5ebfe79ea
2 changed files with 5 additions and 4 deletions

View File

@ -54,6 +54,8 @@
* #2943 [fixed] - Scroll images is not working
* #2945 [fixed] - API product detail return empty array
* #2954 [fixed] - The merging cart function does not work when already added all items of product into customer cart

View File

@ -45,10 +45,9 @@ class ProductController extends Controller
*/
public function get($id)
{
$product = $this->productRepository->findOrFail($id);
$options = $this->productRepository->findOrFail($id)->getTypeInstance()->getProductOptions($product);
return $options;
return new ProductResource(
$this->productRepository->findOrFail($id)
);
}
/**