order_item resource
This commit is contained in:
parent
db04bfaf6f
commit
2dd4438cf9
|
|
@ -96,7 +96,7 @@ class CartResource extends JsonResource
|
|||
$data = array();
|
||||
foreach($items as $item){
|
||||
$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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
@if ($product->type == 'configurable')
|
||||
<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
|
||||
@if ($product->getTypeInstance()->haveSpecialPrice($product))
|
||||
@if ($product->getTypeInstance()->haveSpecialPrice())
|
||||
|
||||
<div class="sticker sale">
|
||||
{{ __('shop::app.products.sale') }}
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<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
|
||||
<span>{{ core()->currency($product->price) }}</span>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue