menu Controller

This commit is contained in:
merdan 2022-09-22 13:28:53 +05:00
parent acaaf6f873
commit 31e61f0417
1 changed files with 9 additions and 9 deletions

View File

@ -92,15 +92,15 @@ class Product extends JsonResource
'price' => (double) core()->convertPrice($typeInstance->getMinimalPrice()), 'price' => (double) core()->convertPrice($typeInstance->getMinimalPrice()),
'formatted_price' => core()->currency($typeInstance->getMinimalPrice()), 'formatted_price' => core()->currency($typeInstance->getMinimalPrice()),
//todo remove special price
// 'special_price' => $this->when( 'special_price' => $this->when(
// $typeInstance->haveSpecialPrice(), $typeInstance->haveSpecialPrice(),
// (double) core()->convertPrice($typeInstance->getSpecialPrice()) (double) core()->convertPrice($typeInstance->getSpecialPrice())
// ), ),
// 'formatted_special_price' => $this->when( 'formatted_special_price' => $this->when(
// $typeInstance->haveSpecialPrice(), $typeInstance->haveSpecialPrice(),
// core()->currency($typeInstance->getSpecialPrice()) core()->currency($typeInstance->getSpecialPrice())
// ), ),
'regular_price' => $this->when( 'regular_price' => $this->when(
$typeInstance->haveSpecialPrice(), $typeInstance->haveSpecialPrice(),
(double) core()->convertPrice($typeInstance->getMaximumPrice()) (double) core()->convertPrice($typeInstance->getMaximumPrice())