menu Controller
This commit is contained in:
parent
acaaf6f873
commit
31e61f0417
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue