<?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_d8aede2df4be720b0fa225dc241d6d72df5bcabbcc4be1fbbd460ef4c623f5ed 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 15
$context["hasCategory"] = false;
// line 16
$context["request_uri"] = 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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "server", [], "any", false, false, false, 16), "get", [0 => "REQUEST_URI"], "method", false, false, false, 16);
// line 18
if ((twig_in_filter("name=", (isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 18, $this->source); })())) && ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 18, $this->source); })()) != ""))) {
// line 19
$context["RootCategory"] = 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.', 19, $this->source); })()), "RootCategory", [], "any", false, false, false, 19);
// line 20
$context["hasCategory"] = true;
// line 21
$context["msg"] = "elseif 'name=' in request_uri and Category != ))";
} elseif (( // line 23
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 23, $this->source); })()) != "")) {
// line 24
$context["RootCategory"] = 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.', 24, $this->source); })()), "RootCategory", [], "any", false, false, false, 24);
// line 25
$context["hasCategory"] = true;
// line 26
$context["msg"] = "elseif Category != ))";
} elseif (twig_in_filter("name=", // line 27
(isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 27, $this->source); })()))) {
// line 28
$context["hasCategory"] = false;
// line 29
$context["msg"] = "if 'name=' in request_uri";
} else {
// line 32
$context["msg"] = "else";
}
// line 35
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 35, $this->source); })())) {
// line 36
$context["RootCategory"] = 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.', 36, $this->source); })()), "RootCategory", [], "any", false, false, false, 36);
}
// line 39
$context["prm2"] = 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.', 39, $this->source); })()), "request", [], "any", false, false, false, 39), "query", [], "any", false, false, false, 39), "get", [0 => "type"], "method", false, false, false, 39);
// line 40
$context["prm3"] = 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.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "query", [], "any", false, false, false, 40), "get", [0 => "category_id2"], "method", false, false, false, 40);
// line 41
$context["prm4"] = 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.', 41, $this->source); })()), "request", [], "any", false, false, false, 41), "query", [], "any", false, false, false, 41), "get", [0 => "category_id3"], "method", false, false, false, 41);
// line 42
$context["prm5"] = 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.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "query", [], "any", false, false, false, 42), "get", [0 => "category_id4"], "method", false, false, false, 42);
// line 43
$context["prm6"] = 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.', 43, $this->source); })()), "request", [], "any", false, false, false, 43), "query", [], "any", false, false, false, 43), "get", [0 => "category_id5"], "method", false, false, false, 43);
// line 44
$context["prm7"] = 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.', 44, $this->source); })()), "request", [], "any", false, false, false, 44), "query", [], "any", false, false, false, 44), "get", [0 => "tag_id"], "method", false, false, false, 44);
// line 46
$context["pm2"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 46, $this->source); })()));
// line 47
$context["pm3"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm3"]) || array_key_exists("prm3", $context) ? $context["prm3"] : (function () { throw new RuntimeError('Variable "prm3" does not exist.', 47, $this->source); })()));
// line 48
$context["pm4"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm4"]) || array_key_exists("prm4", $context) ? $context["prm4"] : (function () { throw new RuntimeError('Variable "prm4" does not exist.', 48, $this->source); })()));
// line 49
$context["pm5"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm5"]) || array_key_exists("prm5", $context) ? $context["prm5"] : (function () { throw new RuntimeError('Variable "prm5" does not exist.', 49, $this->source); })()));
// line 50
$context["pm6"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->castToInt((isset($context["prm6"]) || array_key_exists("prm6", $context) ? $context["prm6"] : (function () { throw new RuntimeError('Variable "prm6" does not exist.', 50, $this->source); })()));
// line 53
$context["cn1"] = 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.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "query", [], "any", false, false, false, 53), "get", [0 => "name"], "method", false, false, false, 53);
// line 55
if ((((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 55, $this->source); })()) == 0) && ((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 55, $this->source); })()) != ""))) {
// line 56
$context["cn2"] = "ヴァイスシュヴァルツ,";
} elseif ((( // line 57
(isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 57, $this->source); })()) == 1) && ((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 57, $this->source); })()) != ""))) {
// line 58
$context["cn2"] = "ポケモン,";
} else {
// line 60
$context["cn2"] = "";
}
// line 63
$context["cn3"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm3"]) || array_key_exists("pm3", $context) ? $context["pm3"] : (function () { throw new RuntimeError('Variable "pm3" does not exist.', 63, $this->source); })()));
// line 64
$context["cn4"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm4"]) || array_key_exists("pm4", $context) ? $context["pm4"] : (function () { throw new RuntimeError('Variable "pm4" does not exist.', 64, $this->source); })()));
// line 65
$context["cn5"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm5"]) || array_key_exists("pm5", $context) ? $context["pm5"] : (function () { throw new RuntimeError('Variable "pm5" does not exist.', 65, $this->source); })()));
// line 66
$context["cn6"] = $this->extensions['Eccube\Twig\Extension\CategoryExtension']->getCategoryName((isset($context["pm6"]) || array_key_exists("pm6", $context) ? $context["pm6"] : (function () { throw new RuntimeError('Variable "pm6" does not exist.', 66, $this->source); })()));
// line 68
if ((((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 68, $this->source); })()) == 4) && ((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 68, $this->source); })()) != ""))) {
// line 69
$context["cn7"] = "傷あり商品,";
} else {
// line 71
$context["cn7"] = "";
}
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 74
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 75
echo " <script>
eccube.productsClassCategories = {
";
// line 77
$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.', 77, $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 78
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, 78), "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, 78) == false)) {
echo ", ";
}
// line 79
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 80
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 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "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 134
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 141
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "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()
});
";
// line 156
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 156, $this->source); })())) {
// line 157
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 157, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 157, $this->source); })()) == "買い取り"))) {
// line 158
echo " \$('.bigbox').css('background-color','#22b573');
\$('.header-middle').css('background-color','#22b573');
\$('.side-searchbox').css('background-color','#22b573');
\$('.side-cat-more').css('background-color','#22b573');
\$('.side-cat-more2').css('background-color','#22b573');
\$('.side-cat-more3').css('background-color','#22b573');
";
}
// line 166
echo " ";
}
// line 167
echo " \$(document).ready(function() {
// プラスボタンがクリックされたとき
\$('.spinner-up').click(function() {
// 対応する数量フィールドのIDを取得
var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
// 対応する数量フィールドの値を取得
var quantity = parseInt(\$('#' + productId).val());
// 値を増加させて数量フィールドに設定
\$('#' + productId).val(quantity + 1);
});
// マイナスボタンがクリックされたとき
\$('.spinner-down').click(function() {
// 対応する数量フィールドのIDを取得
var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
// 対応する数量フィールドの値を取得
var quantity = parseInt(\$('#' + productId).val());
// 値を減少させて数量フィールドに設定 (1未満にはしない)
if (quantity > 1) {
\$('#' + productId).val(quantity - 1);
}
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 199
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 200
echo "
<div class=\"ec-layoutRole__mainTop\">
<div class=\"top-content-box cat_mob_top-content-box\">
";
// line 205
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.', 205, $this->source); })()), "category_id", [], "any", false, false, false, 205), "vars", [], "any", false, false, false, 205), "errors", [], "any", false, false, false, 205)) > 0)) {
// line 206
echo " <div class=\"test\">
<p class=\"errormsg text-danger\">";
// line 207
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search__category_not_found"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 210
echo " <div class=\"sort-big-box\">
<h2>商品一覧</h2>
<div class=\"sort-box\">
\t\t\t\t\t<!--<a href=\"";
// line 213
echo twig_escape_filter($this->env, 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.', 213, $this->source); })()), "request", [], "any", false, false, false, 213), "getUri", [], "any", false, false, false, 213), "html", null, true);
echo "&orderby=4\">おすすめ順</a>-->
<a href=\"";
// line 214
echo twig_escape_filter($this->env, 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.', 214, $this->source); })()), "request", [], "any", false, false, false, 214), "getUri", [], "any", false, false, false, 214), "html", null, true);
echo "&orderby=2\">新着順</a>
<a href=\"";
// line 215
echo twig_escape_filter($this->env, 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.', 215, $this->source); })()), "request", [], "any", false, false, false, 215), "getUri", [], "any", false, false, false, 215), "html", null, true);
echo "&orderby=1\">価格の安い順</a>
<a href=\"";
// line 216
echo twig_escape_filter($this->env, 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.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "getUri", [], "any", false, false, false, 216), "html", null, true);
echo "&orderby=3\">価格の高い順</a>
</div>
";
// line 218
if ((((((twig_test_empty((isset($context["cn1"]) || array_key_exists("cn1", $context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.', 218, $this->source); })())) && twig_test_empty((isset($context["cn2"]) || array_key_exists("cn2", $context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.', 218, $this->source); })()))) && twig_test_empty((isset($context["cn3"]) || array_key_exists("cn3", $context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.', 218, $this->source); })()))) && twig_test_empty((isset($context["cn4"]) || array_key_exists("cn4", $context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.', 218, $this->source); })()))) && twig_test_empty((isset($context["cn5"]) || array_key_exists("cn5", $context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.', 218, $this->source); })()))) && twig_test_empty((isset($context["cn6"]) || array_key_exists("cn6", $context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.', 218, $this->source); })())))) {
// line 219
echo "
";
} else {
// line 221
echo " <p class=\"search_res_text\">検索ワード:";
echo twig_escape_filter($this->env, (isset($context["cn2"]) || array_key_exists("cn2", $context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn3"]) || array_key_exists("cn3", $context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn4"]) || array_key_exists("cn4", $context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn5"]) || array_key_exists("cn5", $context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn6"]) || array_key_exists("cn6", $context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn7"]) || array_key_exists("cn7", $context) ? $context["cn7"] : (function () { throw new RuntimeError('Variable "cn7" does not exist.', 221, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["cn1"]) || array_key_exists("cn1", $context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.', 221, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 223
echo " </div>
<div class=\"product-big-list\">
";
// line 227
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.', 227, $this->source); })()), "totalItemCount", [], "any", false, false, false, 227) > 0)) {
// line 228
echo "
";
// line 229
$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.', 229, $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 230
echo "
<div class=\"product-list-box\">
";
// line 232
if (((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.', 232, $this->source); })()), "request", [], "any", false, false, false, 232), "query", [], "any", false, false, false, 232), "get", [0 => "category_id"], "method", false, false, false, 232) == 219) || (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.', 232, $this->source); })()), "request", [], "any", false, false, false, 232), "query", [], "any", false, false, false, 232), "get", [0 => "category_id"], "method", false, false, false, 232) == 218))) {
// line 233
echo "
<img src=\"";
// line 234
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, 234)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 237
echo " <a href=\"";
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, 237)]), "html", null, true);
echo "\">
<img src=\"";
// line 238
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, 238)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 241
echo "
<p>";
// line 243
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 243), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 246
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 246)) {
// line 247
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 247) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 247))) {
// line 248
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 248)), "html", null, true);
echo "
";
} else {
// line 250
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 250)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 250)), "html", null, true);
echo "
";
}
// line 252
echo " ";
} else {
// line 253
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 253)), "html", null, true);
echo "
";
}
// line 255
echo " <span>円</span>
</p>
";
// line 257
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 257)) {
// line 258
echo "
<form name=\"form";
// line 259
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 259), "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, 259), "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, 259)]), "html", null, true);
echo "\" method=\"post\">
";
// line 260
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 260, $this->source); })())) {
// line 261
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 261, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 261, $this->source); })()) == "買い取り"))) {
// line 262
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
} else {
// line 264
echo " ";
}
// line 265
echo " ";
}
// line 266
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 267
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 267), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\"> <img src=\"";
// line 268
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/minus.png"), "html", null, true);
echo "\" class=\"numcursul\" alt=\"\"> </span>
<span class=\"spinner spinner-up\"> <img src=\"";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/plus.png"), "html", null, true);
echo "\" class=\"numcursul\" alt=\"\"> </span>
</label>
<input type=\"hidden\" id=\"product_id";
// line 271
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 271), "html", null, true);
echo "\" name=\"product_id\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 271), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 272
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, $context["Product"], "ProductClasses", [], "any", false, false, false, 272), 0, [], "array", false, false, false, 272), "id", [], "any", false, false, false, 272), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// line 273
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 273), "html", null, true);
echo "\" name=\"_token\" value=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("Eccube\\Form\\Type\\AddCartType"), "html", null, true);
echo "\" />
</form>
";
// line 275
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 275, $this->source); })())) {
// line 276
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 276, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 276, $this->source); })()) == "買い取り"))) {
// line 277
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// line 278
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 278), "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, 278), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
</div>
";
} else {
// line 281
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// line 282
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 282), "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, 282), "html", null, true);
echo "\" type=\"submit\"> カートに入れる </button>
</div>
";
}
// line 285
echo " ";
}
// line 286
echo "
";
} else {
// line 291
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> ";
// line 292
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo " </button>
</div>
";
}
// line 295
echo " </div>
<!--<li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 299
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, 299)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 301
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, 301)), "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, 301), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 301) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</p>
<p>";
// line 303
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 303), "html", null, true);
echo "</p>
";
// line 304
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 304)) {
// line 305
echo " <p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 305));
echo "</p>
";
}
// line 307
echo " <p class=\"price02-default\">
";
// line 308
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 308)) {
// line 309
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 309) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 309))) {
// line 310
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, 310)), "html", null, true);
echo "
";
} else {
// line 312
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, 312)), "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, 312)), "html", null, true);
echo "
";
}
// line 314
echo " ";
} else {
// line 315
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, 315)), "html", null, true);
echo "
";
}
// line 317
echo " </p>
</a>
";
// line 320
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 320)) {
// line 321
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.', 321, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 321), [], "array", false, false, false, 321);
// line 322
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 322), "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, 322), "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, 322)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 324
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 324)) {
// line 325
echo " <div class=\"ec-select\">
";
// line 326
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.', 326, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 326), 'widget');
echo "
";
// line 327
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.', 327, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 327), 'errors');
echo "
</div>
";
// line 329
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 329)) {
// line 330
echo " <div class=\"ec-select\">
";
// line 331
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.', 331, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 331), 'widget');
echo "
";
// line 332
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.', 332, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 332), 'errors');
echo "
</div>
";
}
// line 335
echo " ";
}
// line 336
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity"), "html", null, true);
echo "</span>
";
// line 337
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.', 337, $this->source); })()), "quantity", [], "any", false, false, false, 337), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 338
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.', 338, $this->source); })()), "quantity", [], "any", false, false, false, 338), 'errors');
echo "
</div>
</div>
";
// line 341
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.', 341, $this->source); })()), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 344
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 344), "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, 344), "html", null, true);
echo "\">
";
// line 345
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 349
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 351
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.out_of_stock"), "html", null, true);
echo "
</button>
</div>
";
}
// line 355
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 361
echo " </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 366
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 367
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 370
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html", null, true);
echo "</span>
<a href=\"";
// line 371
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("common.go_to_cart"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
";
// line 378
$this->loadTemplate("pager.twig", "Product/list.twig", 378)->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.', 378, $this->source); })()), "paginationData", [], "any", false, false, false, 378)]));
// line 379
echo " </div>
";
}
// line 381
echo " ";
}
// line 382
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 841 => 382, 838 => 381, 834 => 379, 832 => 378, 820 => 371, 816 => 370, 810 => 367, 806 => 366, 799 => 361, 780 => 355, 773 => 351, 769 => 349, 762 => 345, 756 => 344, 750 => 341, 744 => 338, 740 => 337, 735 => 336, 732 => 335, 726 => 332, 722 => 331, 719 => 330, 717 => 329, 712 => 327, 708 => 326, 705 => 325, 703 => 324, 693 => 322, 690 => 321, 688 => 320, 683 => 317, 677 => 315, 674 => 314, 666 => 312, 660 => 310, 657 => 309, 655 => 308, 652 => 307, 646 => 305, 644 => 304, 640 => 303, 629 => 301, 624 => 299, 618 => 295, 612 => 292, 609 => 291, 602 => 286, 599 => 285, 591 => 282, 588 => 281, 580 => 278, 577 => 277, 574 => 276, 572 => 275, 565 => 273, 561 => 272, 555 => 271, 550 => 269, 546 => 268, 542 => 267, 539 => 266, 536 => 265, 533 => 264, 529 => 262, 526 => 261, 524 => 260, 516 => 259, 513 => 258, 511 => 257, 507 => 255, 501 => 253, 498 => 252, 490 => 250, 484 => 248, 481 => 247, 479 => 246, 473 => 243, 469 => 241, 463 => 238, 458 => 237, 452 => 234, 449 => 233, 447 => 232, 443 => 230, 426 => 229, 423 => 228, 421 => 227, 415 => 223, 403 => 221, 399 => 219, 397 => 218, 392 => 216, 388 => 215, 384 => 214, 380 => 213, 375 => 210, 369 => 207, 366 => 206, 364 => 205, 357 => 200, 347 => 199, 307 => 167, 304 => 166, 294 => 158, 291 => 157, 289 => 156, 271 => 141, 261 => 134, 230 => 106, 202 => 80, 188 => 79, 180 => 78, 163 => 77, 159 => 75, 149 => 74, 138 => 11, 135 => 71, 132 => 69, 130 => 68, 128 => 66, 126 => 65, 124 => 64, 122 => 63, 119 => 60, 116 => 58, 114 => 57, 112 => 56, 110 => 55, 108 => 53, 106 => 50, 104 => 49, 102 => 48, 100 => 47, 98 => 46, 96 => 44, 94 => 43, 92 => 42, 90 => 41, 88 => 40, 86 => 39, 83 => 36, 81 => 35, 78 => 32, 75 => 29, 73 => 28, 71 => 27, 69 => 26, 67 => 25, 65 => 24, 63 => 23, 61 => 21, 59 => 20, 57 => 19, 55 => 18, 53 => 16, 51 => 15, 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' %}
{% set hasCategory = false %}
{% set request_uri = app.request.server.get('REQUEST_URI') %}
{% if 'name=' in request_uri and Category != \"\" %}
{% set RootCategory = Category.RootCategory %}
{% set hasCategory = true %}
{% set msg = \"elseif 'name=' in request_uri and Category != ))\" %}
{% elseif Category != \"\" %}
{% set RootCategory = Category.RootCategory %}
{% set hasCategory = true %}
{% set msg = \"elseif Category != ))\" %}
{% elseif 'name=' in request_uri %}
{% set hasCategory = false %}
{% set msg = \"if 'name=' in request_uri\" %}
{% else %}
{% set msg = \"else\" %}
{% endif %}
{% if hasCategory %}
{% set RootCategory = Category.RootCategory %}
{% endif %}
{% set prm2 = app.request.query.get('type') %}
{% set prm3 = app.request.query.get('category_id2') %}
{% set prm4 = app.request.query.get('category_id3') %}
{% set prm5 = app.request.query.get('category_id4') %}
{% set prm6 = app.request.query.get('category_id5') %}
{% set prm7 = app.request.query.get('tag_id') %}
{% set pm2 = cast_to_int(prm2) %}
{% set pm3 = cast_to_int(prm3) %}
{% set pm4 = cast_to_int(prm4) %}
{% set pm5 = cast_to_int(prm5) %}
{% set pm6 = cast_to_int(prm6) %}
{% set cn1 = app.request.query.get('name') %}
{% if prm2 == 0 and prm2 != \"\" %}
{% set cn2 = \"ヴァイスシュヴァルツ,\" %}
{% elseif prm2 == 1 and prm2 != \"\" %}
{% set cn2 = \"ポケモン,\" %}
{% else %}
{% set cn2 = \"\" %}
{% endif %}
{% set cn3 = get_category_name(pm3) %}
{% set cn4 = get_category_name(pm4) %}
{% set cn5 = get_category_name(pm5) %}
{% set cn6 = get_category_name(pm6) %}
{% if prm7 == 4 and prm7 != \"\" %}
{% set cn7 = \"傷あり商品,\" %}
{% else %}
{% set cn7 = \"\" %}
{% endif %}
{% 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('{{ 'front.product.invalid_quantity'|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('{{ 'front.product.add_cart_error'|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()
});
{% if hasCategory %}
{% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
\$('.bigbox').css('background-color','#22b573');
\$('.header-middle').css('background-color','#22b573');
\$('.side-searchbox').css('background-color','#22b573');
\$('.side-cat-more').css('background-color','#22b573');
\$('.side-cat-more2').css('background-color','#22b573');
\$('.side-cat-more3').css('background-color','#22b573');
{% endif %}
{% endif %}
\$(document).ready(function() {
// プラスボタンがクリックされたとき
\$('.spinner-up').click(function() {
// 対応する数量フィールドのIDを取得
var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
// 対応する数量フィールドの値を取得
var quantity = parseInt(\$('#' + productId).val());
// 値を増加させて数量フィールドに設定
\$('#' + productId).val(quantity + 1);
});
// マイナスボタンがクリックされたとき
\$('.spinner-down').click(function() {
// 対応する数量フィールドのIDを取得
var productId = \$(this).closest('.number-spinner-wrap').find('input[type=\"number\"]').attr('id');
// 対応する数量フィールドの値を取得
var quantity = parseInt(\$('#' + productId).val());
// 値を減少させて数量フィールドに設定 (1未満にはしない)
if (quantity > 1) {
\$('#' + productId).val(quantity - 1);
}
});
});
</script>
{% endblock %}
{% block main %}
<div class=\"ec-layoutRole__mainTop\">
<div class=\"top-content-box cat_mob_top-content-box\">
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"test\">
<p class=\"errormsg text-danger\">{{ 'front.product.search__category_not_found'|trans }}</p>
</div>
{% else %}
<div class=\"sort-big-box\">
<h2>商品一覧</h2>
<div class=\"sort-box\">
\t\t\t\t\t<!--<a href=\"{{ app.request.getUri }}&orderby=4\">おすすめ順</a>-->
<a href=\"{{ app.request.getUri }}&orderby=2\">新着順</a>
<a href=\"{{ app.request.getUri }}&orderby=1\">価格の安い順</a>
<a href=\"{{ app.request.getUri }}&orderby=3\">価格の高い順</a>
</div>
{% if cn1 is empty and cn2 is empty and cn3 is empty and cn4 is empty and cn5 is empty and cn6 is empty %}
{% else %}
<p class=\"search_res_text\">検索ワード:{{ cn2 }}{{ cn3 }}{{ cn4 }}{{ cn5 }}{{ cn6 }}{{ cn7 }}{{ cn1 }}</p>
{% endif %}
</div>
<div class=\"product-big-list\">
{% if pagination.totalItemCount > 0 %}
{% for Product in pagination %}
<div class=\"product-list-box\">
{% if app.request.query.get('category_id') == 219 or app.request.query.get('category_id') == 218 %}
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
{% else %}
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</a>
{% endif %}
<p>{{ Product.name }}</p>
<p class=\"price\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|number_format }}
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }}
{% endif %}
<span>円</span>
</p>
{% if Product.stock_find %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
{% if hasCategory %}
{% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
<input type=\"hidden\" name=\"buyflg\" value=\"1\">
{% else %}
{% endif %}
{% endif %}
<label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity{{ Product.id }}\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\"> <img src=\"{{ asset('/html/user_data/assets/img/minus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
<span class=\"spinner spinner-up\"> <img src=\"{{ asset('/html/user_data/assets/img/plus.png') }}\" class=\"numcursul\" alt=\"\"> </span>
</label>
<input type=\"hidden\" id=\"product_id{{ Product.id }}\" name=\"product_id\" value=\"{{ Product.id }}\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"{{ Product.ProductClasses[0].id }}\">
<input type=\"hidden\" id=\"_token{{ Product.id }}\" name=\"_token\" value=\"{{ csrf_token('Eccube\\\\Form\\\\Type\\\\AddCartType') }}\" />
</form>
{% if hasCategory %}
{% if RootCategory == \"買い取り\" or Category == \"買い取り\" %}
<div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
</div>
{% else %}
<div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
</div>
{% endif %}
{% endif %}
{% else %}
<div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> {{ '品切れ中'|trans }} </button>
</div>
{% endif %}
</div>
<!--<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</p>
<p>{{ Product.name }}</p>
{% if Product.description_list %}
<p>{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p 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 %}
</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>{{ 'common.quantity'|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 }}\">
{{ 'front.product.add_cart'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'front.product.out_of_stock'|trans }}
</button>
</div>
{% endif %}
</li>-->
{% endfor %}
</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\">{{ 'front.product.add_cart_complete'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'front.product.continue'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'common.go_to_cart'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}", "Product/list.twig", "/home/northserver/tcg-mana.com/public_html/app/template/default/Product/list.twig");
}
}