...
|
...
|
@@ -500,9 +500,9 @@ class CartModel |
|
|
$build['title'] = $value['product_name'];
|
|
|
$build['img'] = Helpers::getImageUrl($value['default_images'], 100, 100);
|
|
|
$build['alt'] = $value['product_name'];
|
|
|
$build['price'] = $value['price']['sales_price'];
|
|
|
if ($value['price']['sales_price'] !== $value['price']['market_price']) {
|
|
|
$build['marketPrice'] = $value['price']['market_price'];
|
|
|
$build['price'] = $value['sales_price'];
|
|
|
if ($value['sales_price'] !== ['market_price']) {
|
|
|
$build['marketPrice'] = $value['market_price'];
|
|
|
}
|
|
|
|
|
|
$result['data']['item'][] = $build;
|
...
|
...
|
|