<?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_6010f49ee124c594134c5ab06d44afe2fd9f19f81bccc82becd91719e255565b 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'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Cart/index.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 16
echo "
";
// line 17
$context["showProduct"] = true;
// line 18
echo " ";
if ((isset($context["ChainStore"]) || array_key_exists("ChainStore", $context) ? $context["ChainStore"] : (function () { throw new RuntimeError('Variable "ChainStore" does not exist.', 18, $this->source); })())) {
// line 19
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ChainStore"]) || array_key_exists("ChainStore", $context) ? $context["ChainStore"] : (function () { throw new RuntimeError('Variable "ChainStore" does not exist.', 19, $this->source); })()), "ContractType", [], "any", false, false, false, 19), "show_product", [], "any", false, false, false, 19) != "Y")) {
// line 20
echo " ";
$context["showProduct"] = false;
// line 21
echo " ";
}
// line 22
echo " ";
}
// line 23
echo "
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.title"), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"ec-cartRole\">
<div class=\"ec-cartRole__progress\">
<ul class=\"ec-progress\">
";
// line 33
$context["step"] = 1;
// line 34
echo " <li class=\"ec-progress__item is-complete\">
<div class=\"ec-progress__number\">
";
// line 36
echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 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 " </div>
<div class=\"ec-progress__label\">
";
// line 39
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 39, $this->source); })()) == false)) {
// line 40
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.nav__cart_items"), "html", null, true);
echo "
";
} else {
// line 42
echo " Cart
";
}
// line 44
echo " </div>
</li>
";
// line 46
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
// line 47
echo " <li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
";
// line 49
echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 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 " </div>
<div class=\"ec-progress__label\">
";
// line 52
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 52, $this->source); })()) == false)) {
// line 53
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.nav__customer_info"), "html", null, true);
echo "
";
} else {
// line 55
echo " Customer<br>information
";
}
// line 57
echo " </div>
</li>
";
}
// line 60
echo " <li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
";
// line 62
echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 62, $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.', 62, $this->source); })()) + 1);
// line 63
echo " </div>
<div class=\"ec-progress__label\">
";
// line 65
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 65, $this->source); })()) == false)) {
// line 66
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.nav__order"), "html", null, true);
echo "
";
} else {
// line 68
echo " Payment<br>options
";
}
// line 70
echo " </div>
</li>
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
";
// line 74
echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 74, $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.', 74, $this->source); })()) + 1);
// line 75
echo " </div>
<div class=\"ec-progress__label\">
";
// line 77
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 77, $this->source); })()) == false)) {
// line 78
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.nav__confirm"), "html", null, true);
echo "
";
} else {
// line 80
echo " Order<br>summary
";
}
// line 82
echo " </div>
</li>
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
";
// line 86
echo twig_escape_filter($this->env, (isset($context["step"]) || array_key_exists("step", $context) ? $context["step"] : (function () { throw new RuntimeError('Variable "step" does not exist.', 86, $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.', 86, $this->source); })()) + 1);
// line 87
echo " </div>
<div class=\"ec-progress__label\">
";
// line 89
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 89, $this->source); })()) == false)) {
// line 90
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.nav__complete"), "html", null, true);
echo "
";
} else {
// line 92
echo " Confirmation
";
}
// line 94
echo " </div>
</li>
</ul>
</div>
";
// line 98
$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.', 98, $this->source); })()), "session", [], "any", false, false, false, 98), "flashbag", [], "any", false, false, false, 98), "get", [0 => "eccube.front.request.product"], "method", false, false, false, 98);
// line 99
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.', 99, $this->source); })()), "session", [], "any", false, false, false, 99), "flashbag", [], "any", false, false, false, 99), "get", [0 => "eccube.front.request.error"], "method", false, false, false, 99));
$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 100
echo " ";
$context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 100);
// line 101
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 103
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 105
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.', 105, $this->source); })()), [], "array", true, true, false, 105)) {
// line 106
echo " ";
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"], ["%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.', 106, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 106, $this->source); })()), [], "array", false, false, false, 106)]), "html", null, true));
echo "
";
} else {
// line 108
echo " ";
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html", null, true));
echo "
";
}
// line 110
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 114
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.', 114, $this->source); })()), "session", [], "any", false, false, false, 114), "flashbag", [], "any", false, false, false, 114), "get", [0 => "eccube.front.cart.error"], "method", false, false, false, 114));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 115
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 117
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 119
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "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 124
echo " ";
if ((((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 124, $this->source); })()) > 0) && (isset($context["showProduct"]) || array_key_exists("showProduct", $context) ? $context["showProduct"] : (function () { throw new RuntimeError('Variable "showProduct" does not exist.', 124, $this->source); })()))) {
// line 125
echo " <div class=\"ec-cartRole__totalText\">
<p>
";
// line 127
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 127, $this->source); })()) == false)) {
// line 128
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.total_price", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["totalPrice"]) || array_key_exists("totalPrice", $context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.', 128, $this->source); })()))]);
echo "
";
} else {
// line 130
echo " Your order total is ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["totalPrice"]) || array_key_exists("totalPrice", $context) ? $context["totalPrice"] : (function () { throw new RuntimeError('Variable "totalPrice" does not exist.', 130, $this->source); })())), "html", null, true);
echo ".
";
}
// line 132
echo " </p>
</div>
";
// line 134
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.', 134, $this->source); })())) > 1)) {
// line 135
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
";
// line 138
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.divide_cart"), "html", null, true));
echo "
</div>
</div>
</div>
";
}
// line 143
echo "
";
// line 144
if (((isset($context["ChainStore"]) || array_key_exists("ChainStore", $context) ? $context["ChainStore"] : (function () { throw new RuntimeError('Variable "ChainStore" does not exist.', 144, $this->source); })()) == false)) {
// line 145
echo " <div class=\"ec-cartRole__text\">
";
// line 149
echo " ";
// line 152
echo " </div>
";
}
// line 154
echo "
<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
// line 155
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
";
// line 157
$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.', 157, $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 158
echo " ";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, false, 158);
// line 159
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.', 159, $this->source); })()), "session", [], "any", false, false, false, 159), "flashbag", [], "any", false, false, false, 159), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 159, $this->source); })())) . ".request.error")], "method", false, false, false, 159));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 160
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 162
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 164
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "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 169
echo "
<div class=\"ec-cartRole__cart\">
<div class=\"ec-cartTable\">
<ol class=\"ec-cartHeader\">
<li class=\"ec-cartHeader__label\">
";
// line 174
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 174, $this->source); })()) == false)) {
// line 175
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delete"), "html", null, true);
echo "
";
} else {
// line 177
echo " Remove<br>Item
";
}
// line 179
echo " </li>
<li class=\"ec-cartHeader__label\">
";
// line 181
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 181, $this->source); })()) == false)) {
// line 182
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.product"), "html", null, true);
echo "
";
} else {
// line 184
echo " Product Info
";
}
// line 186
echo " </li>
<li class=\"ec-cartHeader__label\">
";
// line 188
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 188, $this->source); })()) == false)) {
// line 189
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity"), "html", null, true);
echo "
";
} else {
// line 191
echo " Quantity
";
}
// line 193
echo " </li>
<li class=\"ec-cartHeader__label\">
";
// line 195
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 195, $this->source); })()) == false)) {
// line 196
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.subtotal"), "html", null, true);
echo "
";
} else {
// line 198
echo " Subtotal
";
}
// line 200
echo " </li>
</ol>
";
// line 202
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, false, 202));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 203
echo " ";
$context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, false, 203);
// line 204
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.', 204, $this->source); })()), "Product", [], "any", false, false, false, 204);
// line 205
echo " <ul class=\"ec-cartRow\">
<li class=\"ec-cartRow__delColumn\">
";
// line 207
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 207, $this->source); })()) == false)) {
// line 208
echo " <a href=\"";
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.', 208, $this->source); })()), "id", [], "any", false, false, false, 208)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<img src=\"";
// line 209
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html", null, true);
echo "\" alt=\"delete\">
</a>
";
} else {
// line 212
echo " <a href=\"";
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.', 212, $this->source); })()), "id", [], "any", false, false, false, 212)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"ec-icon\" data-method=\"put\" data-message=\"Are you sure you want to remove the item from your cart?\">
<img src=\"";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross.svg"), "html", null, true);
echo "\" alt=\"delete\">
</a>
";
}
// line 216
echo " </li>
<li class=\"ec-cartRow__contentColumn\">
<div class=\"ec-cartRow__img\">
<a target=\"_blank\" href=\"";
// line 219
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.', 219, $this->source); })()), "id", [], "any", false, false, false, 219)]), "html", null, true);
echo "\">
<img src=\"";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 220, $this->source); })()), "MainListImage", [], "any", false, false, false, 220)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, 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.', 220, $this->source); })()), "name", [], "any", false, false, false, 220), "html", null, true);
echo "\"/>
</a>
</div>
<div class=\"ec-cartRow__summary\">
<div class=\"ec-cartRow__name\">
<a target=\"_blank\" href=\"";
// line 225
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.', 225, $this->source); })()), "id", [], "any", false, false, false, 225)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 225, $this->source); })()), "name", [], "any", false, false, false, 225), "html", null, true);
echo "</a>
";
// line 226
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.', 226, $this->source); })()), "ClassCategory1", [], "any", false, false, false, 226) && 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.', 226, $this->source); })()), "ClassCategory1", [], "any", false, false, false, 226), "id", [], "any", false, false, false, 226))) {
// line 227
echo " <br>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 227, $this->source); })()), "ClassCategory1", [], "any", false, false, false, 227), "ClassName", [], "any", false, false, false, 227), "name", [], "any", false, false, false, 227), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, 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.', 227, $this->source); })()), "ClassCategory1", [], "any", false, false, false, 227), "html", null, true);
echo "
";
}
// line 229
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.', 229, $this->source); })()), "ClassCategory2", [], "any", false, false, false, 229) && 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.', 229, $this->source); })()), "ClassCategory2", [], "any", false, false, false, 229), "id", [], "any", false, false, false, 229))) {
// line 230
echo " <br>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ProductClass"]) || array_key_exists("ProductClass", $context) ? $context["ProductClass"] : (function () { throw new RuntimeError('Variable "ProductClass" does not exist.', 230, $this->source); })()), "ClassCategory2", [], "any", false, false, false, 230), "ClassName", [], "any", false, false, false, 230), "name", [], "any", false, false, false, 230), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, 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.', 230, $this->source); })()), "ClassCategory2", [], "any", false, false, false, 230), "html", null, true);
echo "
";
}
// line 232
echo " </div>
<div class=\"ec-cartRow__unitPrice\">";
// line 233
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, false, 233)), "html", null, true);
echo "</div>
<div class=\"ec-cartRow__sutbtotalSP\">
";
// line 235
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 235, $this->source); })()) == false)) {
// line 236
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.subtotal__with_separator"), "html", null, true);
echo "
";
} else {
// line 238
echo " <span style=\"font-size: 10px;\">Subtotal:</span>
";
}
// line 240
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, false, 240)), "html", null, true);
echo "
</div>
</div>
</li>
<li class=\"ec-cartRow__amountColumn\">
<div class=\"ec-cartRow__amount\">";
// line 245
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, false, 245)), "html", null, true);
echo "</div>
<div class=\"ec-cartRow__amountSP\">
";
// line 247
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 247, $this->source); })()) == false)) {
// line 248
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity__with_separator"), "html", null, true);
echo "
";
} else {
// line 250
echo " <span style=\"font-size: 10px;\">Quantity:</span><br>
";
}
// line 252
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, false, 252)), "html", null, true);
echo "
</div>
<div class=\"ec-cartRow__amountUpDown\">
";
// line 255
if ((twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, false, 255) > 1)) {
// line 256
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.', 256, $this->source); })()), "id", [], "any", false, false, false, 256)]), "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 257
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 260
echo " <div class=\"ec-cartRow__amountDownButtonDisabled\">
<span class=\"ec-cartRow__amountDownButton__icon\"><img src=\"";
// line 261
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 264
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.', 264, $this->source); })()), "id", [], "any", false, false, false, 264)]), "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 265
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>
</li>
<li class=\"ec-cartRow__subtotalColumn\">
<div class=\"ec-cartRow__sutbtotal\">";
// line 270
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["CartItem"], "total_price", [], "any", false, false, false, 270)), "html", null, true);
echo "</div>
</li>
</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 274
echo " </div>
</div>
<div class=\"ec-cartRole__progress\">
";
// line 277
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.', 277, $this->source); })()), "delivery_free_amount", [], "any", false, false, false, 277) && 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.', 277, $this->source); })()), "delivery_free_quantity", [], "any", false, false, false, 277))) {
// line 278
echo " <br/>
";
// line 279
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.', 279, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 279, $this->source); })()), [], "array", false, false, false, 279)) {
// line 280
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
";
} else {
// line 282
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__price_and_quantity", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 282, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 282, $this->source); })()), [], "array", false, false, false, 282)), "%quantity%" => twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 282, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 282, $this->source); })()), [], "array", false, false, false, 282))]);
echo "
";
}
// line 284
echo " ";
} 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.', 284, $this->source); })()), "delivery_free_amount", [], "any", false, false, false, 284)) {
// line 285
echo " <br/>
";
// line 286
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.', 286, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 286, $this->source); })()), [], "array", false, false, false, 286)) {
// line 287
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
";
} else {
// line 289
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__price", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["least"]) || array_key_exists("least", $context) ? $context["least"] : (function () { throw new RuntimeError('Variable "least" does not exist.', 289, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 289, $this->source); })()), [], "array", false, false, false, 289))]);
echo "
";
}
// line 291
echo " ";
} 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.', 291, $this->source); })()), "delivery_free_quantity", [], "any", false, false, false, 291)) {
// line 292
echo " <br/>
";
// line 293
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.', 293, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 293, $this->source); })()), [], "array", false, false, false, 293)) {
// line 294
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
";
} else {
// line 296
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__quantity", ["%quantity%" => twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["quantity"]) || array_key_exists("quantity", $context) ? $context["quantity"] : (function () { throw new RuntimeError('Variable "quantity" does not exist.', 296, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 296, $this->source); })()), [], "array", false, false, false, 296))]);
echo "
";
}
// line 298
echo " ";
}
// line 299
echo " </div>
<div class=\"ec-cartRole__actions\">
<div class=\"ec-cartRole__total\">
";
// line 302
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 302, $this->source); })()) == false)) {
// line 303
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.total__with_separator"), "html", null, true);
echo "
";
} else {
// line 305
echo " Total:
";
}
// line 307
echo " <span class=\"ec-cartRole__totalAmount\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Cart"], "totalPrice", [], "any", false, false, false, 307)), "html", null, true);
echo "</span>
<span class=\"ec-cartRole__totalTax\">
";
// line 309
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 309, $this->source); })()) == false)) {
// line 310
echo " (税込)
";
} else {
// line 312
echo " (incl. tax)
";
}
// line 314
echo " </span>
</div>
<a class=\"ec-blockBtn--action\" href=\"";
// line 316
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.', 316, $this->source); })())]), "html", null, true);
echo "\">
";
// line 317
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 317, $this->source); })()) == false)) {
// line 318
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.checkout"), "html", null, true);
echo "
";
} else {
// line 320
echo " Proceed to checkout
";
}
// line 322
echo " </a>
";
// line 323
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 323)) {
// line 324
echo " <a class=\"ec-blockBtn--cancel\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
echo "\">
";
// line 325
if (((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 325, $this->source); })()) == false)) {
// line 326
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.continue"), "html", null, true);
echo "
";
} else {
// line 328
echo " Keep shopping
";
}
// line 330
echo " </a>
";
}
// line 332
echo " </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['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 334
echo " </form>
";
} else {
// line 336
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.', 336, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 337
echo " ";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, false, 337);
// line 338
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.', 338, $this->source); })()), "session", [], "any", false, false, false, 338), "flashbag", [], "any", false, false, false, 338), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 338, $this->source); })())) . ".request.error")], "method", false, false, false, 338));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 339
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 341
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 343
echo nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "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 348
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 349
echo " <div class=\"ec-role\">
<div class=\"ec-off3Grid\">
<div class=\"ec-off3Grid__cell\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 353
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 354
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["EnUser"]) || array_key_exists("EnUser", $context) ? $context["EnUser"] : (function () { throw new RuntimeError('Variable "EnUser" does not exist.', 354, $this->source); })())) ? ("There are currently no items in your cart.") : ("front.cart.no_items"))), "html", null, true);
echo "</div>
</div>
</div>
</div>
</div>
";
}
// line 360
echo " </div>
";
// line 366
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Cart/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 926 => 366, 923 => 360, 914 => 354, 910 => 353, 904 => 349, 898 => 348, 887 => 343, 882 => 341, 878 => 339, 873 => 338, 870 => 337, 865 => 336, 861 => 334, 846 => 332, 842 => 330, 838 => 328, 832 => 326, 830 => 325, 825 => 324, 823 => 323, 820 => 322, 816 => 320, 810 => 318, 808 => 317, 804 => 316, 800 => 314, 796 => 312, 792 => 310, 790 => 309, 784 => 307, 780 => 305, 774 => 303, 772 => 302, 767 => 299, 764 => 298, 758 => 296, 752 => 294, 750 => 293, 747 => 292, 744 => 291, 738 => 289, 732 => 287, 730 => 286, 727 => 285, 724 => 284, 718 => 282, 712 => 280, 710 => 279, 707 => 278, 705 => 277, 700 => 274, 690 => 270, 682 => 265, 675 => 264, 669 => 261, 666 => 260, 660 => 257, 653 => 256, 651 => 255, 644 => 252, 640 => 250, 634 => 248, 632 => 247, 627 => 245, 618 => 240, 614 => 238, 608 => 236, 606 => 235, 601 => 233, 598 => 232, 590 => 230, 587 => 229, 579 => 227, 577 => 226, 571 => 225, 561 => 220, 557 => 219, 552 => 216, 546 => 213, 539 => 212, 533 => 209, 526 => 208, 524 => 207, 520 => 205, 517 => 204, 514 => 203, 510 => 202, 506 => 200, 502 => 198, 496 => 196, 494 => 195, 490 => 193, 486 => 191, 480 => 189, 478 => 188, 474 => 186, 470 => 184, 464 => 182, 462 => 181, 458 => 179, 454 => 177, 448 => 175, 446 => 174, 439 => 169, 428 => 164, 423 => 162, 419 => 160, 414 => 159, 411 => 158, 394 => 157, 389 => 155, 386 => 154, 382 => 152, 380 => 149, 377 => 145, 375 => 144, 372 => 143, 364 => 138, 359 => 135, 357 => 134, 353 => 132, 347 => 130, 341 => 128, 339 => 127, 335 => 125, 332 => 124, 321 => 119, 316 => 117, 312 => 115, 307 => 114, 290 => 110, 284 => 108, 278 => 106, 276 => 105, 271 => 103, 267 => 101, 264 => 100, 246 => 99, 244 => 98, 238 => 94, 234 => 92, 228 => 90, 226 => 89, 222 => 87, 219 => 86, 213 => 82, 209 => 80, 203 => 78, 201 => 77, 197 => 75, 194 => 74, 188 => 70, 184 => 68, 178 => 66, 176 => 65, 172 => 63, 169 => 62, 165 => 60, 160 => 57, 156 => 55, 150 => 53, 148 => 52, 144 => 50, 141 => 49, 137 => 47, 135 => 46, 131 => 44, 127 => 42, 121 => 40, 119 => 39, 115 => 37, 112 => 36, 108 => 34, 106 => 33, 96 => 26, 91 => 23, 88 => 22, 85 => 21, 82 => 20, 79 => 19, 76 => 18, 74 => 17, 71 => 16, 61 => 15, 50 => 11, 48 => 13, 35 => 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 %}
{% set showProduct = true %}
{% if ChainStore %}
{% if ChainStore.ContractType.show_product != 'Y' %}
{% set showProduct = false %}
{% endif %}
{% endif %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>{{ 'front.cart.title'|trans }}</h1>
</div>
</div>
<div class=\"ec-cartRole\">
<div class=\"ec-cartRole__progress\">
<ul class=\"ec-progress\">
{% set step = 1 %}
<li class=\"ec-progress__item is-complete\">
<div class=\"ec-progress__number\">
{{ step }}{% set step = step + 1 %}
</div>
<div class=\"ec-progress__label\">
{% if EnUser == false %}
{{ 'front.cart.nav__cart_items'|trans }}
{% else %}
Cart
{% endif %}
</div>
</li>
{% if is_granted('ROLE_USER') == false %}
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
{{ step }}{% set step = step + 1 %}
</div>
<div class=\"ec-progress__label\">
{% if EnUser == false %}
{{ 'front.cart.nav__customer_info'|trans }}
{% else %}
Customer<br>information
{% endif %}
</div>
</li>
{% endif %}
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
{{ step }}{% set step = step + 1 %}
</div>
<div class=\"ec-progress__label\">
{% if EnUser == false %}
{{ 'front.cart.nav__order'|trans }}
{% else %}
Payment<br>options
{% endif %}
</div>
</li>
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
{{ step }}{% set step = step + 1 %}
</div>
<div class=\"ec-progress__label\">
{% if EnUser == false %}
{{ 'front.cart.nav__confirm'|trans }}
{% else %}
Order<br>summary
{% endif %}
</div>
</li>
<li class=\"ec-progress__item\">
<div class=\"ec-progress__number\">
{{ step }}{% set step = step + 1 %}
</div>
<div class=\"ec-progress__label\">
{% if EnUser == false %}
{{ 'front.cart.nav__complete'|trans }}
{% else %}
Confirmation
{% endif %}
</div>
</li>
</ul>
</div>
{% 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 and showProduct %}
<div class=\"ec-cartRole__totalText\">
<p>
{% if EnUser == false %}
{{ 'front.cart.total_price'|trans({ '%price%': totalPrice|price })|raw }}
{% else %}
Your order total is {{ totalPrice|price }}.
{% endif %}
</p>
</div>
{% if Carts|length > 1 %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
{{ 'front.cart.divide_cart'|trans|nl2br }}
</div>
</div>
</div>
{% endif %}
{% if ChainStore == false %}
<div class=\"ec-cartRole__text\">
{#
<p>配送日指定のない場合、3〜5営業日程度で発送いたします。<br>(土日祝日を除く)</p>
#}
{#
<p>夏季休業に伴い8/8(火)以降のご注文は<br>8/17(木)以降に順次発送いたします。</p>
#}
</div>
{% endif %}
<form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"{{ url('cart') }}\">
{% 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 %}
<div class=\"ec-cartRole__cart\">
<div class=\"ec-cartTable\">
<ol class=\"ec-cartHeader\">
<li class=\"ec-cartHeader__label\">
{% if EnUser == false %}
{{ 'front.cart.delete'|trans }}
{% else %}
Remove<br>Item
{% endif %}
</li>
<li class=\"ec-cartHeader__label\">
{% if EnUser == false %}
{{ 'front.cart.product'|trans }}
{% else %}
Product Info
{% endif %}
</li>
<li class=\"ec-cartHeader__label\">
{% if EnUser == false %}
{{ 'common.quantity'|trans }}
{% else %}
Quantity
{% endif %}
</li>
<li class=\"ec-cartHeader__label\">
{% if EnUser == false %}
{{ 'common.subtotal'|trans }}
{% else %}
Subtotal
{% endif %}
</li>
</ol>
{% for CartItem in Cart.CartItems %}
{% set ProductClass = CartItem.ProductClass %}
{% set Product = ProductClass.Product %}
<ul class=\"ec-cartRow\">
<li class=\"ec-cartRow__delColumn\">
{% if EnUser == false %}
<a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
<img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
</a>
{% else %}
<a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"ec-icon\" data-method=\"put\" data-message=\"Are you sure you want to remove the item from your cart?\">
<img src=\"{{ asset('assets/icon/cross.svg') }}\" alt=\"delete\">
</a>
{% endif %}
</li>
<li class=\"ec-cartRow__contentColumn\">
<div class=\"ec-cartRow__img\">
<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 class=\"ec-cartRow__summary\">
<div class=\"ec-cartRow__name\">
<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">{{ Product.name }}</a>
{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
<br>{{ ProductClass.ClassCategory1.ClassName.name }}:{{ ProductClass.ClassCategory1 }}
{% endif %}
{% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
<br>{{ ProductClass.ClassCategory2.ClassName.name }}:{{ ProductClass.ClassCategory2 }}
{% endif %}
</div>
<div class=\"ec-cartRow__unitPrice\">{{ CartItem.price|price }}</div>
<div class=\"ec-cartRow__sutbtotalSP\">
{% if EnUser == false %}
{{ 'common.subtotal__with_separator'|trans }}
{% else %}
<span style=\"font-size: 10px;\">Subtotal:</span>
{% endif %}
{{ CartItem.total_price|price }}
</div>
</div>
</li>
<li class=\"ec-cartRow__amountColumn\">
<div class=\"ec-cartRow__amount\">{{ CartItem.quantity|number_format }}</div>
<div class=\"ec-cartRow__amountSP\">
{% if EnUser == false %}
{{ 'common.quantity__with_separator'|trans }}
{% else %}
<span style=\"font-size: 10px;\">Quantity:</span><br>
{% endif %}
{{ CartItem.quantity|number_format }}
</div>
<div class=\"ec-cartRow__amountUpDown\">
{% 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>
</li>
<li class=\"ec-cartRow__subtotalColumn\">
<div class=\"ec-cartRow__sutbtotal\">{{ CartItem.total_price|price }}</div>
</li>
</ul>
{% endfor %}
</div>
</div>
<div class=\"ec-cartRole__progress\">
{% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
<br/>
{% if is_delivery_free[cartKey] %}
{{ 'front.cart.delivery_fee_free__now'|trans }}
{% else %}
{{ 'front.cart.delivery_fee_free__price_and_quantity'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
{% endif %}
{% elseif BaseInfo.delivery_free_amount %}
<br/>
{% if is_delivery_free[cartKey] %}
{{ 'front.cart.delivery_fee_free__now'|trans }}
{% else %}
{{ 'front.cart.delivery_fee_free__price'|trans({ '%price%': least[cartKey]|price })|raw }}
{% endif %}
{% elseif BaseInfo.delivery_free_quantity %}
<br/>
{% if is_delivery_free[cartKey] %}
{{ 'front.cart.delivery_fee_free__now'|trans }}
{% else %}
{{ 'front.cart.delivery_fee_free__quantity'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
{% endif %}
{% endif %}
</div>
<div class=\"ec-cartRole__actions\">
<div class=\"ec-cartRole__total\">
{% if EnUser == false %}
{{ 'common.total__with_separator'|trans }}
{% else %}
Total:
{% endif %}
<span class=\"ec-cartRole__totalAmount\">{{ Cart.totalPrice|price }}</span>
<span class=\"ec-cartRole__totalTax\">
{% if EnUser == false %}
(税込)
{% else %}
(incl. tax)
{% endif %}
</span>
</div>
<a class=\"ec-blockBtn--action\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">
{% if EnUser == false %}
{{ 'front.cart.checkout'|trans }}
{% else %}
Proceed to checkout
{% endif %}
</a>
{% if loop.last %}
<a class=\"ec-blockBtn--cancel\" href=\"{{ path('product_list') }}\">
{% if EnUser == false %}
{{ 'front.cart.continue'|trans }}
{% else %}
Keep shopping
{% endif %}
</a>
{% endif %}
</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-off3Grid\">
<div class=\"ec-off3Grid__cell\">
<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\">{{ (EnUser ? 'There are currently no items in your cart.' : 'front.cart.no_items')|trans }}</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{#
<div class=\"ec-cartRole__notice\">
<p class=\"ec-cartRole__notice-text\">※クレジットカードをご使用の場合は、@cardservice.co.jpのドメインのEメールの受信設定をご確認お願いいたします。</p>
</div>
#}
{% endblock %}
", "Cart/index.twig", "/home/offshore2022/test-darcys-factory.xyz/public_html/app/template/default/Cart/index.twig");
}
}