<?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"] = "ポケモン,";
} else {
// line 52
$context["cn2"] = "";
}
// line 55
$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.', 55, $this->source); })()));
// line 56
$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.', 56, $this->source); })()));
// line 57
$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.', 57, $this->source); })()));
// line 58
$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.', 58, $this->source); })()));
// line 60
if ((((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 60, $this->source); })()) == 4) && ((isset($context["prm7"]) || array_key_exists("prm7", $context) ? $context["prm7"] : (function () { throw new RuntimeError('Variable "prm7" does not exist.', 60, $this->source); })()) != ""))) {
// line 61
$context["cn7"] = "傷あり商品,";
} else {
// line 63
$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 66
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 67
echo " <script>
eccube.productsClassCategories = {
";
// line 69
$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.', 69, $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 70
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, 70), "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, 70)) {
echo ", ";
}
// line 71
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 72
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 97
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 125
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 132
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 147
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 147, $this->source); })())) {
// line 148
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 148, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 148, $this->source); })()) == "買い取り"))) {
// line 149
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 156
echo " ";
}
// line 157
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 187
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 188
echo " <div class=\"ec-layoutRole__mainTop\">
<div class=\"top-content-box cat_mob_top-content-box\">
";
// line 190
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.', 190, $this->source); })()), "category_id", [], "any", false, false, false, 190), "vars", [], "any", false, false, false, 190), "errors", [], "any", false, false, false, 190)) > 0)) {
// line 191
echo " <div class=\"test\">
<p class=\"errormsg text-danger\">";
// line 192
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 195
echo " <div class=\"sort-big-box\">
<h2>商品一覧</h2>
<div class=\"sort-box\">
<a href=\"";
// line 198
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.', 198, $this->source); })()), "request", [], "any", false, false, false, 198), "getUri", [], "any", false, false, false, 198), "html", null, true);
echo "&orderby=0\">おすすめ順</a>
<a href=\"";
// line 199
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.', 199, $this->source); })()), "request", [], "any", false, false, false, 199), "getUri", [], "any", false, false, false, 199), "html", null, true);
echo "&orderby=2\">新着順</a>
<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=1\">価格の安い順</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=3\">価格の高い順</a>
</div>
";
// line 203
if (((((( !twig_test_empty((isset($context["cn1"]) || array_key_exists("cn1", $context) ? $context["cn1"] : (function () { throw new RuntimeError('Variable "cn1" does not exist.', 203, $this->source); })())) || !twig_test_empty((isset($context["cn2"]) || array_key_exists("cn2", $context) ? $context["cn2"] : (function () { throw new RuntimeError('Variable "cn2" does not exist.', 203, $this->source); })()))) || !twig_test_empty((isset($context["cn3"]) || array_key_exists("cn3", $context) ? $context["cn3"] : (function () { throw new RuntimeError('Variable "cn3" does not exist.', 203, $this->source); })()))) || !twig_test_empty((isset($context["cn4"]) || array_key_exists("cn4", $context) ? $context["cn4"] : (function () { throw new RuntimeError('Variable "cn4" does not exist.', 203, $this->source); })()))) || !twig_test_empty((isset($context["cn5"]) || array_key_exists("cn5", $context) ? $context["cn5"] : (function () { throw new RuntimeError('Variable "cn5" does not exist.', 203, $this->source); })()))) || !twig_test_empty((isset($context["cn6"]) || array_key_exists("cn6", $context) ? $context["cn6"] : (function () { throw new RuntimeError('Variable "cn6" does not exist.', 203, $this->source); })())))) {
// line 204
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.', 204, $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.', 204, $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.', 204, $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.', 204, $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.', 204, $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.', 204, $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.', 204, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 206
echo " </div>
<div class=\"product-big-list\">
";
// line 208
if ((isset($context["orderby"]) || array_key_exists("orderby", $context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.', 208, $this->source); })())) {
// line 209
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.', 209, $this->source); })()), "totalItemCount", [], "any", false, false, false, 209) > 0)) {
// line 210
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.', 210, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 211
echo " <div class=\"product-list-box\">
";
// line 212
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.', 212, $this->source); })()), "request", [], "any", false, false, false, 212), "query", [], "any", false, false, false, 212), "get", [0 => "category_id"], "method", false, false, false, 212) == 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.', 212, $this->source); })()), "request", [], "any", false, false, false, 212), "query", [], "any", false, false, false, 212), "get", [0 => "category_id"], "method", false, false, false, 212) == 218))) {
// line 213
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, 213)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 215
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, 215)]), "html", null, true);
echo "\">
<img src=\"";
// line 216
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, 216)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 219
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 219), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 221
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 221)) {
// line 222
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 222) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 222))) {
// line 223
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, 223)), "html", null, true);
echo "
";
} else {
// 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 " ~ ";
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, 225)), "html", null, true);
echo "
";
}
// line 227
echo " ";
} else {
// line 228
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, 228)), "html", null, true);
echo "
";
}
// line 230
echo " <span>円</span>
</p>
";
// line 232
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 232)) {
// line 233
echo "
<form name=\"form";
// line 234
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 234), "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, 234), "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, 234)]), "html", null, true);
echo "\" method=\"post\">
";
// line 235
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 235, $this->source); })())) {
// line 236
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 236, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 236, $this->source); })()) == "買い取り"))) {
// line 237
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
} else {
// line 239
echo " ";
}
// line 240
echo " ";
}
// line 241
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 242
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 242), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\"> <img src=\"";
// line 243
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 244
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 246
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 246), "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, 246), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 247
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, 247), 0, [], "array", false, false, false, 247), "id", [], "any", false, false, false, 247), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// 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=\"_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 250
if ((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 250, $this->source); })())) {
// line 251
echo " ";
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 251, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 251, $this->source); })()) == "買い取り"))) {
// line 252
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 253), "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, 253), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
</div>
";
} else {
// line 256
echo " <div class=\"cart-in-btn\">
<button class=\"add-cart-custom\" data-cartid=\"";
// line 257
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 257), "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, 257), "html", null, true);
echo "\" type=\"submit\"> カートに入れる </button>
</div>
";
}
// line 260
echo " ";
}
// line 261
echo " ";
} else {
// line 262
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\"> ";
// line 263
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo " </button>
</div>
";
}
// line 266
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 268
echo " ";
}
// line 269
echo " ";
} else {
// line 270
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.', 270, $this->source); })())) > 0))) {
// line 271
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.', 271, $this->source); })()));
foreach ($context['_seq'] as $context["rarity"] => $context["products"]) {
// line 272
echo " ";
if ( !twig_test_empty($context["products"])) {
// line 273
echo " <h2>";
echo twig_escape_filter($this->env, $context["rarity"], "html", null, true);
echo " 商品</h2>
<div class=\"rarity-group-";
// line 274
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $context["rarity"]), "html", null, true);
echo " product-list-container\">
";
// line 275
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["products"]);
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 276
echo " <div class=\"product-list-box\">
";
// line 277
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.', 277, $this->source); })()), "request", [], "any", false, false, false, 277), "query", [], "any", false, false, false, 277), "get", [0 => "category_id"], "method", false, false, false, 277) == 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.', 277, $this->source); })()), "request", [], "any", false, false, false, 277), "query", [], "any", false, false, false, 277), "get", [0 => "category_id"], "method", false, false, false, 277) == 218))) {
// line 278
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, 278)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 280
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, 280)]), "html", null, true);
echo "\">
<img src=\"";
// line 281
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, 281)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 284
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 284), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 286
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 286)) {
// line 287
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 287) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 287))) {
// line 288
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, 288)), "html", null, true);
echo "
";
} else {
// 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 " 〜 ";
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, 290)), "html", null, true);
echo "
";
}
// line 292
echo " ";
} else {
// line 293
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, 293)), "html", null, true);
echo "
";
}
// line 295
echo " <span>円</span>
</p>
";
// line 297
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 297)) {
// line 298
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 298)]), "html", null, true);
echo "\" method=\"post\">
";
// line 299
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 299, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 299, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 299, $this->source); })()) == "買い取り")))) {
// line 300
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
}
// line 302
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 303
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 303), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\">
<img src=\"";
// line 305
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 308
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 311
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 311), "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, 311), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 312
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, 312), 0, [], "array", false, false, false, 312), "id", [], "any", false, false, false, 312), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// 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=\"_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 316
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 316, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 316, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 316, $this->source); })()) == "買い取り")))) {
// line 317
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, 317), "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, 317), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
";
} else {
// 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>
";
}
// line 321
echo " </div>
";
} else {
// line 323
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
// line 324
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo "</button>
</div>
";
}
// line 327
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 329
echo " </div>
";
}
// line 331
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 332
echo " ";
}
// line 333
echo " ";
// line 334
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.', 334, $this->source); })())) > 0))) {
// line 335
echo " <h2>その他の商品</h2>
<div class=\"rarity-group-other product-list-container\">
";
// line 337
$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.', 337, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 338
echo " <div class=\"product-list-box\">
";
// line 339
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.', 339, $this->source); })()), "request", [], "any", false, false, false, 339), "query", [], "any", false, false, false, 339), "get", [0 => "category_id"], "method", false, false, false, 339) == 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.', 339, $this->source); })()), "request", [], "any", false, false, false, 339), "query", [], "any", false, false, false, 339), "get", [0 => "category_id"], "method", false, false, false, 339) == 218))) {
// line 340
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, 340)), "save_image"), "html", null, true);
echo "\">
";
} else {
// line 342
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, 342)]), "html", null, true);
echo "\">
<img src=\"";
// line 343
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, 343)), "save_image"), "html", null, true);
echo "\">
</a>
";
}
// line 346
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 346), "html", null, true);
echo "</p>
<p class=\"price\">
";
// line 348
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 348)) {
// line 349
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 349) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 349))) {
// line 350
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, 350)), "html", null, true);
echo "
";
} else {
// 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 " 〜 ";
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, 352)), "html", null, true);
echo "
";
}
// line 354
echo " ";
} else {
// line 355
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, 355)), "html", null, true);
echo "
";
}
// line 357
echo " <span>円</span>
</p>
";
// line 359
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 359)) {
// line 360
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 360), "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, 360), "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, 360)]), "html", null, true);
echo "\" method=\"post\">
";
// line 361
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 361, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 361, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 361, $this->source); })()) == "買い取り")))) {
// line 362
echo " <input type=\"hidden\" name=\"buyflg\" value=\"1\">
";
}
// line 364
echo " <label class=\"number-spinner-wrap\">
<input type=\"number\" id=\"quantity";
// line 365
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 365), "html", null, true);
echo "\" name=\"quantity\" required=\"required\" min=\"1\" maxlength=\"9\" class=\"test5\" value=\"1\">
<span class=\"spinner spinner-down\">
<img src=\"";
// line 367
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 370
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 373
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 373), "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, 373), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"ProductClass\" name=\"ProductClass\" value=\"";
// line 374
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, 374), 0, [], "array", false, false, false, 374), "id", [], "any", false, false, false, 374), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"_token";
// 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=\"_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 378
if (((isset($context["hasCategory"]) || array_key_exists("hasCategory", $context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.', 378, $this->source); })()) && (((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 378, $this->source); })()) == "買い取り") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 378, $this->source); })()) == "買い取り")))) {
// line 379
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, 379), "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, 379), "html", null, true);
echo "\" type=\"submit\"> 売却する </button>
";
} else {
// 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>
";
}
// line 383
echo " </div>
";
} else {
// line 385
echo " <div class=\"cart-in-btn\">
<button type=\"button\" class=\"add-cart-custom\" disabled=\"disabled\">";
// line 386
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html", null, true);
echo "</button>
</div>
";
}
// line 389
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 391
echo " </div>
";
}
// line 393
echo " ";
}
// line 394
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 399
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 400
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 403
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 404
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 411
if ((isset($context["orderby"]) || array_key_exists("orderby", $context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.', 411, $this->source); })())) {
// line 412
echo " ";
$this->loadTemplate("pager.twig", "Product/list.twig", 412)->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.', 412, $this->source); })()), "paginationData", [], "any", false, false, false, 412)]));
// line 413
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.', 413, $this->source); })()), "request", [], "any", false, false, false, 413), "query", [], "any", false, false, false, 413), "get", [0 => "category_id"], "method", false, false, false, 413) == 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.', 413, $this->source); })()), "request", [], "any", false, false, false, 413), "query", [], "any", false, false, false, 413), "get", [0 => "category_id"], "method", false, false, false, 413) == 8))) {
// 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["otherProducts"]) || array_key_exists("otherProducts", $context) ? $context["otherProducts"] : (function () { throw new RuntimeError('Variable "otherProducts" does not exist.', 414, $this->source); })()), "paginationData", [], "any", false, false, false, 414)]));
// line 415
echo " ";
}
// line 416
echo " </div>
";
}
// line 418
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 ( 999 => 418, 995 => 416, 992 => 415, 989 => 414, 986 => 413, 983 => 412, 981 => 411, 969 => 404, 965 => 403, 959 => 400, 955 => 399, 948 => 394, 945 => 393, 941 => 391, 934 => 389, 928 => 386, 925 => 385, 921 => 383, 913 => 381, 905 => 379, 903 => 378, 895 => 375, 891 => 374, 885 => 373, 879 => 370, 873 => 367, 868 => 365, 865 => 364, 861 => 362, 859 => 361, 850 => 360, 848 => 359, 844 => 357, 838 => 355, 835 => 354, 827 => 352, 821 => 350, 818 => 349, 816 => 348, 810 => 346, 804 => 343, 799 => 342, 793 => 340, 791 => 339, 788 => 338, 784 => 337, 780 => 335, 777 => 334, 775 => 333, 772 => 332, 766 => 331, 762 => 329, 755 => 327, 749 => 324, 746 => 323, 742 => 321, 734 => 319, 726 => 317, 724 => 316, 716 => 313, 712 => 312, 706 => 311, 700 => 308, 694 => 305, 689 => 303, 686 => 302, 682 => 300, 680 => 299, 671 => 298, 669 => 297, 665 => 295, 659 => 293, 656 => 292, 648 => 290, 642 => 288, 639 => 287, 637 => 286, 631 => 284, 625 => 281, 620 => 280, 614 => 278, 612 => 277, 609 => 276, 605 => 275, 601 => 274, 596 => 273, 593 => 272, 588 => 271, 585 => 270, 582 => 269, 579 => 268, 572 => 266, 566 => 263, 563 => 262, 560 => 261, 557 => 260, 549 => 257, 546 => 256, 538 => 253, 535 => 252, 532 => 251, 530 => 250, 523 => 248, 519 => 247, 513 => 246, 508 => 244, 504 => 243, 500 => 242, 497 => 241, 494 => 240, 491 => 239, 487 => 237, 484 => 236, 482 => 235, 474 => 234, 471 => 233, 469 => 232, 465 => 230, 459 => 228, 456 => 227, 448 => 225, 442 => 223, 439 => 222, 437 => 221, 431 => 219, 425 => 216, 420 => 215, 414 => 213, 412 => 212, 409 => 211, 404 => 210, 401 => 209, 399 => 208, 395 => 206, 383 => 204, 381 => 203, 376 => 201, 372 => 200, 368 => 199, 364 => 198, 359 => 195, 353 => 192, 350 => 191, 348 => 190, 344 => 188, 334 => 187, 296 => 157, 293 => 156, 284 => 149, 281 => 148, 279 => 147, 261 => 132, 251 => 125, 220 => 97, 193 => 72, 179 => 71, 171 => 70, 154 => 69, 150 => 67, 140 => 66, 129 => 11, 126 => 63, 123 => 61, 121 => 60, 119 => 58, 117 => 57, 115 => 56, 113 => 55, 110 => 52, 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 = \"ポケモン,\" %}
{% 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");
}
}