<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/list.twig */
class __TwigTemplate_a68e4f7b58afad306e1b9e848efbf8c2 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo " <script>
eccube.productsClassCategories = {
";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 18, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 19
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 19), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Customize\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 19) == false)) {
echo ", ";
}
// line 20
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " };
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 75
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 100
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 101
echo "<style>
.status_icon_topright {
position: absolute;
top: 0;
right: 0;
left: auto;
width: 60px;
height: 60px;
}
.status_icon_bottomleft {
position: absolute;
bottom: 0;
right: auto;
left: 0;
width: 60px;
height: 60px;
}
</style>
";
// line 119
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 119, $this->source); })()), "category_id", [], "any", false, false, false, 119), "vars", [], "any", false, false, false, 119), "errors", [], "any", false, false, false, 119)) > 0)) {
// line 120
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 121
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 124
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 126
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 126, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 127
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 127), "id", [], "any", false, false, false, 127), "html", null, true);
echo "\"
name=\"";
// line 128
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 128), "full_name", [], "any", false, false, false, 128), "html", null, true);
echo "\"
";
// line 129
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 129), "value", [], "any", false, false, false, 129))) {
echo "value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 129), "value", [], "any", false, false, false, 129), "html", null, true);
echo "\" ";
}
echo "/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 131
echo " </form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"";
// line 134
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html", null, true);
echo "</a>
</li>
";
// line 136
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 136, $this->source); })()))) {
// line 137
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 137, $this->source); })()), "path", [], "any", false, false, false, 137));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 138
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item";
// line 139
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 139)) {
echo "--active";
}
echo "\"><a
href=\"";
// line 140
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 140), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 140), "html", null, true);
echo "</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 143
echo " ";
}
// line 144
echo " ";
// line 145
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 145, $this->source); })()), "vars", [], "any", false, false, false, 145), "value", [], "any", false, false, false, 145) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 145, $this->source); })()), "vars", [], "any", false, false, false, 145), "value", [], "any", false, false, false, 145), "name", [], "any", false, false, false, 145) || twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 145, $this->source); })()), "vars", [], "any", false, false, false, 145), "value", [], "any", false, false, false, 145), "tag_id", [], "any", false, false, false, 145)) || twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 145, $this->source); })()), "vars", [], "any", false, false, false, 145), "value", [], "any", false, false, false, 145), "price_id", [], "any", false, false, false, 145)))) {
// line 146
echo " <li class=\"ec-topicpath__item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" 検索条件"), "html", null, true);
echo "</li>
";
// line 147
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 147, $this->source); })()), "vars", [], "any", false, false, false, 147), "value", [], "any", false, false, false, 147) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 147, $this->source); })()), "vars", [], "any", false, false, false, 147), "value", [], "any", false, false, false, 147), "name", [], "any", false, false, false, 147))) {
// line 148
echo " <li class=\"ec-topicpath__item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」", ["%name%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 148, $this->source); })()), "vars", [], "any", false, false, false, 148), "value", [], "any", false, false, false, 148), "name", [], "any", false, false, false, 148)]), "html", null, true);
echo "</li>
";
}
// line 150
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 150, $this->source); })()), "vars", [], "any", false, false, false, 150), "value", [], "any", false, false, false, 150) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 150, $this->source); })()), "vars", [], "any", false, false, false, 150), "value", [], "any", false, false, false, 150), "tag_id", [], "any", false, false, false, 150))) {
// line 151
echo " ";
$context["Tags"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "getList", [], "method", false, false, false, 151);
// line 152
echo " ";
$context["now_tag_id"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 152, $this->source); })()), "request", [], "any", false, false, false, 152), "query", [], "any", false, false, false, 152), "get", [0 => "tag_id"], "method", false, false, false, 152);
// line 153
echo " ";
$context["current_tag"] = twig_first($this->env, twig_array_filter($this->env, (isset($context["Tags"]) || array_key_exists("Tags", $context) ? $context["Tags"] : (function () { throw new RuntimeError('Variable "Tags" does not exist.', 153, $this->source); })()), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 153, $this->source); })()), "id", [], "any", false, false, false, 153) == (isset($context["now_tag_id"]) || array_key_exists("now_tag_id", $context) ? $context["now_tag_id"] : (function () { throw new RuntimeError('Variable "now_tag_id" does not exist.', 153, $this->source); })())); }));
// line 154
echo " ";
if ((isset($context["current_tag"]) || array_key_exists("current_tag", $context) ? $context["current_tag"] : (function () { throw new RuntimeError('Variable "current_tag" does not exist.', 154, $this->source); })())) {
// line 155
echo " <li class=\"ec-topicpath__item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%Tag.name%」", ["%Tag.name%" => twig_get_attribute($this->env, $this->source, (isset($context["current_tag"]) || array_key_exists("current_tag", $context) ? $context["current_tag"] : (function () { throw new RuntimeError('Variable "current_tag" does not exist.', 155, $this->source); })()), "name", [], "any", false, false, false, 155)]), "html", null, true);
echo "</li>
";
}
// line 157
echo " ";
}
// line 158
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 158, $this->source); })()), "vars", [], "any", false, false, false, 158), "value", [], "any", false, false, false, 158) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 158, $this->source); })()), "vars", [], "any", false, false, false, 158), "value", [], "any", false, false, false, 158), "price_id", [], "any", false, false, false, 158))) {
// line 159
echo " ";
$context["price_ranges"] = [1 => "10万円未満", 2 => "10万円以上~20万円未満", 3 => "20万円以上~30万円未満", 4 => "30万円以上~50万円未満", 5 => "50万円以上~100万円未満", 6 => "100万円以上"];
// line 167
echo " ";
$context["now_price_id"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "query", [], "any", false, false, false, 167), "get", [0 => "price_id"], "method", false, false, false, 167);
// line 168
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["price_ranges"] ?? null), (isset($context["now_price_id"]) || array_key_exists("now_price_id", $context) ? $context["now_price_id"] : (function () { throw new RuntimeError('Variable "now_price_id" does not exist.', 168, $this->source); })()), [], "array", true, true, false, 168)) {
// line 169
echo " <li class=\"ec-topicpath__item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%price_range%」", ["%price_range%" => twig_get_attribute($this->env, $this->source, (isset($context["price_ranges"]) || array_key_exists("price_ranges", $context) ? $context["price_ranges"] : (function () { throw new RuntimeError('Variable "price_ranges" does not exist.', 169, $this->source); })()), (isset($context["now_price_id"]) || array_key_exists("now_price_id", $context) ? $context["now_price_id"] : (function () { throw new RuntimeError('Variable "now_price_id" does not exist.', 169, $this->source); })()), [], "array", false, false, false, 169)]), "html", null, true);
echo "</li>
";
}
// line 171
echo " ";
}
// line 172
echo " ";
}
// line 173
echo " </ol>
</div>
";
// line 176
echo " ";
$this->loadTemplate("Block/product_list_filter.twig", "Product/list.twig", 176)->display($context);
// line 177
echo " <div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 179
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 179, $this->source); })()), "totalItemCount", [], "any", false, false, false, 179) > 0)) {
// line 180
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 180, $this->source); })()), "totalItemCount", [], "any", false, false, false, 180)]);
echo "
";
} else {
// line 182
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 184
echo " </div>
";
// line 185
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 185, $this->source); })()), "totalItemCount", [], "any", false, false, false, 185) > 0)) {
// line 186
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 188
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 188, $this->source); })()), "disp_number", [], "any", false, false, false, 188), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 189
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 189, $this->source); })()), "orderby", [], "any", false, false, false, 189), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 193
echo " </div>
</div>
";
// line 195
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 195, $this->source); })()), "totalItemCount", [], "any", false, false, false, 195) > 0)) {
// line 196
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 198
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 198, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 199
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 200
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 200)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\" style=\"position:relative;\">
<img src=\"";
// line 202
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, $context["Product"], "main_list_image", [], "any", false, false, false, 202)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 202), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 202) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
";
// line 204
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 204))) {
// line 205
echo " ";
if ((twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 205), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 205, $this->source); })()), "id", [], "any", false, false, false, 205) == 6); })) > 0)) {
echo " ";
// line 206
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/productlist/itemlist_icon_sale-instock.png"), "html", null, true);
echo "\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
";
}
// line 208
echo " ";
if ((twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 208), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 208, $this->source); })()), "id", [], "any", false, false, false, 208) == 7); })) > 0)) {
echo " ";
// line 209
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/productlist/itemlist_icon_sale-order.png"), "html", null, true);
echo "\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
";
}
// line 211
echo " ";
if ((twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 211), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 211, $this->source); })()), "id", [], "any", false, false, false, 211) == 8); })) > 0)) {
echo " ";
// line 212
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/productlist/itemlist_icon_outlet.png"), "html", null, true);
echo "\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
";
}
// line 214
echo " ";
if ((twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 214), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 214, $this->source); })()), "id", [], "any", false, false, false, 214) == 9); })) > 0)) {
echo " ";
// line 215
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/productlist/itemlist_icon_instock.png"), "html", null, true);
echo "\" alt=\"Small Image\" class=\"status_icon_topright\" />
";
}
// line 217
echo " ";
if ((twig_length_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 217), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 217, $this->source); })()), "id", [], "any", false, false, false, 217) == 10); })) > 0)) {
echo " ";
// line 218
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/productlist/itemlist_icon_order.png"), "html", null, true);
echo "\" alt=\"Small Image\" class=\"status_icon_topright\" />
";
}
// line 220
echo " ";
}
// line 221
echo " </p>
";
// line 222
if (twig_get_attribute($this->env, $this->source, $context["Product"], "Maker", [], "any", false, false, false, 222)) {
echo "
<p class=\"ec-shelfGrid__item-maker\">";
// line 223
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Product"], "Maker", [], "any", false, false, false, 223), "nameEn", [], "any", false, false, false, 223), "html", null, true);
echo "</p>
";
}
// line 225
echo " <p>
";
// line 226
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 226), "html", null, true);
echo "
";
// line 227
if (twig_get_attribute($this->env, $this->source, $context["Product"], "model_year", [], "any", false, false, false, 227)) {
echo "
";
// line 228
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "model_year", [], "any", false, false, false, 228), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
echo "
";
}
// line 230
echo " </p>
";
// line 231
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 231)) {
// line 232
echo " <!--<p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 232));
echo "</p>-->
";
}
// line 234
echo " ";
// line 235
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "ask_price", [], "any", false, false, false, 235) == "teika_price")) {
echo "
<p class=\"ec-color-red\">";
// line 236
echo "販売価格(税込)";
echo "</p>
";
} else {
// line 238
echo " <p class=\"ec-color-red\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現金特価(税込)"), "html", null, true);
echo "</p>
";
}
// line 240
echo " ";
// line 241
echo " <p class=\"price02-default\"><strong class=\"ec-color-red ec-font-size-4\">
";
// line 242
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 242)) {
// line 243
echo " ";
// line 244
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "ask_price", [], "any", false, false, false, 244) == "teika_price")) {
// line 245
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Min", [], "any", false, false, false, 245) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Max", [], "any", false, false, false, 245))) {
// line 246
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "Price01IncTaxMin", [], "any", false, false, false, 246)), "html", null, true);
echo "
";
} else {
// line 248
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "Price01IncTaxMin", [], "any", false, false, false, 248)), "html", null, true);
echo " ~
";
}
// line 250
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, $context["Product"], "ask_price", [], "any", false, false, false, 250) == "hidden_price")) {
// line 251
echo " ";
if ((null === twig_get_attribute($this->env, $this->source, $context["Product"], "info_comment2", [], "any", false, false, false, 251))) {
// line 252
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("びっくり大特価!"), "html", null, true);
echo "
";
} else {
// line 254
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["Product"], "info_comment2", [], "any", false, false, false, 254)), "html", null, true);
echo "
";
}
// line 256
echo " ";
} else {
// line 257
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 257) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 257))) {
// line 258
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 258) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo "
";
} else {
// line 260
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 260) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo " ~
";
}
// line 262
echo " ";
}
// line 263
echo " ";
} else {
// line 264
echo " ";
// line 265
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "ask_price", [], "any", false, false, false, 265) == "teika_price")) {
// line 266
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 266)), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 267
$context["Product"], "ask_price", [], "any", false, false, false, 267) == "hidden_price")) {
// line 268
echo " ";
if ((null === twig_get_attribute($this->env, $this->source, $context["Product"], "info_comment2", [], "any", false, false, false, 268))) {
// line 269
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("びっくり大特価!"), "html", null, true);
echo "
";
} else {
// line 271
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["Product"], "info_comment2", [], "any", false, false, false, 271)), "html", null, true);
echo "
";
}
// line 273
echo " ";
} else {
// line 274
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 274) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo "
";
}
// line 276
echo " ";
}
// line 277
echo " ";
// line 278
echo " </strong></p>
";
// line 280
echo " <p><span class=\"ec-color-grey ec-font-size-2\">通常販売価格</span></p>
<p><span class=\"ec-color-grey ec-font-size-2\">
";
// line 282
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 282)) {
// line 283
echo " ";
// line 284
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Min", [], "any", false, false, false, 284) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Max", [], "any", false, false, false, 284))) {
// line 285
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 285)), "html", null, true);
echo "
";
} else {
// line 287
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "Price01IncTaxMin", [], "any", false, false, false, 287)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "Price01IncTaxMax", [], "any", false, false, false, 287)), "html", null, true);
echo "
";
}
// line 289
echo " ";
} else {
// line 290
echo " ";
// line 291
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 291)), "html", null, true);
echo "
";
}
// line 293
echo " </span></p>
</a>
";
// line 296
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 296)) {
// line 297
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 297, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 297), [], "array", false, false, false, 297);
// line 298
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 300
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 300)) {
// line 301
echo " <!--<div class=\"ec-select\">
";
// line 302
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 302, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 302), 'widget');
echo "
";
// line 303
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 303, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 303), 'errors');
echo "
</div>-->
";
// line 305
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 305)) {
// line 306
echo " <!--<div class=\"ec-select\">
";
// line 307
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 307, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 307), 'widget');
echo "
";
// line 308
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 308, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 308), 'errors');
echo "
</div>-->
";
}
// line 311
echo " ";
}
// line 312
echo " <!--<div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 313
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 313, $this->source); })()), "quantity", [], "any", false, false, false, 313), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 314
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 314, $this->source); })()), "quantity", [], "any", false, false, false, 314), 'errors');
echo "
</div>-->
</div>
";
// line 317
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 317, $this->source); })()), 'rest');
echo "
</form>
<!--<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 320
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 320), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 320), "html", null, true);
echo "\">
";
// line 321
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>-->
";
} else {
// line 325
echo " <!--<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 327
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>-->
";
}
// line 331
echo " </li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 333
echo " </ul>
</div>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 338
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 339
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 342
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 343
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
";
// line 350
$this->loadTemplate("pager.twig", "Product/list.twig", 350)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 350, $this->source); })()), "paginationData", [], "any", false, false, false, 350)]));
// line 351
echo " </div>
";
}
// line 353
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 916 => 353, 912 => 351, 910 => 350, 898 => 343, 894 => 342, 888 => 339, 884 => 338, 877 => 333, 862 => 331, 855 => 327, 851 => 325, 844 => 321, 838 => 320, 832 => 317, 826 => 314, 822 => 313, 817 => 312, 814 => 311, 808 => 308, 804 => 307, 801 => 306, 799 => 305, 794 => 303, 790 => 302, 787 => 301, 785 => 300, 775 => 298, 772 => 297, 770 => 296, 765 => 293, 759 => 291, 757 => 290, 754 => 289, 746 => 287, 740 => 285, 737 => 284, 735 => 283, 733 => 282, 729 => 280, 726 => 278, 724 => 277, 721 => 276, 715 => 274, 712 => 273, 706 => 271, 700 => 269, 697 => 268, 695 => 267, 690 => 266, 687 => 265, 685 => 264, 682 => 263, 679 => 262, 673 => 260, 667 => 258, 664 => 257, 661 => 256, 655 => 254, 649 => 252, 646 => 251, 643 => 250, 637 => 248, 631 => 246, 628 => 245, 625 => 244, 623 => 243, 621 => 242, 618 => 241, 616 => 240, 610 => 238, 605 => 236, 600 => 235, 598 => 234, 592 => 232, 590 => 231, 587 => 230, 581 => 228, 577 => 227, 573 => 226, 570 => 225, 565 => 223, 561 => 222, 558 => 221, 555 => 220, 549 => 218, 545 => 217, 539 => 215, 535 => 214, 529 => 212, 525 => 211, 519 => 209, 515 => 208, 509 => 206, 505 => 205, 502 => 204, 492 => 202, 487 => 200, 484 => 199, 467 => 198, 463 => 196, 461 => 195, 457 => 193, 450 => 189, 446 => 188, 442 => 186, 440 => 185, 437 => 184, 431 => 182, 425 => 180, 423 => 179, 419 => 177, 416 => 176, 412 => 173, 409 => 172, 406 => 171, 400 => 169, 397 => 168, 394 => 167, 391 => 159, 388 => 158, 385 => 157, 379 => 155, 376 => 154, 373 => 153, 370 => 152, 367 => 151, 364 => 150, 358 => 148, 356 => 147, 351 => 146, 348 => 145, 346 => 144, 343 => 143, 322 => 140, 316 => 139, 313 => 138, 295 => 137, 293 => 136, 286 => 134, 281 => 131, 269 => 129, 265 => 128, 260 => 127, 256 => 126, 252 => 124, 246 => 121, 243 => 120, 241 => 119, 221 => 101, 211 => 100, 184 => 82, 174 => 75, 143 => 47, 115 => 21, 101 => 20, 93 => 19, 76 => 18, 72 => 16, 62 => 15, 51 => 11, 49 => 13, 36 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
{% endblock %}
{% block main %}
<style>
.status_icon_topright {
position: absolute;
top: 0;
right: 0;
left: auto;
width: 60px;
height: 60px;
}
.status_icon_bottomleft {
position: absolute;
bottom: 0;
right: auto;
left: 0;
width: 60px;
height: 60px;
}
</style>
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endfor %}
</form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
</li>
{% endfor %}
{% endif %}
{# パンくずリストに検索条件の内容も追加する。検索ワード、タグ、価格帯。 #}
{% if search_form.vars.value and (search_form.vars.value.name or search_form.vars.value.tag_id or search_form.vars.value.price_id) %}
<li class=\"ec-topicpath__item\">{{ ' 検索条件'|trans }}</li>
{% if search_form.vars.value and search_form.vars.value.name %}
<li class=\"ec-topicpath__item\">{{ '「%name%」'|trans({ '%name%': search_form.vars.value.name }) }}</li>
{% endif %}
{% if search_form.vars.value and search_form.vars.value.tag_id %}
{% set Tags = repository('Eccube\\\\Entity\\\\Tag').getList() %}
{% set now_tag_id = app.request.query.get('tag_id') %}
{% set current_tag = Tags|filter(tag => tag.id == now_tag_id)|first %}
{% if current_tag %}
<li class=\"ec-topicpath__item\">{{ '「%Tag.name%」'|trans({ '%Tag.name%': current_tag.name }) }}</li>
{% endif %}
{% endif %}
{% if search_form.vars.value and search_form.vars.value.price_id %}
{% set price_ranges = {
1: '10万円未満',
2: '10万円以上~20万円未満',
3: '20万円以上~30万円未満',
4: '30万円以上~50万円未満',
5: '50万円以上~100万円未満',
6: '100万円以上',
} %}
{% set now_price_id = app.request.query.get('price_id') %}
{% if price_ranges[now_price_id] is defined %}
<li class=\"ec-topicpath__item\">{{ '「%price_range%」'|trans({ '%price_range%': price_ranges[now_price_id] }) }}</li>
{% endif %}
{% endif %}
{% endif %}
</ol>
</div>
{# 商品一覧ページのサーチフィルター部分のブロックを挿入。 #}
{% include 'Block/product_list_filter.twig' %}
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
</div>
</div>
{% endif %}
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\" style=\"position:relative;\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
{# 商品一覧画像に、商品タグに合わせた画像をオーバーレイする。 #}
{% if Product.Tags is not empty %}
{% if Product.Tags|filter(tag => tag.id == 6)|length > 0 %} {# id=6、特価品(在庫のみ) #}
<img src=\"{{ asset('assets/img/productlist/itemlist_icon_sale-instock.png') }}\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 7)|length > 0 %} {# id=7、特価品(取り寄せ対応) #}
<img src=\"{{ asset('assets/img/productlist/itemlist_icon_sale-order.png') }}\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 8)|length > 0 %} {# id=8、アウトレット品 #}
<img src=\"{{ asset('assets/img/productlist/itemlist_icon_outlet.png') }}\" alt=\"Small Image\" class=\"status_icon_bottomleft\" />
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 9)|length > 0 %} {# id=9、在庫品 #}
<img src=\"{{ asset('assets/img/productlist/itemlist_icon_instock.png') }}\" alt=\"Small Image\" class=\"status_icon_topright\" />
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 10)|length > 0 %} {# id=10、メーカー取寄せ #}
<img src=\"{{ asset('assets/img/productlist/itemlist_icon_order.png') }}\" alt=\"Small Image\" class=\"status_icon_topright\" />
{% endif %}
{% endif %}
</p>
{% if Product.Maker %}
<p class=\"ec-shelfGrid__item-maker\">{{ Product.Maker.nameEn }}</p>
{% endif %}
<p>
{{ Product.name }}
{% if Product.model_year %}
{{ Product.model_year }}{{ '年モデル'|trans }}
{% endif %}
</p>
{% if Product.description_list %}
<!--<p>{{ Product.description_list|raw|nl2br }}</p>-->
{% endif %}
{# 定価表示と現金特価で表示ラベルを変更する。 #}
{% if Product.ask_price == 'teika_price' %}
<p class=\"ec-color-red\">{{ '販売価格(税込)' }}</p>
{% else %}
<p class=\"ec-color-red\">{{ '現金特価(税込)'|trans }}</p>
{% endif %}
{# 商品の価格・カート表示フラグに応じた表記にする。 #}
<p class=\"price02-default\"><strong class=\"ec-color-red ec-font-size-4\">
{% if Product.hasProductClass %}
{# 規格を持つ商品の場合の処理 #}
{% if Product.ask_price == 'teika_price' %}
{% if Product.getPrice01Min == Product.getPrice01Max %}
{{ Product.Price01IncTaxMin|price }}
{% else %}
{{ Product.Price01IncTaxMin|price }} ~
{% endif %}
{% elseif Product.ask_price == 'hidden_price' %}
{% if Product.info_comment2 is null %}
{{ 'びっくり大特価!'|trans }}
{% else %}
{{ Product.info_comment2|trans }}
{% endif %}
{% else %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ (Product.getPrice02IncTaxMin / 1.05)|price }}
{% else %}
{{ (Product.getPrice02IncTaxMin / 1.05)|price }} ~
{% endif %}
{% endif %}
{% else %}
{# 規格を持たない商品の場合の処理 #}
{% if Product.ask_price == 'teika_price' %}
{{ (Product.getPrice01IncTaxMin)|price }}
{% elseif Product.ask_price == 'hidden_price' %}
{% if Product.info_comment2 is null %}
{{ 'びっくり大特価!'|trans }}
{% else %}
{{ Product.info_comment2|trans }}
{% endif %}
{% else %}
{{ (Product.getPrice02IncTaxMin / 1.05)|price }}
{% endif %}
{% endif %}
{# end 商品の価格・カート表示フラグに応じた表記にする。 #}
</strong></p>
{# 定価表示を追加する。 #}
<p><span class=\"ec-color-grey ec-font-size-2\">通常販売価格</span></p>
<p><span class=\"ec-color-grey ec-font-size-2\">
{% if Product.hasProductClass %}
{# 規格を持つ商品の場合の処理 #}
{% if Product.getPrice01Min == Product.getPrice01Max %}
{{ Product.getPrice01IncTaxMin|price }}
{% else %}
{{ Product.Price01IncTaxMin|price }} ~ {{ Product.Price01IncTaxMax|price }}
{% endif %}
{% else %}
{# 規格を持たない商品の場合の処理 #}
{{ Product.getPrice01IncTaxMin|price }}
{% endif %}
</span></p>
</a>
{% if Product.stock_find %}
{% set form = forms[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<!--<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>-->
{% if form.classcategory_id2 is defined %}
<!--<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>-->
{% endif %}
{% endif %}
<!--<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>-->
</div>
{{ form_rest(form) }}
</form>
<!--<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>-->
{% else %}
<!--<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>-->
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
{% endblock %}", "Product/list.twig", "/home/xs0607itami/xs0607itami.xsrv.jp/public_html/app/template/default/Product/list.twig");
}
}