order_item resource

This commit is contained in:
merdan 2023-01-10 12:42:34 +05:00
parent db04bfaf6f
commit 2dd4438cf9
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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