@php $layout = $product->getMetaData('layout', true); if (! $layout) { $layout = theme_option('product_single_layout'); } $layout = ($layout && in_array($layout, array_keys(get_product_single_layouts()))) ? $layout : 'product-right-sidebar'; Theme::layout($layout); Theme::asset()->container('footer')->usePath()->add('slick-js', 'js/plugins/slick.js', ['jquery']); Theme::asset()->usePath()->add('magnific-popup-css', 'css/plugins/magnific-popup.css'); Theme::asset()->container('footer')->usePath()->add('magnific-popup-js', 'js/plugins/magnific-popup.js', ['jquery']); Theme::asset()->usePath()->add('jquery-ui-css', 'css/plugins/jquery-ui.css'); Theme::asset()->container('footer')->usePath()->add('jquery-ui-js', 'js/plugins/jquery-ui.js'); @endphp
{!! Theme::partial('social-share', ['url' => $product->url, 'description' => strip_tags(SeoHelper::getDescription())]) !!} {{ __('Email to a Friend') }}

{!! BaseHelper::clean($product->name) !!}

@if (EcommerceHelper::isReviewEnabled())
({{ __(':count reviews', ['count' => $product->reviews_count]) }})
@endif
{{ format_price($product->front_sale_price_with_taxes) }} {{ get_sale_percentage($product->price, $product->front_sale_price) }} {{ __('Off') }} {{ format_price($product->price_with_taxes) }}
@if (is_plugin_active('marketplace') && $product->store_id)

{{ __('Sold By') }}: {!! BaseHelper::clean($product->store->name) !!}

@endif {!! apply_filters('ecommerce_before_product_description', null, $product) !!} {!! BaseHelper::clean($product->description) !!} {!! apply_filters('ecommerce_after_product_description', null, $product) !!}
@csrf @if ($product->variations()->count() > 0)
{!! render_product_swatches($product, [ 'selected' => $selectedAttrs, 'view' => Theme::getThemeNamespace() . '::views.ecommerce.attributes.swatches-renderer' ]) !!}
@endif {!! render_product_options($product) !!} {!! Theme::partial('product-availability', compact('product', 'productVariation')) !!} {!! apply_filters(ECOMMERCE_PRODUCT_DETAIL_EXTRA_HTML, null, $product) !!}
  • {{ __('SKU') }}: {{ $product->sku }}
  • @if ($product->categories->isNotEmpty())
  • {{ __('Categories') }}: @foreach($product->categories as $category) {!! BaseHelper::clean($category->name) !!}@if (!$loop->last),@endif @endforeach
  • @endif @if ($product->tags->isNotEmpty())
  • {{ __('Tags') }}: @foreach($product->tags as $tag) @if (!$loop->last),@endif @endforeach
  • @endif @if ($product->brand->id)
  • {{ __('Brands') }}: {{ $product->brand->name }}
  • @endif
{!! BaseHelper::clean($product->content) !!}
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, null, $product) !!}
@if (is_plugin_active('marketplace') && $product->store_id && $product->store->id)
    @if (! MarketplaceHelper::hideStoreAddress() && $product->store->full_address)
  • {{ __('Address') }} {{ __('Address') }}: {{ $product->store->full_address }}
  • @endif @if (!MarketplaceHelper::hideStorePhoneNumber() && $product->store->phone)
  • {{ __('Contact Seller') }} {{ __('Contact Seller') }}: {{ $product->store->phone }}
  • @endif
{!! BaseHelper::clean($product->store->content) !!}
@endif @if (is_plugin_active('faq') && count($product->faq_items) > 0)
@foreach($product->faq_items as $faq)

{!! BaseHelper::clean($faq[1]['value']) !!}
@endforeach
@endif @if (EcommerceHelper::isReviewEnabled())
@include('plugins/ecommerce::themes.includes.reviews')
@endif
@php $crossSellProducts = get_cross_sale_products($product); @endphp @if (count($crossSellProducts) > 0)

{{ __('You may also like') }}

@foreach($crossSellProducts as $crossProduct)
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-item', ['product' => $crossProduct])
@endforeach
@endif @php $relatedProducts = get_related_products($product); @endphp @if (count($crossSellProducts) > 0)

{{ __('Related products') }}

@foreach($relatedProducts as $relatedProduct)
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-item', ['product' => $relatedProduct])
@endforeach
@endif