<?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_6142d4035aa1bf9a29939345e9875675 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 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "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 13
$context["body_class"] = "cart_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Cart/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_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 16
echo "
\t<div class=\"ec-role\">
\t\t<div class=\"ec-pageHeader\">
\t\t\t<h1>";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_title"), "html", null, true);
echo "</h1>
\t\t</div>
\t</div>
\t<div class=\"ec-cartRole\">
\t\t<div class=\"ec-cartRole__progress\">
\t\t\t<ul class=\"ec-progress\">
\t\t\t\t";
// line 27
$context["step"] = 1;
// line 28
echo "\t\t\t\t<li class=\"ec-progress__item is-complete\">
\t\t\t\t\t<div class=\"ec-progress__number\">";
// line 29
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 29, $this->source); })()), 29, $this->source), "html", null, true);
$context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 29, $this->source); })()) + 1);
// line 30
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_nav_step_1"), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t";
// line 34
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
// line 35
echo "\t\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t\t<div class=\"ec-progress__number\">";
// line 36
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 36, $this->source); })()), 36, $this->source), "html", null, true);
$context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 36, $this->source); })()) + 1);
// line 37
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ec-progress__label\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_nav_step_2"), "html", null, true);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</li>
\t\t\t\t";
}
// line 42
echo "\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">";
// line 43
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 43, $this->source); })()), 43, $this->source), "html", null, true);
$context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 43, $this->source); })()) + 1);
// line 44
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_nav_step_3"), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">";
// line 49
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 49, $this->source); })()), 49, $this->source), "html", null, true);
$context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 49, $this->source); })()) + 1);
// line 50
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_nav_step_4"), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">";
// line 55
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 55, $this->source); })()), 55, $this->source), "html", null, true);
$context["step"] = ((isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 55, $this->source); })()) + 1);
// line 56
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cart_nav_step_5"), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t</ul>
\t\t</div>
\t\t";
// line 62
$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.', 62, $this->source); })()), "session", [], "any", false, false, true, 62), "flashbag", [], "any", false, false, true, 62), "get", [0 => "eccube.front.request.product"], "method", false, false, true, 62);
// line 63
echo "\t\t";
$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.', 63, $this->source); })()), "session", [], "any", false, false, true, 63), "flashbag", [], "any", false, false, true, 63), "get", [0 => "eccube.front.request.error"], "method", false, false, true, 63));
$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 64
echo "\t\t\t";
$context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 64);
// line 65
echo "\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t";
// line 69
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.', 69, $this->source); })()), [], "array", true, true, true, 69)) {
// line 70
echo "\t\t\t\t\t\t\t";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 70, $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.', 70, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 70, $this->source); })()), [], "array", false, false, true, 70)]), "html", null, true));
echo "
\t\t\t\t\t\t";
} else {
// line 72
echo "\t\t\t\t\t\t\t";
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 "
\t\t\t\t\t\t";
}
// line 74
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
++$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 78
echo "\t\t";
$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.', 78, $this->source); })()), "session", [], "any", false, false, true, 78), "flashbag", [], "any", false, false, true, 78), "get", [0 => "eccube.front.cart.error"], "method", false, false, true, 78));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 79
echo "\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t";
// line 83
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 83, $this->source)), "html", null, true));
echo "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo "\t\t";
if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 88, $this->source); })()) > 0)) {
// line 89
echo "\t\t\t";
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.', 89, $this->source); })())) > 1)) {
// line 90
echo "\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t";
// line 93
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cannot_be_purchased_together"), "html", null, true));
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 98
echo "
\t\t\t<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
// line 99
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
\t\t\t\t";
// line 101
$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.', 101, $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["CartIndex"] => $context["Cart"]) {
// line 102
echo "\t\t\t\t\t";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 102);
// line 103
echo "\t\t\t\t\t";
$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.', 103, $this->source); })()), "session", [], "any", false, false, true, 103), "flashbag", [], "any", false, false, true, 103), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 103, $this->source); })())) . ".request.error")], "method", false, false, true, 103));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 104
echo "\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t";
// line 108
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 108, $this->source)), "html", null, true));
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 113
echo "
\t\t\t\t\t<div class=\"ec-cartRole__cart\">
\t\t\t\t\t\t<div class=\"ec-cartTable\">
\t\t\t\t\t\t\t<ol class=\"ec-cartHeader\">
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">";
// line 117
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.product_details"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.quantity"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">";
// line 119
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.subtotal"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cancel"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t</ol>
\t\t\t\t\t\t\t";
// line 122
$context["totalShippingCost"] = twig_number_format_filter($this->env, 0, 2, ".", "");
// line 123
echo "\t\t\t\t\t\t\t";
$context["totalShippingCostFlg"] = 0;
// line 124
echo "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 124));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 125
echo " \t\t\t\t\t\t\t";
$context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 125);
// line 126
echo " \t\t\t\t\t\t\t";
$context["Product"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 126), "Product", [], "any", false, false, true, 126);
// line 127
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, true, true, 127), "delivery_fee", [], "any", true, true, true, 127) && preg_match("/^[-+]?[0-9]*\\.?[0-9]+\$/", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 127), "delivery_fee", [], "any", false, false, true, 127)))) {
// line 128
echo " ";
$context["totalShippingCost"] = ((isset($context["totalShippingCost"]) || array_key_exists("totalShippingCost", $context) ? $context["totalShippingCost"] : (function () { throw new RuntimeError('Variable "totalShippingCost" does not exist.', 128, $this->source); })()) + twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 128), "delivery_fee", [], "any", false, false, true, 128), 128, $this->source), 2, ".", ""));
// line 129
echo " ";
$context["totalShippingCostFlg"] = 1;
// line 130
echo " ";
}
// line 131
echo "
\t\t\t\t\t\t\t\t<ul class=\"ec-cartRow\">
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__contentColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__img\">
\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
// line 135
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.', 135, $this->source); })()), "id", [], "any", false, false, true, 135)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 136
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.', 136, $this->source); })()), "MainListImage", [], "any", false, false, true, 136), 136, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\SimpleProductTranslationExtension']->translateProductName($this->sandbox->ensureToStringAllowed((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 136, $this->source); })()), 136, $this->source)), "html", null, true);
echo "\"/>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__summary\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__name\">
\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
// line 141
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.', 141, $this->source); })()), "id", [], "any", false, false, true, 141)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\SimpleProductTranslationExtension']->translateProductName($this->sandbox->ensureToStringAllowed((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 141, $this->source); })()), 141, $this->source)), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 142
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.', 142, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 142) && 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), "id", [], "any", false, false, true, 142))) {
// line 143
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<br>";
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.', 143, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 143), "ClassName", [], "any", false, false, true, 143), "name", [], "any", false, false, true, 143), 143, $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.', 143, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 143), 143, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 145
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
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.', 145, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 145) && 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), "id", [], "any", false, false, true, 145))) {
// line 146
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<br>";
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.', 146, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 146), "ClassName", [], "any", false, false, true, 146), "name", [], "any", false, false, true, 146), 146, $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.', 146, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 146), 146, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 148
echo "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__unitPrice\">";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, true, 149), 149, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__sutbtotalSP\">";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.subtotal_2"), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, true, 150), 150, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__amountColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amount\">";
// line 154
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, 154), 154, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountSP\">";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.quantity"), "html", null, true);
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, 155), 155, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountUpDown\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 157
if ((twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 157) > 1)) {
// line 158
echo "\t\t\t\t\t\t\t\t\t\t\t\t<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.', 158, $this->source); })()), "id", [], "any", false, false, true, 158)]), "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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
// line 159
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>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 162
echo "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountDownButtonDisabled\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
// line 163
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>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 166
echo "\t\t\t\t\t\t\t\t\t\t\t<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.', 166, $this->source); })()), "id", [], "any", false, false, true, 166)]), "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\">
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"";
// line 167
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>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__subtotalColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__sutbtotal\">";
// line 172
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, true, 172), 172, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__delColumn\">
\t\t\t\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\t\t\t\thref=\"";
// line 176
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.', 176, $this->source); })()), "id", [], "any", false, false, true, 176)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"ec-icon\" data-method=\"put\" data-message=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.are_you_sure"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 177
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.cancel"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 182
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-cartRole__progress\">
\t\t\t\t\t\t";
// line 185
if ((twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 185, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 185) && twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 185, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 185))) {
// line 186
echo "\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t";
// line 187
if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 187, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 187, $this->source); })()), [], "array", false, false, true, 187)) {
// line 188
echo "\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.free_delivery"), "html", null, true);
echo "
\t\t\t\t\t\t\t";
} else {
// line 190
echo "\t\t\t\t\t\t\t\t";
// line 191
echo "\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, ((((((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional") . $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 193
(isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 193, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 193, $this->source); })()), [], "array", false, false, true, 193), 193, $this->source))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_or")) . twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 195
(isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 195, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 195, $this->source); })()), [], "array", false, false, true, 195), 195, $this->source))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_quantity")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_1")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_2")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_3")), "html", null, true);
// line 200
echo "
\t\t\t\t\t\t\t";
}
// line 202
echo "\t\t\t\t\t\t";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 202, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 202)) {
// line 203
echo "\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t";
// line 204
if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 204, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 204, $this->source); })()), [], "array", false, false, true, 204)) {
// line 205
echo "\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.free_delivery"), "html", null, true);
echo "
\t\t\t\t\t\t\t";
} else {
// line 207
echo " ";
if ((((isset($context["totalShippingCostFlg"]) || array_key_exists("totalShippingCostFlg", $context) ? $context["totalShippingCostFlg"] : (function () { throw new RuntimeError('Variable "totalShippingCostFlg" does not exist.', 207, $this->source); })()) == 1) && ((isset($context["totalShippingCost"]) || array_key_exists("totalShippingCost", $context) ? $context["totalShippingCost"] : (function () { throw new RuntimeError('Variable "totalShippingCost" does not exist.', 207, $this->source); })()) < 1))) {
// line 208
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.free_delivery"), "html", null, true);
echo "
";
} else {
// line 210
echo " ";
// line 211
echo "\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, ((((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional") . $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 213
(isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 213, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 213, $this->source); })()), [], "array", false, false, true, 213), 213, $this->source))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_proce")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_1")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_2")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_3")), "html", null, true);
// line 218
echo "
";
}
// line 220
echo "\t\t\t\t\t\t\t";
}
// line 221
echo "\t\t\t\t\t\t";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 221, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 221)) {
// line 222
echo "\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t";
// line 223
if (twig_get_attribute($this->env, $this->source, (isset($context["is_delivery_free"]) || array_key_exists("is_delivery_free", $context) ? $context["is_delivery_free"] : (function () { throw new RuntimeError('Variable "is_delivery_free" does not exist.', 223, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 223, $this->source); })()), [], "array", false, false, true, 223)) {
// line 224
echo "\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.free_delivery"), "html", null, true);
echo "
\t\t\t\t\t\t\t";
} else {
// line 226
echo "\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, ((((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional") . twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 228
(isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 228, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 228, $this->source); })()), [], "array", false, false, true, 228), 228, $this->source))) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_quantity")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_1")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_2")) . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.buy_an_additional_desc_3")), "html", null, true);
// line 233
echo "
\t\t\t\t\t\t\t";
}
// line 235
echo "\t\t\t\t\t\t";
}
// line 236
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-cartRole__actions\">
\t\t\t\t\t\t<div class=\"ec-cartRole__total\">";
// line 238
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.total"), "html", null, true);
echo "<span class=\"ec-cartRole__totalAmount\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "totalPrice", [], "any", false, false, true, 238), 238, $this->source)), "html", null, true);
echo "</span><span style=\"color:#DE5D50;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.tax_included"), "html", null, true);
echo "</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"ec-blockBtn--action\" href=\"";
// line 240
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.', 240, $this->source); })())]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.cart.proceed_to_checkout"), "html", null, true);
echo "</a>
\t\t\t\t\t\t";
// line 241
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 241)) {
// line 242
echo "\t\t\t\t\t\t\t<a class=\"ec-blockBtn--cancel\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html", null, true);
echo "</a>
\t\t\t\t\t\t";
}
// line 244
echo "\t\t\t\t\t</div>
\t\t\t\t";
++$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['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 246
echo "\t\t\t</form>
\t\t";
} else {
// line 248
echo "\t\t\t";
$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.', 248, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 249
echo "\t\t\t\t";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 249);
// line 250
echo "\t\t\t\t";
$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.', 250, $this->source); })()), "session", [], "any", false, false, true, 250), "flashbag", [], "any", false, false, true, 250), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 250, $this->source); })())) . ".request.error")], "method", false, false, true, 250));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 251
echo "\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 253
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t";
// line 255
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 255, $this->source)), "html", null, true));
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 260
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 261
echo "\t\t\t<div class=\"ec-role\">
\t\t\t\t<div class=\"ec-off3Grid\">
\t\t\t\t\t<div class=\"ec-off3Grid__cell\">
\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 265
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"></div>
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">";
// line 266
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.no_items"), "html", null, true);
echo "</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
// line 272
echo "\t</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 ( 711 => 272, 702 => 266, 698 => 265, 692 => 261, 686 => 260, 675 => 255, 670 => 253, 666 => 251, 661 => 250, 658 => 249, 653 => 248, 649 => 246, 634 => 244, 626 => 242, 624 => 241, 618 => 240, 609 => 238, 605 => 236, 602 => 235, 598 => 233, 596 => 228, 594 => 226, 588 => 224, 586 => 223, 583 => 222, 580 => 221, 577 => 220, 573 => 218, 571 => 213, 569 => 211, 567 => 210, 561 => 208, 558 => 207, 552 => 205, 550 => 204, 547 => 203, 544 => 202, 540 => 200, 538 => 195, 537 => 193, 535 => 191, 533 => 190, 527 => 188, 525 => 187, 522 => 186, 520 => 185, 515 => 182, 504 => 177, 496 => 176, 489 => 172, 481 => 167, 474 => 166, 468 => 163, 465 => 162, 459 => 159, 452 => 158, 450 => 157, 444 => 155, 440 => 154, 432 => 150, 428 => 149, 425 => 148, 417 => 146, 414 => 145, 406 => 143, 404 => 142, 398 => 141, 388 => 136, 384 => 135, 378 => 131, 375 => 130, 372 => 129, 369 => 128, 366 => 127, 363 => 126, 360 => 125, 355 => 124, 352 => 123, 350 => 122, 345 => 120, 341 => 119, 337 => 118, 333 => 117, 327 => 113, 316 => 108, 311 => 106, 307 => 104, 302 => 103, 299 => 102, 282 => 101, 277 => 99, 274 => 98, 266 => 93, 261 => 90, 258 => 89, 255 => 88, 244 => 83, 239 => 81, 235 => 79, 230 => 78, 213 => 74, 207 => 72, 201 => 70, 199 => 69, 194 => 67, 190 => 65, 187 => 64, 169 => 63, 167 => 62, 159 => 57, 156 => 56, 153 => 55, 146 => 51, 143 => 50, 140 => 49, 133 => 45, 130 => 44, 127 => 43, 124 => 42, 117 => 38, 114 => 37, 111 => 36, 108 => 35, 106 => 34, 100 => 31, 97 => 30, 94 => 29, 91 => 28, 89 => 27, 79 => 20, 73 => 16, 63 => 15, 52 => 11, 50 => 13, 37 => 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 = 'cart_page' %}
{% block main %}
\t<div class=\"ec-role\">
\t\t<div class=\"ec-pageHeader\">
\t\t\t<h1>{{ 'front.block.cart.cart_title'|trans }}</h1>
\t\t</div>
\t</div>
\t<div class=\"ec-cartRole\">
\t\t<div class=\"ec-cartRole__progress\">
\t\t\t<ul class=\"ec-progress\">
\t\t\t\t{% set step = 1 %}
\t\t\t\t<li class=\"ec-progress__item is-complete\">
\t\t\t\t\t<div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">{{ 'front.block.cart.cart_nav_step_1'|trans }}
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t{% if is_granted('ROLE_USER') == false %}
\t\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t\t<div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ec-progress__label\">{{ 'front.block.cart.cart_nav_step_2'|trans }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</li>
\t\t\t\t{% endif %}
\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">{{ 'front.block.cart.cart_nav_step_3'|trans }}
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">{{ 'front.block.cart.cart_nav_step_4'|trans }}
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t\t<li class=\"ec-progress__item\">
\t\t\t\t\t<div class=\"ec-progress__number\">{{ step }}{% set step = step + 1 %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-progress__label\">{{ 'front.block.cart.cart_nav_step_5'|trans }}
\t\t\t\t\t</div>
\t\t\t\t</li>
\t\t\t</ul>
\t\t</div>
\t\t{% set productStr = app.session.flashbag.get('eccube.front.request.product') %}
\t\t{% for error in app.session.flashbag.get('eccube.front.request.error') %}
\t\t\t{% set idx = loop.index0 %}
\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t{% if productStr[idx] is defined %}
\t\t\t\t\t\t\t{{ error|trans({'%product%':productStr[idx]})|nl2br }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{{ error|trans|nl2br }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endfor %}
\t\t{% for error in app.session.flashbag.get('eccube.front.cart.error') %}
\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t{{ error|trans|nl2br }}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endfor %}
\t\t{% if totalQuantity > 0 %}
\t\t\t{% if Carts|length > 1 %}
\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t{{ 'front.block.cart.cannot_be_purchased_together'|trans|nl2br }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
\t\t\t\t{% for CartIndex,Cart in Carts %}
\t\t\t\t\t{% set cartKey = Cart.cart_key %}
\t\t\t\t\t{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t{{ error|trans|nl2br }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<div class=\"ec-cartRole__cart\">
\t\t\t\t\t\t<div class=\"ec-cartTable\">
\t\t\t\t\t\t\t<ol class=\"ec-cartHeader\">
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">{{ 'front.block.cart.product_details'|trans }}</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">{{ 'front.block.cart.quantity'|trans }}</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">{{ 'front.block.cart.subtotal'|trans }}</li>
\t\t\t\t\t\t\t\t<li class=\"ec-cartHeader__label\">{{ 'front.block.cart.cancel'|trans }}</li>
\t\t\t\t\t\t\t</ol>
\t\t\t\t\t\t\t{% set totalShippingCost = 0|number_format(2, '.', '') %}
\t\t\t\t\t\t\t{% set totalShippingCostFlg = 0 %}
\t\t\t\t\t\t\t{% for CartItem in Cart.CartItems %}
\t\t\t\t\t\t\t{% set ProductClass = CartItem.ProductClass %}
\t\t\t\t\t\t\t{% set Product = CartItem.ProductClass.Product %}
{% if CartItem.ProductClass.delivery_fee is defined and CartItem.ProductClass.delivery_fee matches '/^[-+]?[0-9]*\\\\.?[0-9]+\$/' %}
{% set totalShippingCost = totalShippingCost + CartItem.ProductClass.delivery_fee|number_format(2, '.', '') %}
{% set totalShippingCostFlg = 1 %}
{% endif %}
\t\t\t\t\t\t\t\t<ul class=\"ec-cartRow\">
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__contentColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__img\">
\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product|trans_product_name }}\"/>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__summary\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__name\">
\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product|trans_product_name }}</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__sutbtotalSP\">{{ 'front.block.cart.subtotal_2'|trans }}{{ CartItem.total_price|price }}</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__amountColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountSP\">{{ 'front.block.cart.quantity'|trans }}{{ CartItem.quantity|number_format }}</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountUpDown\">
\t\t\t\t\t\t\t\t\t\t\t{% if CartItem.quantity > 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t<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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus-dark.svg') }}\" alt=\"reduce\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__amountDownButtonDisabled\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"{{ asset('assets/icon/minus.svg') }}\" alt=\"reduce\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t<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\">
\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-cartRow__amountUpButton__icon\"><img src=\"{{ asset('assets/icon/plus-dark.svg') }}\" alt=\"increase\"></span>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__subtotalColumn\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t<li class=\"ec-cartRow__delColumn\">
\t\t\t\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\t\t\t\thref=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"{{ 'front.block.cart.are_you_sure' |trans }}\">
\t\t\t\t\t\t\t\t\t\t\t{{'front.block.cart.cancel' |trans}}
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-cartRole__progress\">
\t\t\t\t\t\t{% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t{{ 'front.block.cart.free_delivery'|trans }}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{# {{ 'あと「<strong class=\"ec-color-red\">%price%</strong>」または「<strong>%quantity%個</strong>」のお買い上げで<strong class=\"ec-color-red\">配送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }} #}
\t\t\t\t\t\t\t\t{{
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional'|trans ~
\t\t\t\t\t\t\t\t\t(least[cartKey]|price) ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_or'|trans ~
\t\t\t\t\t\t\t\t\t(quantity[cartKey]|number_format) ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_quantity'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_1'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_2'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_3'|trans
\t\t\t\t\t\t\t\t| raw }}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% elseif BaseInfo.delivery_free_amount %}
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t{{ 'front.block.cart.free_delivery'|trans }}
\t\t\t\t\t\t\t{% else %}
{% if totalShippingCostFlg == 1 and totalShippingCost < 1 %}
{{ 'front.block.cart.free_delivery'|trans }}
{% else %}
{# {{ 'あと「<strong class=\"ec-color-red\">%price%</strong>」のお買い上げで<strong class=\"ec-color-red\">配送料無料</strong>になります。'|trans({ '%price%': least[cartKey]|price })|raw }} #}
\t\t\t\t\t\t\t\t\t{{
\t\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional'|trans ~
\t\t\t\t\t\t\t\t\t\t(least[cartKey]|price) ~
\t\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_proce'|trans ~
\t\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_1'|trans ~
\t\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_2'|trans ~
\t\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_3'|trans
\t\t\t\t\t\t\t\t\t| raw }}
{% endif %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% elseif BaseInfo.delivery_free_quantity %}
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t{{ 'front.block.cart.free_delivery'|trans }}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{{
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional'|trans ~
\t\t\t\t\t\t\t\t\t(quantity[cartKey]|number_format) ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_quantity'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_1'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_2'|trans ~
\t\t\t\t\t\t\t\t\t'front.block.cart.buy_an_additional_desc_3'|trans
\t\t\t\t\t\t\t\t| raw }}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ec-cartRole__actions\">
\t\t\t\t\t\t<div class=\"ec-cartRole__total\">{{ 'front.block.cart.total'|trans }}<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span><span style=\"color:#DE5D50;\">{{ 'front.block.cart.tax_included'|trans }}</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'front.block.cart.proceed_to_checkout'|trans }}</a>
\t\t\t\t\t\t{% if loop.last %}
\t\t\t\t\t\t\t<a class=\"ec-blockBtn--cancel\" href=\"{{ url('product_list') }}\">{{ 'front.product.continue'|trans }}</a>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</form>
\t\t{% else %}
\t\t\t{% for CartIndex,Cart in Carts %}
\t\t\t\t{% set cartKey = Cart.cart_key %}
\t\t\t\t{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t{{ error|trans|nl2br }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t{% endfor %}
\t\t\t<div class=\"ec-role\">
\t\t\t\t<div class=\"ec-off3Grid\">
\t\t\t\t\t<div class=\"ec-off3Grid__cell\">
\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"></div>
\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">{{ 'front.cart.no_items'|trans }}</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endif %}
\t</div>
{% endblock %}", "Cart/index.twig", "/home/aonchappy/aonchappy.xsrv.jp/public_html/app/template/default/Cart/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 34, "for" => 63);
static $filters = array("escape" => 20, "trans" => 20, "nl2br" => 70, "length" => 89, "number_format" => 122, "no_image_product" => 136, "trans_product_name" => 136, "price" => 149, "raw" => 200);
static $functions = array("is_granted" => 34, "asset" => 67, "url" => 99, "csrf_token_for_anchor" => 158, "path" => 240);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'trans', 'nl2br', 'length', 'number_format', 'no_image_product', 'trans_product_name', 'price', 'raw'],
['is_granted', '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;
}
}
}