@version(2) @php $rl_shop_mid = trim((string)($rl->shop_mid ?? '')); if ($rl_shop_mid === '') { foreach (ModuleModel::getMidList((object)['module' => 'commerce'], ['mid']) ?: [] as $rl_row) { $rl_shop_mid = (string)($rl_row->mid ?? ''); break; } } // 장바구니 수량. 커머스 화면 밖에서는 $cart_count 가 없으므로 직접 센다. // rows() 는 owner(false) 를 쓰므로 손님에게 장바구니 쿠키를 새로 심지 않는다. $rl_cart_count = 0; if ($rl_shop_mid !== '' && class_exists('\\Zittme\\Modules\\Commerce\\Models\\Cart')) { $rl_cart_count = count(\Zittme\Modules\Commerce\Models\Cart::rows()); } $rl_logo_text = trim((string)($rl->logo_text ?? '')) ?: (string)($site_title ?? 'REDLINE'); @endphp
@if (($rl->use_search ?? 'Y') !== 'N') @endif @if ($rl_shop_mid !== '') @if ($rl_cart_count > 0){{ $rl_cart_count > 99 ? '99+' : $rl_cart_count }}@endif @endif
@if (($rl->use_search ?? 'Y') !== 'N') @endif