Showing
1 changed file
with
3 additions
and
3 deletions
@@ -500,9 +500,9 @@ class CartModel | @@ -500,9 +500,9 @@ class CartModel | ||
500 | $build['title'] = $value['product_name']; | 500 | $build['title'] = $value['product_name']; |
501 | $build['img'] = Helpers::getImageUrl($value['default_images'], 100, 100); | 501 | $build['img'] = Helpers::getImageUrl($value['default_images'], 100, 100); |
502 | $build['alt'] = $value['product_name']; | 502 | $build['alt'] = $value['product_name']; |
503 | - $build['price'] = $value['price']['sales_price']; | ||
504 | - if ($value['price']['sales_price'] !== $value['price']['market_price']) { | ||
505 | - $build['marketPrice'] = $value['price']['market_price']; | 503 | + $build['price'] = $value['sales_price']; |
504 | + if ($value['sales_price'] !== ['market_price']) { | ||
505 | + $build['marketPrice'] = $value['market_price']; | ||
506 | } | 506 | } |
507 | 507 | ||
508 | $result['data']['item'][] = $build; | 508 | $result['data']['item'][] = $build; |
-
Please register or login to post a comment