Updated formated_regular_price key

This commit is contained in:
Afaz Khatri 2020-10-09 20:23:03 +05:30 committed by GitHub
parent 95cd8c6902
commit 0940c1751d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Product extends JsonResource
core()->currency($product->getTypeInstance()->getSpecialPrice())
),
'regular_price' => data_get($prices, 'regular_price.price'),
'formatted_regular_price' => data_get($prices, 'regular_price.formated_price'),
'formated_regular_price' => data_get($prices, 'regular_price.formated_price'),
'reviews' => [
'total' => $total = $this->productReviewHelper->getTotalReviews($product),
'total_rating' => $total ? $this->productReviewHelper->getTotalRating($product) : 0,