order_item resource
This commit is contained in:
parent
db04bfaf6f
commit
2dd4438cf9
|
|
@ -96,7 +96,7 @@ class CartResource extends JsonResource
|
||||||
$data = array();
|
$data = array();
|
||||||
foreach($items as $item){
|
foreach($items as $item){
|
||||||
$seller = $this->sellerProductRepository->getSellerByProductId($item->product_id);
|
$seller = $this->sellerProductRepository->getSellerByProductId($item->product_id);
|
||||||
$data[$seller->shop_title ?? 'trendyol'][] = CartItemResource::make($item);
|
$data[$seller->shop_title ?? 'outlet'][] = CartItemResource::make($item);
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
@if ($product->type == 'configurable')
|
@if ($product->type == 'configurable')
|
||||||
<span class="price-label">{{ __('shop::app.products.price-label') }}</span>
|
<span class="price-label">{{ __('shop::app.products.price-label') }}</span>
|
||||||
|
|
||||||
<span class="final-price">{{ core()->currency($product->getTypeInstance()->getMinimalPrice($product)) }}</span>
|
<span class="final-price">{{ core()->currency($product->getTypeInstance()->getMinimalPrice()) }}</span>
|
||||||
@else
|
@else
|
||||||
@if ($product->getTypeInstance()->haveSpecialPrice($product))
|
@if ($product->getTypeInstance()->haveSpecialPrice())
|
||||||
|
|
||||||
<div class="sticker sale">
|
<div class="sticker sale">
|
||||||
{{ __('shop::app.products.sale') }}
|
{{ __('shop::app.products.sale') }}
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<span class="regular-price">{{ core()->currency($product->price) }}</span>
|
<span class="regular-price">{{ core()->currency($product->price) }}</span>
|
||||||
|
|
||||||
<span class="special-price">{{ core()->currency($product->getTypeInstance()->getSpecialPrice($product)) }}</span>
|
<span class="special-price">{{ core()->currency($product->getTypeInstance()->getSpecialPrice()) }}</span>
|
||||||
@else
|
@else
|
||||||
<span>{{ core()->currency($product->price) }}</span>
|
<span>{{ core()->currency($product->price) }}</span>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue