<?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;
} elseif (( // line 21
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 21, $this->source); })()) != "")) {
// line 22
$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.', 22, $this->source); })()), "RootCategory", [], "any", false, false, false, 22);
// line 23
$context["hasCategory"] = true;
} elseif (twig_in_filter("name=", // line 24
(isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 24, $this->source); })()))) {
// line 25
$context["hasCategory"] = false;
}
// line 28
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 28, $this->source); })())) {
// line 29
$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.', 29, $this->source); })()), "RootCategory", [], "any", false, false, false, 29);
}
// line 32
$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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "query", [], "any", false, false, false, 32), "get", [0 => "type"], "method", false, false, false, 32);
// line 33
$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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "query", [], "any", false, false, false, 33), "get", [0 => "category_id2"], "method", false, false, false, 33);
// line 34
$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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "query", [], "any", false, false, false, 34), "get", [0 => "category_id3"], "method", false, false, false, 34);
// line 35
$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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "query", [], "any", false, false, false, 35), "get", [0 => "category_id4"], "method", false, false, false, 35);
// line 36
$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.', 36, $this->source); })()), "request", [], "any", false, false, false, 36), "query", [], "any", false, false, false, 36), "get", [0 => "category_id5"], "method", false, false, false, 36);
// line 37
$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.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "query", [], "any", false, false, false, 37), "get", [0 => "tag_id"], "method", false, false, false, 37);
// line 39
$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.', 39, $this->source); })()));
// line 40
$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.', 40, $this->source); })()));
// line 41
$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.', 41, $this->source); })()));
// line 42
$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.', 42, $this->source); })()));
// line 43
$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.', 43, $this->source); })()));
// line 45
$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.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "query", [], "any", false, false, false, 45), "get", [0 => "name"], "method", false, false, false, 45);
// line 47
if ((((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 47, $this->source); })()) == 0) && ((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 47, $this->source); })()) != ""))) {
// line 48
$context["cn2"] = "";
} elseif ((( // line 49
(isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 49, $this->source); })()) == 1) && ((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 49, $this->source); })()) != ""))) {
// line 50
$context["cn2"] = "ヴァイスシュヴァルツ,";
} elseif ((( // line 51
(isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 51, $this->source); })()) == 2) && ((isset($context["prm2"]) || array_key_exists("prm2", $context) ? $context["prm2"] : (function () { throw new RuntimeError('Variable "prm2" does not exist.', 51, $this->source); })()) != ""))) {
// line 52
$context["cn2"] = "ポケモン,";
} else {
// line 54
$context["cn2"] = "";
}
// line 57
$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.', 57, $this->source); })()));
// line 58
$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.', 58, $this->source); })()));
// line 59
$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.', 59, $this->source); })()));
// line 60
$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.', 60, $this->source); })()));
// line 62
if ((((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 62, $this->source); })()) == 4) && ((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 62, $this->source); })()) != ""))) {
// line 63
$context["cn7"] = "傷あり商品,";
} else {
// line 65
$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 68
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 69
echo " <script>
eccube.productsClassCategories = {
";
// line 71
$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.', 71, $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 72
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, 72), "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, 72)) {
echo ", ";
}
// line 73
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 74
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 99
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 127
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 134
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 149
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 149, $this->source); })())) {
// line 150
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 150, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 150, $this->source); })()) == "買い取り"))) {
// line 151
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 158
echo " ";
}
// line 159
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 189
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 190
echo " <div class=\"ec-layoutRole__mainTop\">
<div class=\"top-content-box cat_mob_top-content-box\">
";
// line 192
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.', 192, $this->source); })()), "category_id", [], "any", false, false, false, 192), "vars", [], "any", false, false, false, 192), "errors", [], "any", false, false, false, 192)) > 0)) {
// line 193
echo " <div class=\"test\">
<p class=\"errormsg text-danger\">";
// line 194
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 197
echo " <div class=\"sort-big-box\">
<h2>商品一覧</h2>
<div class=\"sort-box\">
<a href=\"";
// line 200
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.', 200, $this->source); })()), "request", [], "any", false, false, false, 200), "getUri", [], "any", false, false, false, 200), "html", null, true);
echo "&orderby=0\">おすすめ順</a>
<a href=\"";
// line 201
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.', 201, $this->source); })()), "request", [], "any", false, false, false, 201), "getUri", [], "any", false, false, false, 201), "html", null, true);
echo "&orderby=2\">新着順</a>
<a href=\"";
// line 202
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.', 202, $this->source); })()), "request", [], "any", false, false, false, 202), "getUri", [], "any", false, false, false, 202), "html", null, true);
echo "&orderby=1\">価格の安い順</a>
<a href=\"";
// line 203
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.', 203, $this->source); })()), "request", [], "any", false, false, false, 203), "getUri", [], "any", false, false, false, 203), "html", null, true);
echo "&orderby=3\">価格の高い順</a>
</div>
";
// line 205
if (((((( !twig_test_empty((isset($context["cn1"]) || array_key_exists("cn1", $context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.', 205, $this->source); })())) || !twig_test_empty((isset($context["cn2"]) || array_key_exists("cn2", $context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.', 205, $this->source); })()))) || !twig_test_empty((isset($context["cn3"]) || array_key_exists("cn3", $context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.', 205, $this->source); })()))) || !twig_test_empty((isset($context["cn4"]) || array_key_exists("cn4", $context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.', 205, $this->source); })()))) || !twig_test_empty((isset($context["cn5"]) || array_key_exists("cn5", $context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.', 205, $this->source); })()))) || !twig_test_empty((isset($context["cn6"]) || array_key_exists("cn6", $context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.', 205, $this->source); })())))) {
// line 206
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.', 206, $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.', 206, $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.', 206, $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.', 206, $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.', 206, $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.', 206, $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.', 206, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 208
echo " </div>
<div class=\"product-big-list\">
";
// line 210
if ((isset($context["orderby"]) || array_key_exists("orderby", $context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.', 210, $this->source); })())) {
// line 211
echo " ";
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.', 211, $this->source); })()), "totalItemCount", [], "any", false, false, false, 211) > 0)) {
// line 212
echo " ";
$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.', 212, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 213
echo " <div class=\"product-list-box\">
";
// line 214
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.', 214, $this->source); })()), "request", [], "any", false, false, false, 214), "query", [], "any", false, false, false, 214), "get", [0 => "category_id"], "method", false, false, false, 214) == 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.', 214, $this->source); })()), "request", [], "any", false, false, false, 214), "query", [], "any", false, false, false, 214), "get", [0 => "category_id"], "method", false, false, false, 214) == 218))) {
// line 215
echo " <img src=\"";
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, 215)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 217
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, 217)]), "html", null, true);
echo "\">
<img src=\"";
// line 218
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, 218)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 221
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 221), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 223
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 223)) {
// line 224
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 224) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 224))) {
// line 225
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, 225)), "html", null, true);
echo "
";
} else {
// line 227
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, 227)), "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, 227)), "html", null, true);
echo "
";
}
// line 229
echo " ";
} else {
// line 230
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, 230)), "html", null, true);
echo "
";
}
// line 232
echo " <span>円</span>
</p>
";
// line 234
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 234)) {
// line 235
echo "
<form name=\"form";
// line 236
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 236), "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, 236), "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, 236)]), "html", null, true);
echo "\" method=\"post\">
";
// line 237
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 237, $this->source); })())) {
// line 238
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 238, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 238, $this->source); })()) == "買い取り"))) {
// line 239
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
} else {
// line 241
echo " ";
}
// line 242
echo " ";
}
// line 243
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 244
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 244), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\"> <img src=\"";
// line 245
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 246
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 248
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 248), "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, 248), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 249
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, 249), 0, [], "array", false, false, false, 249), "id", [], "any", false, false, false, 249), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// line 250
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 250), "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 252
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 252, $this->source); })())) {
// line 253
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 253, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 253, $this->source); })()) == "買い取り"))) {
// line 254
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// line 255
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 255), "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, 255), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
</div>
";
} else {
// line 258
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// 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 "\" form=\"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 "\" type=\"submit\"> カートに入れる </button>
</div>
";
}
// line 262
echo " ";
}
// line 263
echo " ";
} else {
// line 264
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> ";
// line 265
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo " </button>
</div>
";
}
// line 268
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 270
echo " ";
}
// line 271
echo " ";
} else {
// line 272
echo " ";
if ((array_key_exists("groupedProducts", $context) && (twig_length_filter($this->env, (isset($context["groupedProducts"]) || array_key_exists("groupedProducts", $context) ? $context["groupedProducts"] : (function () { throw new RuntimeError('Variable "groupedProducts" does not exist.', 272, $this->source); })())) > 0))) {
// line 273
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["groupedProducts"]) || array_key_exists("groupedProducts", $context) ? $context["groupedProducts"] : (function () { throw new RuntimeError('Variable "groupedProducts" does not exist.', 273, $this->source); })()));
foreach ($context['_seq'] as $context["rarity"] => $context["products"]) {
// line 274
echo " ";
if ( !twig_test_empty($context["products"])) {
// line 275
echo " <h2>";
echo twig_escape_filter($this->env, $context["rarity"], "html", null, true);
echo " 商品</h2>
<div class=\"rarity-group-";
// line 276
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $context["rarity"]), "html", null, true);
echo " product-list-container\">
";
// line 277
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["products"]);
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 278
echo " <div class=\"product-list-box\">
";
// line 279
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.', 279, $this->source); })()), "request", [], "any", false, false, false, 279), "query", [], "any", false, false, false, 279), "get", [0 => "category_id"], "method", false, false, false, 279) == 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.', 279, $this->source); })()), "request", [], "any", false, false, false, 279), "query", [], "any", false, false, false, 279), "get", [0 => "category_id"], "method", false, false, false, 279) == 218))) {
// line 280
echo " <img src=\"";
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, 280)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 282
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, 282)]), "html", null, true);
echo "\">
<img src=\"";
// line 283
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, 283)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 286
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 286), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 288
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 288)) {
// line 289
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 289) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 289))) {
// line 290
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, 290)), "html", null, true);
echo "
";
} else {
// line 292
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, 292)), "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, 292)), "html", null, true);
echo "
";
}
// line 294
echo " ";
} else {
// line 295
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, 295)), "html", null, true);
echo "
";
}
// line 297
echo " <span>円</span>
</p>
";
// line 299
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 299)) {
// line 300
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 300), "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, 300), "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, 300)]), "html", null, true);
echo "\" method=\"post\">
";
// line 301
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 301, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 301, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 301, $this->source); })()) == "買い取り")))) {
// line 302
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
}
// line 304
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 305
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 305), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\">
<img src=\"";
// line 307
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 310
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 313
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 313), "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, 313), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 314
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, 314), 0, [], "array", false, false, false, 314), "id", [], "any", false, false, false, 314), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// line 315
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 315), "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>
<div class=\"cart-in-btn\">
";
// line 318
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 318, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 318, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 318, $this->source); })()) == "買い取り")))) {
// line 319
echo " <button class=\"add-cart-custom\" data-cartid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 319), "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, 319), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
";
} else {
// line 321
echo " <button class=\"add-cart-custom\" data-cartid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 321), "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, 321), "html", null, true);
echo "\" type=\"submit\"> カートに入れる </button>
";
}
// line 323
echo " </div>
";
} else {
// line 325
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo "</button>
</div>
";
}
// line 329
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 331
echo " </div>
";
}
// line 333
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['rarity'], $context['products'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 334
echo " ";
}
// line 335
echo " ";
// line 336
echo " ";
if ((array_key_exists("otherProducts", $context) && (twig_length_filter($this->env, (isset($context["otherProducts"]) || array_key_exists("otherProducts", $context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.', 336, $this->source); })())) > 0))) {
// line 337
echo " <h2>その他の商品</h2>
<div class=\"rarity-group-other product-list-container\">
";
// line 339
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherProducts"]) || array_key_exists("otherProducts", $context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.', 339, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 340
echo " <div class=\"product-list-box\">
";
// line 341
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.', 341, $this->source); })()), "request", [], "any", false, false, false, 341), "query", [], "any", false, false, false, 341), "get", [0 => "category_id"], "method", false, false, false, 341) == 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.', 341, $this->source); })()), "request", [], "any", false, false, false, 341), "query", [], "any", false, false, false, 341), "get", [0 => "category_id"], "method", false, false, false, 341) == 218))) {
// line 342
echo " <img src=\"";
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, 342)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 344
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, 344)]), "html", null, true);
echo "\">
<img src=\"";
// line 345
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, 345)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 348
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 348), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 350
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 350)) {
// line 351
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 351) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 351))) {
// line 352
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, 352)), "html", null, true);
echo "
";
} else {
// line 354
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, 354)), "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, 354)), "html", null, true);
echo "
";
}
// line 356
echo " ";
} else {
// line 357
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, 357)), "html", null, true);
echo "
";
}
// line 359
echo " <span>円</span>
</p>
";
// line 361
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 361)) {
// line 362
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 362), "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, 362), "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, 362)]), "html", null, true);
echo "\" method=\"post\">
";
// line 363
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 363, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 363, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 363, $this->source); })()) == "買い取り")))) {
// line 364
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
}
// line 366
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 367
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 367), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\">
<img src=\"";
// line 369
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 372
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 375
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 375), "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, 375), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 376
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, 376), 0, [], "array", false, false, false, 376), "id", [], "any", false, false, false, 376), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// line 377
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 377), "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>
<div class=\"cart-in-btn\">
";
// line 380
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 380, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 380, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 380, $this->source); })()) == "買い取り")))) {
// line 381
echo " <button class=\"add-cart-custom\" data-cartid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 381), "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, 381), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
";
} else {
// line 383
echo " <button class=\"add-cart-custom\" data-cartid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 383), "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, 383), "html", null, true);
echo "\" type=\"submit\"> カートに入れる </button>
";
}
// line 385
echo " </div>
";
} else {
// line 387
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
// line 388
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo "</button>
</div>
";
}
// line 391
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 393
echo " </div>
";
}
// line 395
echo " ";
}
// line 396
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 401
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 402
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 405
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 406
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 413
if ((isset($context["orderby"]) || array_key_exists("orderby", $context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.', 413, $this->source); })())) {
// line 414
echo " ";
$this->loadTemplate("pager.twig", "Product/list.twig", 414)->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.', 414, $this->source); })()), "paginationData", [], "any", false, false, false, 414)]));
// line 415
echo " ";
} elseif (((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.', 415, $this->source); })()), "request", [], "any", false, false, false, 415), "query", [], "any", false, false, false, 415), "get", [0 => "category_id"], "method", false, false, false, 415) == 7) || (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.', 415, $this->source); })()), "request", [], "any", false, false, false, 415), "query", [], "any", false, false, false, 415), "get", [0 => "category_id"], "method", false, false, false, 415) == 8))) {
// line 416
echo " ";
$this->loadTemplate("pager.twig", "Product/list.twig", 416)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["otherProducts"]) || array_key_exists("otherProducts", $context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.', 416, $this->source); })()), "paginationData", [], "any", false, false, false, 416)]));
// line 417
echo " ";
}
// line 418
echo " </div>
";
}
// line 420
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 ( 1003 => 420, 999 => 418, 996 => 417, 993 => 416, 990 => 415, 987 => 414, 985 => 413, 973 => 406, 969 => 405, 963 => 402, 959 => 401, 952 => 396, 949 => 395, 945 => 393, 938 => 391, 932 => 388, 929 => 387, 925 => 385, 917 => 383, 909 => 381, 907 => 380, 899 => 377, 895 => 376, 889 => 375, 883 => 372, 877 => 369, 872 => 367, 869 => 366, 865 => 364, 863 => 363, 854 => 362, 852 => 361, 848 => 359, 842 => 357, 839 => 356, 831 => 354, 825 => 352, 822 => 351, 820 => 350, 814 => 348, 808 => 345, 803 => 344, 797 => 342, 795 => 341, 792 => 340, 788 => 339, 784 => 337, 781 => 336, 779 => 335, 776 => 334, 770 => 333, 766 => 331, 759 => 329, 753 => 326, 750 => 325, 746 => 323, 738 => 321, 730 => 319, 728 => 318, 720 => 315, 716 => 314, 710 => 313, 704 => 310, 698 => 307, 693 => 305, 690 => 304, 686 => 302, 684 => 301, 675 => 300, 673 => 299, 669 => 297, 663 => 295, 660 => 294, 652 => 292, 646 => 290, 643 => 289, 641 => 288, 635 => 286, 629 => 283, 624 => 282, 618 => 280, 616 => 279, 613 => 278, 609 => 277, 605 => 276, 600 => 275, 597 => 274, 592 => 273, 589 => 272, 586 => 271, 583 => 270, 576 => 268, 570 => 265, 567 => 264, 564 => 263, 561 => 262, 553 => 259, 550 => 258, 542 => 255, 539 => 254, 536 => 253, 534 => 252, 527 => 250, 523 => 249, 517 => 248, 512 => 246, 508 => 245, 504 => 244, 501 => 243, 498 => 242, 495 => 241, 491 => 239, 488 => 238, 486 => 237, 478 => 236, 475 => 235, 473 => 234, 469 => 232, 463 => 230, 460 => 229, 452 => 227, 446 => 225, 443 => 224, 441 => 223, 435 => 221, 429 => 218, 424 => 217, 418 => 215, 416 => 214, 413 => 213, 408 => 212, 405 => 211, 403 => 210, 399 => 208, 387 => 206, 385 => 205, 380 => 203, 376 => 202, 372 => 201, 368 => 200, 363 => 197, 357 => 194, 354 => 193, 352 => 192, 348 => 190, 338 => 189, 300 => 159, 297 => 158, 288 => 151, 285 => 150, 283 => 149, 265 => 134, 255 => 127, 224 => 99, 197 => 74, 183 => 73, 175 => 72, 158 => 71, 154 => 69, 144 => 68, 133 => 11, 130 => 65, 127 => 63, 125 => 62, 123 => 60, 121 => 59, 119 => 58, 117 => 57, 114 => 54, 111 => 52, 109 => 51, 107 => 50, 105 => 49, 103 => 48, 101 => 47, 99 => 45, 97 => 43, 95 => 42, 93 => 41, 91 => 40, 89 => 39, 87 => 37, 85 => 36, 83 => 35, 81 => 34, 79 => 33, 77 => 32, 74 => 29, 72 => 28, 69 => 25, 67 => 24, 65 => 23, 63 => 22, 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 %}
{% elseif Category != \"\" %}
{% set RootCategory = Category.RootCategory %}
{% set hasCategory = true %}
{% elseif 'name=' in request_uri %}
{% set hasCategory = false %}
{% 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 = \"ヴァイスシュヴァルツ,\" %}
{% elseif prm2 == 2 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 not loop.last %}, {% 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\">
<a href=\"{{ app.request.getUri }}&orderby=0\">おすすめ順</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 not empty or cn2 is not empty or cn3 is not empty or cn4 is not empty or cn5 is not empty or cn6 is not empty %}
<p class=\"search_res_text\">検索ワード:{{ cn2 }}{{ cn3 }}{{ cn4 }}{{ cn5 }}{{ cn6 }}{{ cn7 }}{{ cn1 }}</p>
{% endif %}
</div>
<div class=\"product-big-list\">
{% if orderby %}
{% 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>
{% endfor %}
{% endif %}
{% else %}
{% if groupedProducts is defined and groupedProducts|length > 0 %}
{% for rarity, products in groupedProducts %}
{% if products is not empty %}
<h2>{{ rarity }} 商品</h2>
<div class=\"rarity-group-{{ rarity|lower }} product-list-container\">
{% for Product in products %}
<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 and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
<input type=\"hidden\" name=\"buyflg\" value=\"1\">
{% 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>
<div class=\"cart-in-btn\">
{% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
{% else %}
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
{% endif %}
</div>
{% else %}
<div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">{{ '品切れ中'|trans }}</button>
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% endfor %}
{% endif %}
{# その他の商品を表示するためのセクション #}
{% if otherProducts is defined and otherProducts|length > 0 %}
<h2>その他の商品</h2>
<div class=\"rarity-group-other product-list-container\">
{% for Product in otherProducts %}
<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 and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
<input type=\"hidden\" name=\"buyflg\" value=\"1\">
{% 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>
<div class=\"cart-in-btn\">
{% if hasCategory and (RootCategory == \"買い取り\" or Category == \"買い取り\") %}
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> 売却する </button>
{% else %}
<button class=\"add-cart-custom\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" type=\"submit\"> カートに入れる </button>
{% endif %}
</div>
{% else %}
<div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">{{ '品切れ中'|trans }}</button>
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}
</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\">
{% if orderby %}
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
{% elseif app.request.query.get('category_id') == 7 or app.request.query.get('category_id') == 8 %}
{% include \"pager.twig\" with {'pages': otherProducts.paginationData} %}
{% endif %}
</div>
{% endif %}
</div>
</div>
{% endblock %}", "Product/list.twig", "/home/northserver/tcg-mana.com/public_html/app/template/default/Product/list.twig");
}
}