@php
Theme::set('stickyHeader', 'false');
Theme::set('topHeader', Theme::partial('header-product-page', compact('product')));
Theme::set('bottomFooter', Theme::partial('footer-product-page', compact('product')));
Theme::set('pageId', 'product-page');
Theme::set('headerMobile', Theme::partial('header-mobile-product'));
@endphp
{!! BaseHelper::clean($product->content) !!}
{!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, null, $product) !!}
@if (EcommerceHelper::isProductSpecificationEnabled() && $product->specificationAttributes->where('pivot.hidden', false)->isNotEmpty())
@include(EcommerceHelper::viewPath('includes.product-specification'))
@endif
@if (EcommerceHelper::isReviewEnabled())
@include('plugins/ecommerce::themes.includes.reviews', ['reviewButtonClass' => 'ps-btn'])
@endif
@if (is_plugin_active('marketplace') && $product->store_id)
@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 (is_plugin_active('ads'))
@endif
@php
$crossSellProducts = get_cross_sale_products($product, 7);
@endphp
@if (count($crossSellProducts) > 0)
{!! Theme::partial('cross-sell-products', compact('crossSellProducts')) !!}
@endif
@php
$relatedProducts = get_related_products($product, 12);
if ($relatedProducts->isEmpty()) {
$relatedProducts = get_featured_products([
'take' => 12,
'condition' => [
['ec_products.id', '!=', $product->getKey()],
'ec_products.is_featured' => 1,
'ec_products.is_variation' => 0,
],
]);
}
if ($relatedProducts->isEmpty()) {
$relatedProducts = get_products([
'take' => 12,
'condition' => [
['ec_products.id', '!=', $product->getKey()],
'ec_products.is_variation' => 0,
],
]);
}
@endphp
@if ($relatedProducts->isNotEmpty())
@endif