{% extends 'AtechNetCoreBundle/base.html.twig' %}
{% import 'AtechNetCoreBundle/macros.html.twig' as macros %}
{% import 'AtechNetCoreBundle/input-macros.html.twig' as inputMacros %}
{# block headScript %}
{% if app.environment == 'prod' %}
<!-- Google Optimize -->
<script src="https://www.googleoptimize.com/optimize.js?id=OPT-56ZWLQ2"></script>
{% endif %}
{% endblock #}
{% block content %}
{%- import _self as self -%}
{% set defaultLocale = app.request.session.get('defaultLocale') %}
<div id="page-spinner">
<div class="page-spinner-background"></div>
<div class="spinner-border" role="status"></div>
</div>
<div class="main-content{% if isBlackFriday %} black-friday-main-content{% endif %}">
<div class="container">
<ul class="breadcrumb{% if isBlackFriday %} black-friday-breadcrumb{% endif %}">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
<div class="row">
<div class="col-md-3 left-filter{% if isBlackFriday %} black-friday-filter{% endif %}">
{% if filters %}
<div id="filter-desktop">
</div>
<div id="accordion" class="filter-accordion filter-button">
<button class="btn btn-filter" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
<span>{{ 'Filter' | trans }}</span><i class="fas fa-sliders-h"></i>
</button>
<div id="collapseOne" class="collapse dont-collapse-sm px-2" aria-labelledby="headingOne" data-parent="#accordion">
<div class="filter">
{% if filters.priceMin >= 0 and filters.priceMax >= 0 %}
<a class="collapse-header" href="#priceFilter" data-collapse-content-id="priceFilter">
<span>{{ 'Price filter' | trans }}</span><i class="far fa-angle-down"></i>
</a>
<div class="collapse-content {% if isBlackFriday %} black-friday-price-filter {% endif %}" style="margin-bottom: 12px;" id="priceFilter">
<div id="range" class="mt-5 mx-3 align-items-center"></div>
<div class="row flex-nowrap">
<div class="col-4">
<input type="text" min="{{ filters.priceMin }}" max="{{ filters.priceMax }}"
step="1"
id="input-price-min"
class="select-bg{{ filterPriceMin or filterPriceMax ? ' filtered' : '' }} {% if isBlackFriday %} black-friday-price-filter {% endif %}"
aria-label="{{ 'Minimum price'|trans }}"
>
</div>
<div class="col-1 filter-line text-center"> - </div>
<div class="col-4">
<input type="text" min="{{ filters.priceMin }}" max="{{ filters.priceMax }}"
step="1"
id="input-price-max"
class="select-bg{{ filterPriceMin or filterPriceMax ? ' filtered' : '' }} {% if isBlackFriday %} black-friday-price-filter {% endif %}"
aria-label="{{ 'Maximum price'|trans }}"
>
</div>
<div class="col-3 filter-line-currency text-start">
{{ currency }}
</div>
</div>
</div>
{% endif %}
<div class="collapse collapse-content show" id="otherFilter">
{% if categoryId not in [659, 669, 674, 675] %}
<div class="filter-row checkbox-line">
<label for="discounted">
<input type="checkbox" value="1" name="discounted" id="discounted"{{ (( filterDiscounted ) ? ' checked' : '' ) }}>
<span{% if showOnlyDiscounted is defined and showOnlyDiscounted == 1 %} onclick="return false;"{% endif %} class="checkmark"></span>
<span class="option-title">{{ 'Show products on sale' | trans }}</span>
</label>
</div>
{% endif %}
<div class="filter-row checkbox-line">
<label for="lastPiece">
<input type="checkbox" value="1" name="lastPiece" id="lastPiece"{{ (( filterLastPieces ) ? ' checked' : '' ) }}>
<span class="checkmark"></span>
<span class="option-title">{{ 'Show last piece products' | trans }}</span>
</label>
</div>
</div>
{% for filterList in filters.list.main %}
{% if filterList.filters|length > 0 %}
{% if filterList.inputName == "vendor" and filters.notebookShow %}
{{- inputMacros.filterGroupVendor(filterList) -}}
{% elseif filterList.collapseTitle in ["Screen size", "RAM size", "SSD"] %}
{{- inputMacros.filterGroupSmallerBetweenBigger(filterList) -}}
{% else %}
{{- inputMacros.filterGroup(filterList) -}}
{% endif %}
{% elseif filterList.inputName == 'CPU mark' %}
<a class="collapse-header {{ filterList.isCollapsed ? 'collapsed' : '' }}" href="#cpuMark" data-collapse-content-id="cpuMark">
<span>{{ 'CPU mark' | trans }}</span><i class="far fa-angle-down"></i>
</a>
<div class="collapse-content" style="margin-bottom: 12px; {{ filterList.isCollapsed ? 'display: none;' : '' }}" id="cpuMark">
<div id="power" class="mt-5 mx-5 mx-lg-3 align-items-center"></div>
<input type="hidden" id="cpuMarkInputLower" value="{{ filters.cpuMarkMin }}">
<input type="hidden" id="cpuMarkInputUpper" value="{{ filters.cpuMarkMax }}">
</div>
{% if filterList.extraInfo %}
{{ (filterList.extraInfo.transKey|trans({ 'url': filterList.extraInfo.url }))|raw }}
{% endif %}
{% elseif filterList.extraInfo is defined and filterList.extraInfo|length > 0 %}
{{- inputMacros.filterGroupWithoutOptionWithExtraInfo(filterList) -}}
{% endif %}
{% endfor %}
{% if filters.qualityStatuses is defined %}
{{- inputMacros.filterGroup(filters.qualityStatuses, filterQuality, 'qualityFilter', 'quality', 'Quality grading'|trans) -}}
{% endif %}
<div class="row filter-button-lines">
<div class="col-12">
<button id="button-reset" class="btn-reset-filter mt-4 mt-dm-0" {% if isBlackFriday %}style="color:orange;"{% endif %} data-current-url="{{ app.request.pathinfo }}">{{ 'Reset filters' | trans }}</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if defaultLocale in ['sk'] and customerTypeId != 2 %}
<div class="text-center pt-3 pb-4 hide-on-sm product-category-heureka-widget-holder">
<div id="showHeurekaBadgeHere-12"></div>
<script type="text/javascript">
//<![CDATA[
var _hwq = _hwq || [];
_hwq.push(['setKey', '{{ heurekaSak }}']);
_hwq.push(['showWidget', '12', '6655', 'Furbify.{{ defaultLocale }}', 'Furbify-{{ defaultLocale }}']);
(function () {
var ho = document.createElement('script');
ho.type = 'text/javascript';
ho.async = true;
ho.src = 'https://' + '{{ defaultLocale }}' + '.im9.cz/direct/i/gjs.php?n=wdgt&sak=' + '{{ heurekaSak }}';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ho, s);
})();
//]]>
</script>
</div>
{# HEUREKA REVIEW #}
{#<div class="heureka-text-reviews hide-on-sm mb-3">
{% set verifiedCustomerTrans = 'Verified customer' | trans %}
{% for review in heureka_reviews if heureka_reviews|length > 0 %}
<div class="heureka-text-review p-3">
<p class="heureka-text-review-customer">{{ verifiedCustomerTrans }}</p>
<p class="heureka-text-review-text">{{ review.text }}</p>
<p class="heureka-text-review-date mb-2"><small>{{ review.date }}</small></p>
{% for i in 1..review.rating %}
<i class="fas fa-star"></i>
{% endfor %}
</div>
{% endfor %}
</div>#}
{% endif %}
{{ macros.getLeftSideHelpBox(webshop_phone_number, salesManager, isBlackFriday) }}
</div>
<div class="col-md-9 ps-lg-4 category-list">
<h1 class="category-title">{{ title }}</h1>
{% set collapseDesc = false %}
{% if description|raw|striptags|length > 228 %}
{% set collapseDesc = true %}
{% endif %}
<div class="cat-desc{% if collapseDesc == true %} collapse{% endif %}" {% if collapseDesc == true %}id="collapseSummary"{% endif %} >
{{- description|raw -}}
</div>
{% if collapseDesc == true %}
<a id="cat-desc-collapse" href="#collapseSummary" role="button" aria-expanded="false" aria-controls="collapseSummary" class="collapsed" data-bs-toggle="collapse" data-bs-target="#collapseSummary" data-txt-read-more="{{ 'Read more' | trans }}" data-txt-read-less="{{ 'Read less' | trans }}">{{ 'Read more' | trans }}...</a>
{% endif %}
{% if header_categories %}
<div class="category-header-links mb-4 {% if isBlackFriday %} black-friday-links {% endif %}">
{% for hc in header_categories %}
<div class="link-item">
<a href="{{ hc.href }}" class="{% if hc.active %}active{% endif %}">
{% if hc.icon is defined %}
<img decoding="async" src="{{ asset('theme/images/icon/' ~ hc.icon) }}" alt="{{ hc.title }}" width="40" height="38"{% if hc.withPadding is defined %} class="p0303"{% endif %}>
{% endif %}
<span>{{ hc.title }}</span>
<div class="arrow-right"></div>
</a>
</div>
{% endfor %}
</div>
{% endif %}
{% if header_productTypes is defined and header_productTypes %}
<div class="category-header-links mb-4 {% if isBlackFriday %} black-friday-links {% endif %}">
{% for key, hpt in header_productTypes %}
<div class="link-item">
<a id="sale-product-type-{{ key }}" href="{{ hpt.href }}" class="{% if hpt.active %}active{% endif %}" data-filter-product-type="{{ key }}" data-pill-label="{{ hpt.title }}">
{% if hpt.icon is defined %}
<img decoding="async" src="{{ asset(hpt.icon) }}" alt="{{ hpt.title }}" width="40" height="38"{% if hpt.withPadding is defined %} class="p0303"{% endif %}>
{% endif %}
<span>{{ hpt.title }}</span>
<div class="arrow-right"></div>
</a>
</div>
{% endfor %}
</div>
{% endif %}
{% if popularItems %}
<div class="popular-products">
<h3 class="mb-2">{{ 'Popular items' | trans }}:</h3>
<div class="popular-list m-0">
{% for popularItem in popularItems %}
{% set popularItemClickGtagEvent = "pushSelectItemToGtagDataLayer('" ~ popularItem.id ~ "','" ~ popularItem.title ~ "','" ~ currency ~ "'," ~ popularItem.price ~ "," ~ popularItem.special ~ ",'category-page-popular-products')" %}
<div class="popular-item d-md-block w-100">
<div class="row flex-md-nowrap">
<div class="col-md-auto popular-item-pic">
<a href="{{ popularItem.href }}" onclick="{{ popularItemClickGtagEvent }}">
<img decoding="async" src="{{ popularItem.image }}" alt="{{ popularItem.vendor ~ ' ' ~ popularItem.title }}" width="100" height="76" />
</a>
<span class="discount-icon">
<div>%</div>
</span>
</div>
<div class="flex-fill ps-md-3">
<a href="{{ popularItem.href }}" class="product-list-name" onclick="{{ popularItemClickGtagEvent }}">{{ popularItem.vendor ~ ' ' ~ popularItem.title }}</a>
<p>
{{- popularItem.description -}}
</p>
{%- if popularItem.quantity > 10 -%}
<span class="text-success">{{ '10+ in stock' | trans }}</span>
{%- elseif popularItem.quantity >= 5 -%}
<span class="text-success">{{ '5-10 in stock' | trans }}</span>
{%- elseif popularItem.quantity > 1 -%}
<span class="text-success">{{ '2-4 in stock'|trans }}</span>
{%- elseif popularItem.quantity == 1 -%}
<span class="text-danger">{{ 'Only one left'|trans }}</span>
{%- else -%}
<span class="text-grey">{{ 'Out of stock'|trans }}</span>
{%- endif -%}
</div>
<div class="col-md-2">
<div class="price-box">
{% if popularItem.special %}
<span class="special-price">{{ popularItem.special | price(currency, precision) }}</span>
<span class="old-price">{{ popularItem.price | price(currency, precision) }}</span>
{% else %}
{{ popularItem.price | price(currency, precision) }}
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% if app.environment == 'prod' %}
<script>
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: "view_item_list",
ecommerce: {
item_list_id: "category-page-popular-products",
item_list_name: "category-page-popular-products",
items: [
{% for popularItem in popularItems %}{% if loop.index > 1 %},{% endif %}{
item_id: "{{ popularItem.id }}",
item_name: "{{ popularItem.title }}",
discount: {{ popularItem.special }},
index: {{ loop.index }},
item_brand: "{{ popularItem.vendor }}",
price: {{ popularItem.price }},
quantity: 1
}
{% endfor %}
]
}
});
</script>
{% endif %}
</div>
{% endif %}
<div id="filter-mobile"{% if isBlackFriday %} class="black-friday-filter"{% endif %}></div>
<div class="sort-and-limit-settings mt-1 p-2 rounded-2 {% if isBlackFriday %} black-friday-sort-limit {% endif %}">
<div class="row">
<div class="col-8 col-sm-4 sort-select">
<select name="sort" onChange="setFilterOptions()" class="select-bg" aria-label="{{ 'Sort by'|trans }}" data-default-sort="{{ defaultSort }}" data-default-order="{{ defaultOrder }}">
{% for sortOrderItem in sortOrders %}
{% if sortOrderItem.value == '%s-%s'|format(sort, order) %}
<option data-sort="{{ sortOrderItem.sort }}" data-order="{{ sortOrderItem.order }}" value="{{ sortOrderItem.value }}" selected>{{ sortOrderItem.text }}</option>
{% else %}
<option data-sort="{{ sortOrderItem.sort }}" data-order="{{ sortOrderItem.order }}" value="{{ sortOrderItem.value }}">{{ sortOrderItem.text }}</option>
{% endif %}
{% endfor %}
</select>
</div>
<div class="col-4 col-sm-2 ps-0">
<select name="limit" onchange="setFilterOptions()" class="select-bg" aria-label="{{ 'Limit'|trans }}" data-default="{{ defaultLimit }}">
{% for limitItem in limits %}
{% if limitItem == limit %}
<option value="{{ limitItem }}" selected>{{ limitItem }}</option>
{% else %}
<option value="{{ limitItem }}">{{ limitItem }}</option>
{% endif %}
{% endfor %}
</select>
</div>
<div class="d-none col-12 col-sm-6 d-md-flex align-items-center justify-content-end" id="pagination-info">
<small><span id="limit">{{ pagination.total < limit ? pagination.total : limit }}</span> / <span id="total">{{ pagination.total }}</span> {{ 'Pagination info product text' | trans | lower }}</small>
</div>
</div>
</div>
<div class="filter-pills hidden">
<div class="list w-100 {% if isBlackFriday %} black-friday-list {% endif %}"></div>
</div>
<div class="product-list {% if isBlackFriday %} black-friday-product-list {% endif %}">
<div class="row preload ">
{% for i in 1..limit %}
<div class="col-6 col-lg-4 d-inline-block px-2 px-sm-3 py-3 py-sm-3">
<div class="preload-item">
<div class="image"></div>
<div class="title1"></div>
<div class="title2"></div>
<div class="description"></div>
<div class="prices"></div>
<div class="button"></div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{%- if extraSeoDesc -%}
{%- set seoDescArray = extraSeoDesc|split("</p>", 2) -%}
<div class="category-description">
<div>{{- seoDescArray[0]|replace({' ': ' '})|raw -}}</div>
<div class="collapse" id="category-extra-description">
<div>
{{- seoDescArray[1]|replace({' ': ' '})|raw -}}
</div>
</div>
<a
id="category-extra-description-toggle"
href="#category-extra-description"
role="button"
aria-expanded="false"
aria-controls="category-extra-description"
data-bs-toggle="collapse"
data-bs-target="#category-extra-description"
data-txt-read-more="{{ 'Read more'|trans }}"
data-txt-read-less="{{ 'Read less'|trans }}"
>
{{- 'Read more'|trans -}}
</a>
</div>
{% endif %}
{# if defaultLocale == 'sk' and customerTypeId != 2 %}
<div class="text-center pt-3 pb-4 product-category-heureka-widget-holder d-sm-block d-md-none">
<div id="showHeurekaBadgeHere-3"></div><script type="text/javascript">
//<![CDATA[
var _hwq = _hwq || [];
_hwq.push(['setKey', '9DCFF7A54D9B32A964D650EC01AA5378']);_hwq.push(['showWidget', '3', '6655', 'Furbify.sk', 'furbify-sk']);(function() {
var ho = document.createElement('script'); ho.type = 'text/javascript'; ho.async = true;
ho.src = 'https://www.heureka.sk/direct/i/gjs.php?n=wdgt&sak=9DCFF7A54D9B32A964D650EC01AA5378';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ho, s);
})();
//]]>
</script>
</div>
{% endif #}
{{ include(template_from_string(contentBottom)) }}
</div>
</div>
{% endblock %}
{% block title %}{{ seoTitle }} | {{ parent() }}{% endblock %}
{% block bodyClass %}{% if isBazaar %}is-bazaar{% endif %}{% endblock %}
{% block meta %}
{% set domainTLD = app.request.session.get('defaultLocale') %}
{% if domainTLD == 'en' %}
{% set domainTLD = 'eu' %}
{% endif %}
<meta name="description" content="{{ seoDescription }}" />
<meta property="og:url" content="{{ app.request.uri }}{{ app.request.attributes.get('_route_params') }}" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="{{ app.request.locale |ogLocale }}" />
<meta property="og:title" content="{{ seoTitle }}" />
<meta property="og:description" content="{{ seoDescription }}" />
{% if socialShareImage is defined and socialShareImage is not null %}
<meta property="og:image" content="{{ socialShareImage }}" />
{% else %}
<meta property="og:image" content="https://www.furbify.{{ domainTLD }}/theme/images/furbify-share-image.png" />
{% endif %}
{% endblock %}
{% block header %}
{{ include(template_from_string(header)) }}
{% endblock %}
{% block footer %}
{{ include(template_from_string(footer)) }}
{% endblock %}
{% block categoryListLinks %}
{% if categoryListLinks is defined and categoryListLinks | length > 0 %}
{% for direction,categoryListLink in categoryListLinks %}
<link rel="{{ direction }}" href="{{ categoryListLink }}">
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('theme/noUiSlider/nouislider.min.css') }}">
<link rel="stylesheet" href="{{ asset('theme/owl-carousel/assets/owl.carousel.min.css'|appendAssetCache) }}">
{{ parent() }}
{% endblock %}
{% block canonical %}
{% if canonical_link != '' %}<link rel="canonical" href="{{ canonical_link }}" />{% endif %}
{% endblock %}
{% block schema %}
{{ parent() }}
{% set _baseUrl = app.request.schemeAndHttpHost %}
{% set _pageUrl = canonical_link != '' ? canonical_link : (app.request.schemeAndHttpHost ~ app.request.pathInfo) %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"@id": "{{ _pageUrl }}#collectionpage",
"name": "{{ seoTitle|e('js') }}",
"description": "{{ seoDescription|e('js') }}",
"url": "{{ _pageUrl }}",
"isPartOf": {"@id": "{{ _baseUrl }}/#website"},
"mainEntity": {"@type": "ItemList", "@id": "{{ _pageUrl }}#itemlist"}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"@id": "{{ _pageUrl }}#itemlist",
"name": "{{ title|e('js') }}",
"description": "{{ seoDescription|e('js') }}",
"itemListOrder": "https://schema.org/ItemListOrderDescending"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{% for breadcrumb in breadcrumbs %}
{
"@type": "ListItem",
"position": {{ loop.index }},
"name": "{{ breadcrumb.text|e('js') }}",
"item": "{{ breadcrumb.href }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>
{% endblock %}
{% block robots %}
{% if parent() == '' and indexable is defined and indexable == false %}<meta name="robots" content="noindex">{% else %}{{ parent() }}{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('theme/noUiSlider/wNumb.min.js') }}"></script>
<script src="{{ asset('theme/noUiSlider/nouislider.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('theme/owl-carousel/owl.carousel.min.js'|appendAssetCache) }}"></script>
{% if showAdminLoginPanel %}
<script src="{{ asset('theme/js/admin-login-panel.js') }}"></script>
{% endif %}
<script type="text/javascript">
var filterObject = JSON.parse('{{ filterData | json_encode() }}'.replace(/"/g,'"'));
options = {
translated: {
'View': "{{ 'View'| trans }}",
'Details': "{{ 'Details'| trans }}",
'discount': "{{ 'discount'| trans }}",
'10+ in stock': "{{ '10+ in stock'| trans }}",
'5-10 in stock': "{{ '5-10 in stock'| trans }}",
'2-4 in stock': "{{ '2-4 in stock'| trans }}",
'Only one left': "{{ 'Only one left'| trans }}",
'On order within %d working days': "{{ 'On order within %d working days'| trans }}",
'Out of stock': "{{ 'Out of stock'| trans }}",
'without VAT': "{{ 'without VAT'| trans }}",
'Y year warranty': "{{ 'Y year warranty'| trans }}",
'Fast delivery': "{{ 'Fast delivery'| trans }}",
'Please login or signup for wholesale prices.': "{{ 'Please login or signup for wholesale prices.'| trans }}",
'Wizard banner title': "{{ 'Wizard banner title'|trans }}",
'Wizard banner subtitle': "{{ 'Wizard banner subtitle'|trans }}",
'Wizard banner button': "{{ 'Wizard banner button'|trans }}",
'Furbify zsakbamacska title': "{{ 'Furbify zsakbamacska title'|trans }}",
'Zsakbamacska attributes': "{{ 'Zsakbamacska attributes'|trans }}",
'1 in stock': "{{ '1 in stock'|trans }}",
'productsNotFound': "{{ 'Currently we have no products which suit your selection, please try to select another product category.'|trans }}",
'Next {limit}': "{{ 'Next {limit}'|trans }}",
'Showed {from} - {to} of {total}': "{{ 'Showed {from} - {to} of {total}'|trans|raw }}",
'review': "{{ 'product list review text'|trans }}",
'Net price': "{{ 'Net price'|trans }}",
'Price with VAT': "{{ 'Price with VAT'|trans }}",
'coupon list text': "{{ 'Coupon list text'|trans|raw }}",
'Bestseller': "{{ 'Bestseller'|trans }}",
labels: {
new: "{{ 'New'| trans }}",
win7: "{{ 'win7'| trans }}",
win81: "{{ 'win81'| trans }}",
win10: "{{ 'win10'| trans }}",
gamer: "{{ 'gamer'| trans }}",
work: "{{ 'work'| trans }}",
travel: "{{ 'travel'| trans }}",
senior: "{{ 'senior'| trans }}",
internet: "{{ 'internet'| trans }}",
'24h': "{{ '24h'| trans }}",
'7d': "{{ '7d'| trans }}",
gold: "{{ 'gold'| trans }}",
a: "{{ 'A'| trans }}",
'b+': "{{ 'B+'| trans }}",
platinum: "{{ 'platinum'| trans }}",
discount: "{{ 'discount'| trans }}",
bazaar: "{{ 'Bazaar'| trans }}",
c: "{{ 'C'| trans }}",
silver: "{{ 'silver'|trans }}",
bronze: "{{ 'bronze'|trans }}"
}
},
customerTypeId: '{{ customerTypeId }}',
windowsBadgeUrl: "{{ asset('theme/images/windows-badge.svg') }}",
wizardImage: "{{ asset('theme/images/icon/wizard_mascot.png') }}",
furbicatFace: "{{ asset('theme/images/furbicat-face-2.jpg') }}",
bestsellerBadge: "{{ asset('theme/images/icon/bestseller.png') }}",
domainId: '{{ domainId }}',
basePrice: "{{ app.request.session.get('basePrice') }}",
locale: '{{ app.request.locale }}',
defaultlocale: "{{ app.request.session.get('defaultLocale') }}",
currency: '{{ currency }}',
precision: '{{ precision }}',
page: '{{ pagination.page }}',
showOnlyDiscounted: '{{ showOnlyDiscounted }}',
regenerateCache: "{{ regenerateCache is defined and showAdminLoginPanel ? regenerateCache|raw : '' }}",
showAdminLoginPanel: '{{ showAdminLoginPanel }}' == '1',
isWholesale: "{{ app.request.attributes.get('request').query.get('wholesale') }}" == '1',
isAdminLogin: "{{ app.request.session.get('isAdminLogin') }}",
urls: {
customerRegistration: '{{ path("customer_registration") }}',
customerLogin: '{{ path("customer_login") }}',
wizardHome: '{{ path("wizard_home") }}',
zsakbamacska: '{{ path("product_zsakbamacska_hu") }}',
productListAjax: '{{ path("product_list_ajax") }}'
},
seoTitle: "{{ seoTitle }}",
categoryId: '{{ categoryId }}',
environment: "{{ app.environment }}",
productItemColClass: "col-lg-4",
categoryPageId: '{{ categoryId }}',
cpuMarkTexts: {
1: "{{ 'CPUMarkLevels.1'|trans }}",
2: "{{ 'CPUMarkLevels.2'|trans }}",
3: "{{ 'CPUMarkLevels.3'|trans }}",
4: "{{ 'CPUMarkLevels.4'|trans }}",
5: "{{ 'CPUMarkLevels.5'|trans }}",
},
easter: {
bannerImg: "{{ asset('theme/images/furbify_egg.png') }}",
couponSvg: "{{ asset('theme/images/icon/furbify_easter.svg') }}",
{% if "now"|date("Y-m-d") <= "2025-04-22"|date("Y-m-d") %}
couponName: "{{ 'eastern.20.coupon_name'|trans }}",
couponText1: "{{ 'eastern.20.text1'|trans }}",
couponText2: "{{ 'eastern.20.text2'|trans }}",
endDate: "2025-04-22T23:59:59"
{% else %}
couponName: "{{ 'eastern.10.coupon_name'|trans }}",
couponText1: "{{ 'eastern.10.text1'|trans }}",
couponText2: "{{ 'eastern.10.text2'|trans }}",
endDate: "2025-04-22T23:59:59"
{% endif %}
},
halloween: {
bannerImg: "{{ asset('theme/images/szellem_2.png') }}",
couponSvg: "{{ asset('theme/images/szellem_2.png') }}",
couponName: "{{ 'hallowen.20.coupon_name'|trans }}",
couponText1: "{{ 'hallowen.20.text1'|trans }}",
couponText2: "{{ 'hallowen.20.text2'|trans }}",
endDate: "2025-11-02T23:59:59"
},
noWebcamBadgeImg: "{{ asset('theme/images/icon/no_webcam.png') }}",
productBadgeRow: {
os : {
include: "{{ 'productListBadgeRow.os.include'|trans }}"
},
warranty: {
month: "{{ 'productListBadgeRow.warranty.month'|trans }}",
months: "{{ 'productListBadgeRow.warranty.months'|trans }}",
year: "{{ 'productListBadgeRow.warranty.year'|trans }}",
years: "{{ 'productListBadgeRow.warranty.years'|trans }}",
label: "{{ 'productListBadgeRow.warranty.label'|trans }}"
}
}
};
</script>
<script src="{{ asset('theme/js/printProducts.min.js')|appendAssetCache }}"></script>
<script>
setFilterOptions(true, false, false);
</script>
<script type="text/javascript">
{% if partnerLoginRedirect %}
window.location.href = '{{ partnerLoginRedirectRoute }}';
{% endif %}
{% if filters.priceMin >= 0 and filters.priceMax >= 0 and filters.priceMin != filters.priceMax %}
{% if filterPriceMin and filterPriceMax %}
let start = [ {{ filterPriceMin }}, {{ filterPriceMax }} ];
{% elseif filterPriceMin and not filterPriceMax %}
let start = [ {{ filterPriceMin }}, {{ filters.priceMax }} ];
{% elseif not filterPriceMin and filterPriceMax %}
let start = [ {{ filters.priceMin }}, {{ filterPriceMax }} ];
{% else %}
let start = [ {{ filters.priceMin }}, {{ filters.priceMax }} ];
{% endif %}
createPriceFilter(start, {{ filters.priceMin }}, {{ filters.priceMax }});
{% endif %}
if ($('#cpuMark').length > 0) {
{% if filters.cpuMarkMin is not null and filters.cpuMarkMax is not null %}
createCpuMarkFilter([{{ filters.cpuMarkMin }}, {{ filters.cpuMarkMax }}]);
{% else %}
createCpuMarkFilter();
{% endif %}
}
{% if showAdminLoginPanel %}
var additionalDataForAdminLoginPanel = {
idForPage: "{{ categoryId }}",
module: "category",
{% if app.environment == 'prod' %}
domain: "https://www.atechcomp.eu/centralis/web",
smallerPadding: true
{% else %}
domain: "http://centralis"
{% endif %}
};
startAdminLoginPanel(additionalDataForAdminLoginPanel);
{% endif %}
</script>
{% endblock %}