Added key prices to product resource

This commit is contained in:
Afaz Khatri 2020-10-08 10:16:10 +05:30 committed by GitHub
parent a97107ac23
commit 2fbbabb604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Product extends JsonResource
$product->getTypeInstance()->haveSpecialPrice(),
core()->currency($product->getTypeInstance()->getSpecialPrice())
),
$product->getTypeInstance()->getProductPrices(),
'prices' => $product->getTypeInstance()->getProductPrices(),
'reviews' => [
'total' => $total = $this->productReviewHelper->getTotalReviews($product),
'total_rating' => $total ? $this->productReviewHelper->getTotalRating($product) : 0,