<?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;
/* Cart/index.twig */
class __TwigTemplate_5555bba62c2999039b7f46e91b28a25a extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cart/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cart/index.twig"));
// line 3
$context["body_class"] = "cart_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Cart/index.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 6
echo "<div id=\"undercolumn_cart\">
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h2 class=\"title\">";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("現在のカゴの中"), "html", null, true);
echo "</h2>
</div>
</div>
<div class=\"ec-cartRole\">
";
// line 14
$context["productStr"] = 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.', 14, $this->source); })()), "session", [], "any", false, false, true, 14), "flashbag", [], "any", false, false, true, 14), "get", [0 => "eccube.front.request.product"], "method", false, false, true, 14);
// line 15
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 15, $this->source); })()), "session", [], "any", false, false, true, 15), "flashbag", [], "any", false, false, true, 15), "get", [0 => "eccube.front.request.error"], "method", false, false, true, 15));
$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["error"]) {
// line 16
echo " ";
$context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 16);
// line 17
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
<div class=\"ec-alert-warning__text\">
";
// line 21
if (twig_get_attribute($this->env, $this->source, ($context["productStr"] ?? null), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 21, $this->source); })()), [], "array", true, true, true, 21)) {
// line 22
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 22, $this->source), ["%product%" => twig_get_attribute($this->env, $this->source, (isset($context["productStr"]) || array_key_exists("productStr", $context) ? $context["productStr"] : (function () { throw new RuntimeError('Variable "productStr" does not exist.', 22, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 22, $this->source); })()), [], "array", false, false, true, 22)]), "html", null, true));
echo "
";
} else {
// line 24
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 24, $this->source)), "html", null, true));
echo "
";
}
// line 26
echo " </div>
</div>
</div>
";
++$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['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 30, $this->source); })()), "session", [], "any", false, false, true, 30), "flashbag", [], "any", false, false, true, 30), "get", [0 => "eccube.front.cart.error"], "method", false, false, true, 30));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 31
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
<div class=\"ec-alert-warning__text\">
";
// line 35
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 35, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo " ";
if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 40, $this->source); })()) > 0)) {
// line 41
echo " ";
if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 41, $this->source); })())) > 1)) {
// line 42
echo " <div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
";
// line 45
echo " ";
$context["SaleTypetext"] = [];
// line 46
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 46, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 47
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 47));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 48
echo " ";
if (!twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 48), "SaleType", [], "any", false, false, true, 48), "name", [], "any", false, false, true, 48), (isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext", $context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.', 48, $this->source); })()))) {
// line 49
echo " ";
$context["SaleTypetext"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext", $context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.', 49, $this->source); })()), 49, $this->source), [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 49), "SaleType", [], "any", false, false, true, 49), "name", [], "any", false, false, true, 49)]);
// line 50
echo " ";
}
// line 51
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo " <div class=\"alert\" style=\"margin-bottom:0;\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
";
// line 55
echo twig_escape_filter($this->env, twig_join_filter($this->sandbox->ensureToStringAllowed((isset($context["SaleTypetext"]) || array_key_exists("SaleTypetext", $context) ? $context["SaleTypetext"] : (function () { throw new RuntimeError('Variable "SaleTypetext" does not exist.', 55, $this->source); })()), 55, $this->source), ","), "html", null, true);
echo "は同時購入できません。<br />お手数ですが、個別に購入手続きをお願い致します。
</div>
</div>
</div>
";
}
// line 60
echo "
<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
// line 61
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
";
// line 63
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 63, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 64
echo " <div class=\"cart-list\">
";
// line 65
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 65);
// line 66
echo " ";
$context["errorflug"] = false;
// line 67
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 67, $this->source); })()), "session", [], "any", false, false, true, 67), "flashbag", [], "any", false, false, true, 67), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 67, $this->source); })())) . ".request.error")], "method", false, false, true, 67));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 68
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
<div class=\"ec-alert-warning__text\">
";
// line 72
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 72, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
// line 76
$context["errorflug"] = true;
// line 77
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 78
echo "
";
// line 80
echo " ";
$context["purchasing_goods_name"] = "";
// line 81
echo " ";
if ((twig_length_filter($this->env, (isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 81, $this->source); })())) > 1)) {
// line 82
echo " ";
$context["SaleTypefirst"] = [];
// line 83
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 83));
$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["CartItem"]) {
// line 84
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 84)) {
// line 85
echo " ";
$context["SaleTypefirst"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 85), "SaleType", [], "any", false, false, true, 85), "name", [], "any", false, false, true, 85);
// line 86
echo " ";
}
// line 87
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['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " <h3 class=\"subtitle\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["SaleTypefirst"]) || array_key_exists("SaleTypefirst", $context) ? $context["SaleTypefirst"] : (function () { throw new RuntimeError('Variable "SaleTypefirst" does not exist.', 88, $this->source); })()), 88, $this->source), "html", null, true);
echo "</h3>
";
// line 89
$context["purchasing_goods_name"] = (isset($context["SaleTypefirst"]) || array_key_exists("SaleTypefirst", $context) ? $context["SaleTypefirst"] : (function () { throw new RuntimeError('Variable "SaleTypefirst" does not exist.', 89, $this->source); })());
// line 90
echo " ";
} else {
// line 91
echo " ";
$context["purchasing_goods_name"] = "カートの中の商品";
// line 92
echo " ";
}
// line 93
echo "
<div class=\"ec-cartRole__totalText\">
<p>
";
// line 96
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["purchasing_goods_name"]) || array_key_exists("purchasing_goods_name", $context) ? $context["purchasing_goods_name"] : (function () { throw new RuntimeError('Variable "purchasing_goods_name" does not exist.', 96, $this->source); })()), 96, $this->source), "html", null, true);
echo "の合計金額は「<strong>";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "totalPrice", [], "any", false, false, true, 96), 96, $this->source)), "html", null, true);
echo "円</strong>」です。
</p>
</div>
";
// line 101
echo " <div class=\"ec-cartRole__cart\">
<div class=\"ec-cartTable table-layout__type3\">
<div class=\"tr table-head\">
<div class=\"th w1 ec-cartHeader__label\">削除</div>
<div class=\"th w1 ec-cartHeader__label\">画像</div>
<div class=\"th w4 table-layout__name ec-cartHeader__label\">商品名</div>
<div class=\"th w2 ec-cartHeader__label\">単価</div>
<div class=\"th w2 ec-cartHeader__label\">数量</div>
<div class=\"th w2 ec-cartHeader__label\">小計</div>
</div>
";
// line 111
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 111));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 112
echo " ";
$context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 112);
// line 113
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 113, $this->source); })()), "Product", [], "any", false, false, true, 113);
// line 114
echo " <div class=\"tr\">
<div class=\"td w1 table-layout__deleate textLC ec-cartRow__delColumn\">
<div class=\"position-center\">
<div class=\"only-pc\">
<a class=\"btn-oldinput__short ec-icon\" href=\"";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 118, $this->source); })()), "id", [], "any", false, false, true, 118)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<span>削除</span>
</a>
</div>
<div class=\"only-sp\">
<a class=\"ec-icon\" href=\"";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "remove", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, true, 123)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<p class=\"ec-icon close-btn\">
<img src=\"";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-white.svg"), "html", null, true);
echo "\" alt=\"delete\">
</p>
</a>
</div>
</div>
</div>
<div class=\"td w1 table-layout__img textLC ec-cartRow__img\">
<div class=\"position-center\">
<a target=\"_blank\" href=\"";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 133, $this->source); })()), "id", [], "any", false, false, true, 133)]), "html", null, true);
echo "\">
<img src=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 134, $this->source); })()), "MainListImage", [], "any", false, false, true, 134), 134, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 134, $this->source); })()), "name", [], "any", false, false, true, 134), 134, $this->source), "html", null, true);
echo "\"/>
</a>
</div>
</div>
<div class=\"td w4 table-layout__right ec-cartRow__name\" data-label=\"商品名 :\">
<div class=\"position-center\">
<a target=\"_blank\" href=\"";
// line 140
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 140, $this->source); })()), "id", [], "any", false, false, true, 140)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 140, $this->source); })()), "name", [], "any", false, false, true, 140), 140, $this->source), "html", null, true);
echo "</a>
";
// line 141
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 141, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 141) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 141, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 141), "id", [], "any", false, false, true, 141))) {
// line 142
echo " <p>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 142, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 142), "ClassName", [], "any", false, false, true, 142), "name", [], "any", false, false, true, 142), 142, $this->source), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 142, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 142), 142, $this->source), "html", null, true);
echo "</p>
";
}
// line 144
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 144, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 144) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 144, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 144), "id", [], "any", false, false, true, 144))) {
// line 145
echo " <p>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 145, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 145), "ClassName", [], "any", false, false, true, 145), "name", [], "any", false, false, true, 145), 145, $this->source), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 145, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 145), 145, $this->source), "html", null, true);
echo "</p>
";
}
// line 147
echo " </div>
</div>
<div class=\"td w2 table-layout__right textLR ec-cartRow__unitPrice\" data-label=\"単価 :\">
<div class=\"position-center\">
<span>";
// line 151
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, true, 151), 151, $this->source)), "html", null, true);
echo "円</span>
</div>
</div>
<div class=\"td w2 table-layout__right textLC ec-cartRow__amountColumn\" data-label=\"数量 :\">
<div class=\"position-center\">
<p class=\"ec-cartRow__amount\">";
// line 156
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 156), 156, $this->source)), "html", null, true);
echo "</p>
<div class=\"ec-cartRow__amountUpDown flex\">
";
// line 158
if ((twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 158) > 1)) {
// line 159
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "down", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 159, $this->source); })()), "id", [], "any", false, false, true, 159)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus-dark.svg"), "html", null, true);
echo "\" alt=\"reduce\"></span>
</a>
";
} else {
// line 163
echo " <div class=\"ec-cartRow__amountDownButtonDisabled\">
<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
// line 164
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/minus.svg"), "html", null, true);
echo "\" alt=\"reduce\"></span>
</div>
";
}
// line 167
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart_handle_item", ["operation" => "up", "productClassId" => twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 167, $this->source); })()), "id", [], "any", false, false, true, 167)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
<span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
// line 168
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/plus-dark.svg"), "html", null, true);
echo "\" alt=\"increase\"></span>
</a>
</div>
</div>
</div>
<div class=\"td w2 table-layout__right textLR ec-cartRow__subtotalColumn\" data-label=\"小計 :\">
<div class=\"ec-cartRow__sutbtotal position-center\">
<span>";
// line 175
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, true, 175), 175, $this->source)), "html", null, true);
echo "円</span>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 180
echo " </div>
</div>
";
// line 182
if (((isset($context["errorflug"]) || array_key_exists("errorflug", $context) ? $context["errorflug"] : (function () { throw new RuntimeError('Variable "errorflug" does not exist.', 182, $this->source); })()) == false)) {
// line 183
echo " <p class=\"cart-agree\">上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
";
}
// line 185
echo " <div class=\"btn-area flex\">
<a class=\"ec-blockBtn--action orange-btn\" href=\"";
// line 186
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_buystep", ["cart_key" => (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 186, $this->source); })())]), "html", null, true);
echo "\">購入手続きへ</a>
<a class=\"ec-blockBtn--cancel gray-btn back-btn\" href=\"";
// line 187
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
echo "\">戻る</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 191
echo " </form>
";
} else {
// line 193
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 193, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 194
echo " ";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 194);
// line 195
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 195, $this->source); })()), "session", [], "any", false, false, true, 195), "flashbag", [], "any", false, false, true, 195), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 195, $this->source); })())) . ".request.error")], "method", false, false, true, 195));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 196
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 198
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
<div class=\"ec-alert-warning__text\">
";
// line 200
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 200, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 205
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 206
echo " <div class=\"ec-role\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text empty\"><span class=\"attention\">※ 現在カート内に商品はございません。</span></div>
</div>
</div>
";
}
// line 212
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Cart/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 612 => 212, 604 => 206, 598 => 205, 587 => 200, 582 => 198, 578 => 196, 573 => 195, 570 => 194, 565 => 193, 561 => 191, 551 => 187, 547 => 186, 544 => 185, 540 => 183, 538 => 182, 534 => 180, 523 => 175, 513 => 168, 506 => 167, 500 => 164, 497 => 163, 491 => 160, 484 => 159, 482 => 158, 477 => 156, 469 => 151, 463 => 147, 455 => 145, 452 => 144, 444 => 142, 442 => 141, 436 => 140, 425 => 134, 421 => 133, 410 => 125, 403 => 123, 393 => 118, 387 => 114, 384 => 113, 381 => 112, 377 => 111, 365 => 101, 356 => 96, 351 => 93, 348 => 92, 345 => 91, 342 => 90, 340 => 89, 335 => 88, 321 => 87, 318 => 86, 315 => 85, 312 => 84, 294 => 83, 291 => 82, 288 => 81, 285 => 80, 282 => 78, 276 => 77, 274 => 76, 267 => 72, 262 => 70, 258 => 68, 253 => 67, 250 => 66, 248 => 65, 245 => 64, 241 => 63, 236 => 61, 233 => 60, 225 => 55, 221 => 54, 218 => 53, 212 => 52, 206 => 51, 203 => 50, 200 => 49, 197 => 48, 192 => 47, 187 => 46, 184 => 45, 180 => 42, 177 => 41, 174 => 40, 163 => 35, 158 => 33, 154 => 31, 149 => 30, 132 => 26, 126 => 24, 120 => 22, 118 => 21, 113 => 19, 109 => 17, 106 => 16, 88 => 15, 86 => 14, 78 => 9, 73 => 6, 63 => 5, 52 => 1, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'cart_page' %}
{% block main %}
<div id=\"undercolumn_cart\">
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h2 class=\"title\">{{ '現在のカゴの中'|trans }}</h2>
</div>
</div>
<div class=\"ec-cartRole\">
{% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
{% for error in app.session.flashbag.get('eccube.front.request.error') %}
{% set idx = loop.index0 %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
<div class=\"ec-alert-warning__text\">
{% if productStr[idx] is defined %}
{{ error|trans({'%product%':productStr[idx]})|nl2br }}
{% else %}
{{ error|trans|nl2br }}
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% for error in app.session.flashbag.get('eccube.front.cart.error') %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
<div class=\"ec-alert-warning__text\">
{{ error|trans|nl2br }}
</div>
</div>
</div>
{% endfor %}
{% if totalQuantity > 0 %}
{% if Carts|length > 1 %}
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
{# 商品のSalecttypeを求める #}
{% set SaleTypetext = [] %}
{% for CartIndex,Cart in Carts %}
{% for CartItem in Cart.CartItems %}
{% if CartItem.ProductClass.SaleType.name not in SaleTypetext %}
{% set SaleTypetext = SaleTypetext|merge([CartItem.ProductClass.SaleType.name]) %}
{% endif %}
{% endfor %}
{% endfor %}
<div class=\"alert\" style=\"margin-bottom:0;\">
<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
{{SaleTypetext|join(',')}}は同時購入できません。<br />お手数ですが、個別に購入手続きをお願い致します。
</div>
</div>
</div>
{% endif %}
<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
{% for CartIndex,Cart in Carts %}
<div class=\"cart-list\">
{% set cartKey = Cart.cart_key %}
{% set errorflug = false %}
{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
<div class=\"ec-alert-warning__text\">
{{ error|trans|nl2br }}
</div>
</div>
</div>
{% set errorflug = true %}
{% endfor %}
{# カートヘッダー(カートが別れる時のみ表示) #}
{% set purchasing_goods_name = '' %}
{% if Carts|length > 1 %}
{% set SaleTypefirst = [] %}
{% for CartItem in Cart.CartItems %}
{% if loop.first %}
{% set SaleTypefirst = CartItem.ProductClass.SaleType.name %}
{% endif %}
{% endfor %}
<h3 class=\"subtitle\">{{SaleTypefirst}}</h3>
{% set purchasing_goods_name = SaleTypefirst %}
{% else %}
{% set purchasing_goods_name = \"カートの中の商品\" %}
{% endif %}
<div class=\"ec-cartRole__totalText\">
<p>
{{purchasing_goods_name}}の合計金額は「<strong>{{ Cart.totalPrice|number_format }}円</strong>」です。
</p>
</div>
{# カート詳細情報 #}
<div class=\"ec-cartRole__cart\">
<div class=\"ec-cartTable table-layout__type3\">
<div class=\"tr table-head\">
<div class=\"th w1 ec-cartHeader__label\">削除</div>
<div class=\"th w1 ec-cartHeader__label\">画像</div>
<div class=\"th w4 table-layout__name ec-cartHeader__label\">商品名</div>
<div class=\"th w2 ec-cartHeader__label\">単価</div>
<div class=\"th w2 ec-cartHeader__label\">数量</div>
<div class=\"th w2 ec-cartHeader__label\">小計</div>
</div>
{% for CartItem in Cart.CartItems %}
{% set ProductClass = CartItem.ProductClass %}
{% set Product = ProductClass.Product %}
<div class=\"tr\">
<div class=\"td w1 table-layout__deleate textLC ec-cartRow__delColumn\">
<div class=\"position-center\">
<div class=\"only-pc\">
<a class=\"btn-oldinput__short ec-icon\" href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<span>削除</span>
</a>
</div>
<div class=\"only-sp\">
<a class=\"ec-icon\" href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<p class=\"ec-icon close-btn\">
<img src=\"{{ asset('assets/icon/cross-white.svg') }}\" alt=\"delete\">
</p>
</a>
</div>
</div>
</div>
<div class=\"td w1 table-layout__img textLC ec-cartRow__img\">
<div class=\"position-center\">
<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
<img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\"/>
</a>
</div>
</div>
<div class=\"td w4 table-layout__right ec-cartRow__name\" data-label=\"商品名 :\">
<div class=\"position-center\">
<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
<p>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}</p>
{% endif %}
{% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
<p>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}</p>
{% endif %}
</div>
</div>
<div class=\"td w2 table-layout__right textLR ec-cartRow__unitPrice\" data-label=\"単価 :\">
<div class=\"position-center\">
<span>{{ CartItem.price|number_format }}円</span>
</div>
</div>
<div class=\"td w2 table-layout__right textLC ec-cartRow__amountColumn\" data-label=\"数量 :\">
<div class=\"position-center\">
<p class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</p>
<div class=\"ec-cartRow__amountUpDown flex\">
{% if CartItem.quantity > 1 %}
<a href=\"{{ url('cart_handle_item', {'operation': 'down', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountDownButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
</a>
{% else %}
<div class=\"ec-cartRow__amountDownButtonDisabled\">
<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
</div>
{% endif %}
<a href=\"{{ url('cart_handle_item', {'operation': 'up', 'productClassId': ProductClass.id}) }}\" {{ csrf_token_for_anchor() }} class=\"ec-cartRow__amountUpButton load-overlay\" data-method=\"put\" data-confirm=\"false\">
<span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
</a>
</div>
</div>
</div>
<div class=\"td w2 table-layout__right textLR ec-cartRow__subtotalColumn\" data-label=\"小計 :\">
<div class=\"ec-cartRow__sutbtotal position-center\">
<span>{{ CartItem.total_price|number_format }}円</span>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% if errorflug == false %}
<p class=\"cart-agree\">上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
{% endif %}
<div class=\"btn-area flex\">
<a class=\"ec-blockBtn--action orange-btn\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">購入手続きへ</a>
<a class=\"ec-blockBtn--cancel gray-btn back-btn\" href=\"{{ path('homepage') }}\">戻る</a>
</div>
</div>
{% endfor %}
</form>
{% else %}
{% for CartIndex,Cart in Carts %}
{% set cartKey = Cart.cart_key %}
{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
<div class=\"ec-alert-warning__text\">
{{ error|trans|nl2br }}
</div>
</div>
</div>
{% endfor %}
{% endfor %}
<div class=\"ec-role\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text empty\"><span class=\"attention\">※ 現在カート内に商品はございません。</span></div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}
", "Cart/index.twig", "/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Cart/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 3, "for" => 15, "if" => 21);
static $filters = array("escape" => 9, "trans" => 9, "nl2br" => 22, "length" => 41, "merge" => 49, "join" => 55, "number_format" => 96, "no_image_product" => 134);
static $functions = array("asset" => 19, "url" => 61, "csrf_token_for_anchor" => 118, "path" => 186);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if'],
['escape', 'trans', 'nl2br', 'length', 'merge', 'join', 'number_format', 'no_image_product'],
['asset', 'url', 'csrf_token_for_anchor', 'path']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}