<?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_14789029f9cb8b5b1f1d14e26ee978f6 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'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_stylesheet($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", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
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 18
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html", null, true);
echo "\"></script>
<script>
eccube.productsClassCategories = {
";
// line 21
$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.', 21, $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 22
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, 22), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 22) == false)) {
echo ", ";
}
// line 23
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 24
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 50
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() {
\$('#js-product__modal-message').html(this);
});
\$('#p-product__modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '";
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('#js-header__utility-cart').html(html);
});
}).fail(function(data) {
alert('";
// line 85
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);
});
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 95
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 96
echo "
<section class=\"p-product\">
<h2 class=\"p-product__title\">
";
// line 99
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.', 99, $this->source); })()), "vars", [], "any", false, false, false, 99), "value", [], "any", false, false, false, 99) && 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.', 99, $this->source); })()), "vars", [], "any", false, false, false, 99), "value", [], "any", false, false, false, 99), "name", [], "any", false, false, false, 99))) {
// line 100
echo " <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
";
} elseif ( !(null === // line 101
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 101, $this->source); })()))) {
// line 102
echo " <span class=\"p-product__title-text\">ITEMS</span>
";
} else {
// line 104
echo " <span class=\"p-product__title-text\">ALL ITEMS</span>
";
}
// line 106
echo " </h2>
<div class=\"p-product__contents\">
";
// line 108
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.', 108, $this->source); })()), "category_id", [], "any", false, false, false, 108), "vars", [], "any", false, false, false, 108), "errors", [], "any", false, false, false, 108)) > 0)) {
// line 109
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
";
} else {
// line 111
echo " <div class=\"p-product__search\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 113
$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.', 113, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 114
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, 114), "id", [], "any", false, false, false, 114), "html", null, true);
echo "\" name=\"";
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, 114), "full_name", [], "any", false, false, false, 114), "html", null, true);
echo "\" ";
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, 114), "value", [], "any", false, false, false, 114))) {
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, 114), "value", [], "any", false, false, false, 114), "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 116
echo " </form>
<div class=\"p-product__topicpath\">
<ul class=\"p-product__topicpath-list u-list-sanitize\">
<li class=\"p-product__topicpath-list-item\">
<a class=\"p-product__topicpath-link\" href=\"";
// line 120
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 122
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 122, $this->source); })()))) {
// line 123
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.', 123, $this->source); })()), "path", [], "any", false, false, false, 123));
$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 124
echo " <li class=\"p-product__topicpath-list-item";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 124)) {
echo " is-active";
}
echo "\">
<a class=\"p-product__topicpath-link\" href=\"";
// line 125
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, 125), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 125), "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 128
echo " ";
}
// line 129
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.', 129, $this->source); })()), "vars", [], "any", false, false, false, 129), "value", [], "any", false, false, false, 129) && 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.', 129, $this->source); })()), "vars", [], "any", false, false, false, 129), "value", [], "any", false, false, false, 129), "name", [], "any", false, false, false, 129))) {
// line 130
echo " <li class=\"p-product__topicpath-list-item is-result\">
<p class=\"p-product__topicpath-result\">";
// line 131
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.', 131, $this->source); })()), "vars", [], "any", false, false, false, 131), "value", [], "any", false, false, false, 131), "name", [], "any", false, false, false, 131)]), "html", null, true);
echo "</p>
</li>
";
}
// line 134
echo " </ul>
</div>
<div class=\"p-product__controller\">
<p class=\"p-product__controller-result\">
";
// line 138
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.', 138, $this->source); })()), "totalItemCount", [], "any", false, false, false, 138) > 0)) {
// line 139
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</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.', 139, $this->source); })()), "totalItemCount", [], "any", false, false, false, 139)]);
echo "
";
} else {
// line 141
echo " <span class=\"p-product__controller-result--text\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 143
echo " </p>
";
// line 144
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.', 144, $this->source); })()), "totalItemCount", [], "any", false, false, false, 144) > 0)) {
// line 145
echo " <div class=\"p-product__controller-actions\">
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"disp-number\">件数</label>
";
// line 150
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(((array_key_exists("disp_number_form", $context)) ? ((isset($context["disp_number_form"]) || array_key_exists("disp_number_form", $context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.', 150, $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); })()), "disp_number", [], "any", false, false, false, 150))), 'widget', ["id" => "disp-number", "attr" => ["class" => "c-select__native-control mdc-select__native-control disp-number"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"order-by\">並び順</label>
";
// line 162
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(((array_key_exists("order_by_form", $context)) ? ((isset($context["order_by_form"]) || array_key_exists("order_by_form", $context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.', 162, $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.', 162, $this->source); })()), "orderby", [], "any", false, false, false, 162))), 'widget', ["id" => "order-by", "attr" => ["class" => "c-select__native-control mdc-select__native-control order-by"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
</div>
";
}
// line 172
echo " </div>
</div>
";
// line 174
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.', 174, $this->source); })()), "totalItemCount", [], "any", false, false, false, 174) > 0)) {
// line 175
echo " <ul class=\"p-product__list u-list-sanitize\">
";
// line 176
$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.', 176, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 177
echo " <li class=\"p-product__list-item\">
<section class=\"c-list-product\">
<a class=\"c-list-product__link\" href=\"";
// line 179
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, 179)]), "html", null, true);
echo "\">
<div class=\"c-list-product__image js-list-product__image\">
<div class=\"c-list-product__image-contents\">
<img class=\"c-list-product__image-pic\" src=\"";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, $context["Product"], "main_list_image", [], "any", false, false, false, 182)), "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, 182), "html", null, true);
echo "\">
</div>
</div>
<h2 class=\"c-list-product__name js-list-product__name\">";
// line 185
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 185), "html", null, true);
echo "</h2>
<p class=\"c-list-product__price\">
<span class=\"price02-default\">
";
// line 188
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 188)) {
// line 189
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 189) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 189))) {
// line 190
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 190)), "html", null, true);
echo "
";
} else {
// line 192
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 192)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 192)), "html", null, true);
echo "
";
}
// line 194
echo " ";
} else {
// line 195
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 195)), "html", null, true);
echo "
";
}
// line 197
echo " </span>
</p>
</a>
";
// line 200
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 200)) {
// line 201
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.', 201, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 201), [], "array", false, false, false, 201);
// line 202
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 202), "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, 202), "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, 202)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"c-list-product__form\">
";
// line 204
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 204)) {
// line 205
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined";
// line 207
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 207, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 207))) ? (" mdc-select--invalid") : (""));
echo "\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"";
// line 209
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 209, $this->source); })()), "children", [], "any", false, false, false, 209), "classcategory_id1", [], "any", false, false, false, 209), "vars", [], "any", false, false, false, 209), "id", [], "any", false, false, false, 209), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 209, $this->source); })()), "children", [], "any", false, false, false, 209), "classcategory_id1", [], "any", false, false, false, 209), "vars", [], "any", false, false, false, 209), "label", [], "any", false, false, false, 209), "html", null, true);
echo "</label>
";
// line 210
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.', 210, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 210), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 217
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.', 217, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 217), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
echo "
</div>
</div>
";
// line 220
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 220)) {
// line 221
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined";
// line 223
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 223, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 223))) ? (" mdc-select--invalid") : (""));
echo "\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"";
// line 225
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 225, $this->source); })()), "children", [], "any", false, false, false, 225), "classcategory_id2", [], "any", false, false, false, 225), "vars", [], "any", false, false, false, 225), "id", [], "any", false, false, false, 225), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 225, $this->source); })()), "children", [], "any", false, false, false, 225), "classcategory_id2", [], "any", false, false, false, 225), "vars", [], "any", false, false, false, 225), "label", [], "any", false, false, false, 225), "html", null, true);
echo "</label>
";
// line 226
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.', 226, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 226), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 233
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.', 233, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 233), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
echo "
</div>
</div>
";
}
// line 237
echo " ";
}
// line 238
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
";
// line 241
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.', 241, $this->source); })()), "quantity", [], "any", false, false, false, 241), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input quantity"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\">
<label class=\"c-floating-label mdc-floating-label\" for=\"quantity";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 245), "html", null, true);
echo "\">数量</label>
</div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 250
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.', 250, $this->source); })()), "quantity", [], "any", false, false, false, 250), 'errors');
echo "
</div>
</div>
";
// line 253
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.', 253, $this->source); })()), 'rest');
echo "
</div>
</form>
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"";
// line 258
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 258), "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, 258), "html", null, true);
echo "\">
<span class=\"c-button__label mdc-button__label\">";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "</span>
</button>
</div>
</div>
";
} else {
// line 264
echo " <div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
<span class=\"c-button__label mdc-button__label\">";
// line 267
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SOLD OUT"), "html", null, true);
echo "</span>
</button>
</div>
</div>
";
}
// line 272
echo " </section>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 275
echo " </ul>
<div class=\"p-product__modal\">
<input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
<div class=\"p-product__modal-overlay\">
<label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
<div class=\"p-product__modal-contents\">
<label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
<i class=\"p-product__modal-close-icon material-icons\">close</i>
</label>
<div class=\"p-product__modal-header\">
<p class=\"p-product__modal-message\" id=\"js-product__modal-message\">";
// line 285
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</p>
</div>
<div class=\"p-product__modal-actions\">
<div class=\"p-product__modal-actions-item\">
<a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"";
// line 289
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<span class=\"c-button__label mdc-button__label\">";
// line 290
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</span>
</a>
</div>
<div class=\"p-product__modal-actions-item\">
<label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
<span class=\"c-button__label mdc-button__label\">";
// line 295
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
</label>
</div>
</div>
</div>
</div>
</div>
";
// line 303
$this->loadTemplate("pager.twig", "Product/list.twig", 303)->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.', 303, $this->source); })()), "paginationData", [], "any", false, false, false, 303)]));
// line 304
echo " ";
}
// line 305
echo " ";
}
// line 306
echo " </div>
</section>
";
$__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 ( 702 => 306, 699 => 305, 696 => 304, 694 => 303, 683 => 295, 675 => 290, 671 => 289, 664 => 285, 652 => 275, 644 => 272, 636 => 267, 631 => 264, 623 => 259, 617 => 258, 609 => 253, 603 => 250, 595 => 245, 588 => 241, 583 => 238, 580 => 237, 573 => 233, 563 => 226, 557 => 225, 552 => 223, 548 => 221, 546 => 220, 540 => 217, 530 => 210, 524 => 209, 519 => 207, 515 => 205, 513 => 204, 503 => 202, 500 => 201, 498 => 200, 493 => 197, 487 => 195, 484 => 194, 476 => 192, 470 => 190, 467 => 189, 465 => 188, 459 => 185, 451 => 182, 445 => 179, 441 => 177, 437 => 176, 434 => 175, 432 => 174, 428 => 172, 415 => 162, 400 => 150, 393 => 145, 391 => 144, 388 => 143, 382 => 141, 376 => 139, 374 => 138, 368 => 134, 362 => 131, 359 => 130, 356 => 129, 353 => 128, 332 => 125, 325 => 124, 307 => 123, 305 => 122, 298 => 120, 292 => 116, 275 => 114, 271 => 113, 267 => 111, 261 => 109, 259 => 108, 255 => 106, 251 => 104, 247 => 102, 245 => 101, 242 => 100, 240 => 99, 235 => 96, 225 => 95, 206 => 85, 196 => 78, 165 => 50, 137 => 24, 123 => 23, 115 => 22, 98 => 21, 91 => 18, 81 => 17, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.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 stylesheet %}{% endblock %}
{% block javascript %}
<script src=\"{{ asset('assets/js/eccube.js') }}\"></script>
<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() {
\$('#js-product__modal-message').html(this);
});
\$('#p-product__modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('#js-header__utility-cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
</script>
{% endblock %}
{% block main %}
<section class=\"p-product\">
<h2 class=\"p-product__title\">
{% if search_form.vars.value and search_form.vars.value.name %}
<span class=\"p-product__title-text\">KEYWORD SEARCH</span>
{% elseif Category is not null %}
<span class=\"p-product__title-text\">ITEMS</span>
{% else %}
<span class=\"p-product__title-text\">ALL ITEMS</span>
{% endif %}
</h2>
<div class=\"p-product__contents\">
{% if search_form.category_id.vars.errors|length > 0 %}
<p>{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
{% else %}
<div class=\"p-product__search\">
<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=\"p-product__topicpath\">
<ul class=\"p-product__topicpath-list u-list-sanitize\">
<li class=\"p-product__topicpath-list-item\">
<a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
<li class=\"p-product__topicpath-list-item{% if loop.last %} is-active{% endif %}\">
<a class=\"p-product__topicpath-link\" 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 %}
<li class=\"p-product__topicpath-list-item is-result\">
<p class=\"p-product__topicpath-result\">{{ '%name%の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</p>
</li>
{% endif %}
</ul>
</div>
<div class=\"p-product__controller\">
<p class=\"p-product__controller-result\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span class=\"p-product__controller-result--text\">{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</p>
{% if pagination.totalItemCount > 0 %}
<div class=\"p-product__controller-actions\">
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"disp-number\">件数</label>
{{ form_widget(disp_number_form is defined ? disp_number_form : search_form.disp_number, {'id': 'disp-number', 'attr': {'class': 'c-select__native-control mdc-select__native-control disp-number'}}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"order-by\">並び順</label>
{{ form_widget(order_by_form is defined ? order_by_form : search_form.orderby, {'id': 'order-by', 'attr': {'class': 'c-select__native-control mdc-select__native-control order-by'}}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<ul class=\"p-product__list u-list-sanitize\">
{% for Product in pagination %}
<li class=\"p-product__list-item\">
<section class=\"c-list-product\">
<a class=\"c-list-product__link\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<div class=\"c-list-product__image js-list-product__image\">
<div class=\"c-list-product__image-contents\">
<img class=\"c-list-product__image-pic\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\">
</div>
</div>
<h2 class=\"c-list-product__name js-list-product__name\">{{ Product.name }}</h2>
<p class=\"c-list-product__price\">
<span class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|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=\"c-list-product__form\">
{% if form.classcategory_id1 is defined %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id1) ? ' mdc-select--invalid' }}\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"{{ form.children.classcategory_id1.vars.id }}\">{{ form.children.classcategory_id1.vars.label }}</label>
{{ form_widget(form.classcategory_id1, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.classcategory_id1, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
</div>
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id2) ? ' mdc-select--invalid' }}\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"{{ form.children.classcategory_id2.vars.id }}\">{{ form.children.classcategory_id2.vars.label }}</label>
{{ form_widget(form.classcategory_id2, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.classcategory_id2, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
</div>
</div>
{% endif %}
{% endif %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
{{ form_widget(form.quantity, {'attr': {'class': 'c-text-field__input mdc-text-field__input quantity' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\">
<label class=\"c-floating-label mdc-floating-label\" for=\"quantity{{ Product.id }}\">数量</label>
</div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</div>
</form>
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
<span class=\"c-button__label mdc-button__label\">{{ 'カートに入れる'|trans }}</span>
</button>
</div>
</div>
{% else %}
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
<span class=\"c-button__label mdc-button__label\">{{ 'SOLD OUT'|trans }}</span>
</button>
</div>
</div>
{% endif %}
</section>
</li>
{% endfor %}
</ul>
<div class=\"p-product__modal\">
<input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
<div class=\"p-product__modal-overlay\">
<label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
<div class=\"p-product__modal-contents\">
<label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
<i class=\"p-product__modal-close-icon material-icons\">close</i>
</label>
<div class=\"p-product__modal-header\">
<p class=\"p-product__modal-message\" id=\"js-product__modal-message\">{{ 'カートに追加しました。'|trans }}</p>
</div>
<div class=\"p-product__modal-actions\">
<div class=\"p-product__modal-actions-item\">
<a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"{{ url('cart') }}\">
<span class=\"c-button__label mdc-button__label\">{{ 'カートへ進む'|trans }}</span>
</a>
</div>
<div class=\"p-product__modal-actions-item\">
<label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
<span class=\"c-button__label mdc-button__label\">{{ 'お買い物を続ける'|trans }}</span>
</label>
</div>
</div>
</div>
</div>
</div>
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
{% endif %}
{% endif %}
</div>
</section>
{% endblock %}", "Product/list.twig", "/home/rocroc/tsmt-store.com/public_html/app/template/ss4002/Product/list.twig");
}
}