<?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;
/* __string_template__bb22fd216c8edf9daac37647a26389f9 */
class __TwigTemplate_2a51070306a6fe743f28e11c06002e39 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'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", "__string_template__bb22fd216c8edf9daac37647a26389f9"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__bb22fd216c8edf9daac37647a26389f9"));
// line 13
$context["body_class"] = "cart_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__bb22fd216c8edf9daac37647a26389f9", 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_stylesheet($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", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo " <style>
\t\tselect {
\t\t\tpadding: 12px 16px;
\t\t\tborder: solid 1px #CCCCCC;
\t\t\tborder-radius: 3px;
\t\t\tfont-size: 14px;
\t\t\twidth: 234px;
\t\t}
@media (max-width: 768px) {
select {
\t\t\t padding: 8px 12px;
}
}
\t</style>
\t<style>
\t\t.heading:after {
\t\t\ttransition: transform 0.4s;
\t\t}
\t\t.heading.is-open:before {
\t\t\tcontent: '+';
\t\t\ttransform: rotate(-180deg);
\t\t}
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 41
public function block_javascript($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", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 42
echo " <script>
\t\t\$(function () {
\$('[id^=naire_]').change(function () {
var operation = \$(this).val();
var cartItemId = \$(this).data('id');
\$.ajax({
type: \"POST\",
headers: {
\"X-HTTP-Method-Override\": \"PUT\"
},
url: \"/cart/\" + operation + \"/\" + cartItemId,
}).done(function (data) {
location.reload();
}).fail(function (data) {
console.error(data);
});
});
\$('#naire').click(function () {
\$('.heading').toggleClass('is-open');
\$('#naire_description').slideToggle();
});
});
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
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 69
echo " <div class=\"w-[720px] md:w-full mx-auto pt-10 md:pt-4 md:px-4\">
<h1 class=\"text-2xl md:text-lg font-light mb-7 md:mb-5\">";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.title"), "html", null, true);
echo "</h1>
<div>
<div class=\"flex flex-col pb-9 border-b-2 border-[#CCC] md:pb-4\">
<h2 class=\"font-bold md:text-xs text-center mb-8 md:mb-6\">会員登録せずに、ご注文に進むこともできます。</h2>
<div class=\"flex flex-col justify-center items-center gap-2 w-full max-w-[592px] mx-auto\">
<div class=\"flex items-center w-full justify-between text-lg md:text-xs\">
<div class=\"w-11 h-11 bg-manakaProgress flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">1</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">2</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">3</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">4</p>
</div>
</div>
<div class=\"flex w-full items-center text-sm md:text-xs mx-auto max-w-[800px] justify-between text-[#666]\">
<p class=\" w-[26vw] pl-1 font-bold\">カート</p>
<p class=\"text-center w-[18vw] font-bold\">お客様情報入力</p>
<p class=\"text-end w-[27.8vw] font-bold\">ご注文手続き</p>
<p class=\"text-end w-[27.8vw] font-bold\">ご注文完了</p>
</div>
</div>
</div>
";
// line 100
$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.', 100, $this->source); })()), "session", [], "any", false, false, true, 100), "flashbag", [], "any", false, false, true, 100), "get", [0 => "eccube.front.request.product"], "method", false, false, true, 100);
// line 101
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.', 101, $this->source); })()), "session", [], "any", false, false, true, 101), "flashbag", [], "any", false, false, true, 101), "get", [0 => "eccube.front.request.error"], "method", false, false, true, 101));
$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 102
echo " ";
$context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 102);
// line 103
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 105
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 107
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.', 107, $this->source); })()), [], "array", true, true, true, 107)) {
// line 108
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 108, $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.', 108, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 108, $this->source); })()), [], "array", false, false, true, 108)]), "html", null, true));
echo "
";
} else {
// line 110
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 110, $this->source)), "html", null, true));
echo "
";
}
// line 112
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 116
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.', 116, $this->source); })()), "session", [], "any", false, false, true, 116), "flashbag", [], "any", false, false, true, 116), "get", [0 => "eccube.front.cart.error"], "method", false, false, true, 116));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 117
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 119
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 121
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 121, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo " ";
if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 126, $this->source); })()) > 0)) {
// line 127
echo " <form name=\"form\" id=\"form_cart\" class=\"ec-cartRole\" method=\"post\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
";
// line 128
$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.', 128, $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 129
echo " ";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 129);
// line 130
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.', 130, $this->source); })()), "session", [], "any", false, false, true, 130), "flashbag", [], "any", false, false, true, 130), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 130, $this->source); })())) . ".request.error")], "method", false, false, true, 130));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 131
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 133
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 135
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 135, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 140
echo " ";
$context["subTotalExcTax"] = 0;
// line 141
echo " ";
$context["naireTotalPrice"] = 0;
// line 142
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 142));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 143
echo " ";
$context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 143);
// line 144
echo "\t\t\t\t\t\t\t";
$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.', 144, $this->source); })()), "Product", [], "any", false, false, true, 144);
// line 145
echo " ";
$context["subTotalExcTax"] = ((isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 145, $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); })()), "price02", [], "any", false, false, true, 145) * twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 145)));
// line 146
echo " ";
$context["naireTotalPrice"] = ((isset($context["naireTotalPrice"]) || array_key_exists("naireTotalPrice", $context) ? $context["naireTotalPrice"] : (function () { throw new RuntimeError('Variable "naireTotalPrice" does not exist.', 146, $this->source); })()) + (twig_get_attribute($this->env, $this->source, $context["CartItem"], "option_price", [], "any", false, false, true, 146) * twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 146)));
// line 147
echo " <div class=\"flex gap-5 border-b-2 border-[#CCC] first:pb-6 py-6 last:pb-0 md:gap-0 md:justify-center md:py-4 first:md:pb-4\">
<a target=\"_blank\" href=\"";
// line 148
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.', 148, $this->source); })()), "id", [], "any", false, false, true, 148)]), "html", null, true);
echo "\" class=\"block w-full max-w-[151px] hover\">
<img src=\"";
// line 149
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.', 149, $this->source); })()), "MainListImage", [], "any", false, false, true, 149), 149, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 149, $this->source); })()), "name", [], "any", false, false, true, 149), 149, $this->source), "html", null, true);
echo "\" class=\"h-[151px] md:hidden\"/>
</a>
<ul class=\"w-full flex flex-col gap-3 text-[#666] whitespace-nowrap\">
<li class=\"flex justify-between md:gap-2\">
<img src=\"";
// line 153
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.', 153, $this->source); })()), "MainListImage", [], "any", false, false, true, 153), 153, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 153, $this->source); })()), "name", [], "any", false, false, true, 153), 153, $this->source), "html", null, true);
echo "\" class=\"hidden md:block w-[max(5.2vw,72px)] h-[72px]\"/>
<div class=\"w-full flex justify-between md:flex-col md:w-[calc(100%-80px)]\">
<div>
<a target=\"_blank\" href=\"";
// line 156
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.', 156, $this->source); })()), "id", [], "any", false, false, true, 156)]), "html", null, true);
echo "\" class=\"text-lg font-bold md:text-sm hover\">
";
// line 157
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 157, $this->source); })()), "name", [], "any", false, false, true, 157), 157, $this->source), "html", null, true);
echo "
</a>
<p class=\"text-lg font-bold md:text-sm\">価格: ";
// line 159
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, true, 159), 159, $this->source)), "html", null, true);
echo "円 (税込)</p>
</div>
<a href=\"";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("productoption_cart_handle_item", ["operation" => "remove", "cartItemId" => twig_get_attribute($this->env, $this->source, $context["CartItem"], "id", [], "any", false, false, true, 161)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"block w-[60px] md:w-[76px] h-9 pt-1 text-center border-2 border-[#DDD] hover md:ml-auto md:pt-2 md:text-xs\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
削除
</a>
</div>
</li>
";
// line 166
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.', 166, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 166) && 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.', 166, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 166), "id", [], "any", false, false, true, 166))) {
// line 167
echo " <li class=\"flex mt-3\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●カラー:</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">";
// line 169
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.', 169, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 169), 169, $this->source), "html", null, true);
echo "</p>
</li>
";
}
// line 172
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.', 172, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 172) && 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.', 172, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 172), "id", [], "any", false, false, true, 172))) {
// line 173
echo " <li class=\"flex\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●";
// line 174
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.', 174, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 174), "ClassName", [], "any", false, false, true, 174), "name", [], "any", false, false, true, 174), 174, $this->source), "html", null, true);
echo ":</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">";
// line 175
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.', 175, $this->source); })()), "ClassCategory2", [], "any", false, false, true, 175), 175, $this->source), "html", null, true);
echo "</p>
</li>
";
}
// line 178
echo " <li class=\"flex\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●数量:</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">";
// line 180
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, 180), 180, $this->source)), "html", null, true);
echo "点</p>
</li>
";
// line 182
$context["KAKEIHAI_ID"] = 129;
// line 183
echo " <div class=\"flex ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 183), "Product", [], "any", false, false, true, 183), "id", [], "any", false, false, true, 183) == (isset($context["KAKEIHAI_ID"]) || array_key_exists("KAKEIHAI_ID", $context) ? $context["KAKEIHAI_ID"] : (function () { throw new RuntimeError('Variable "KAKEIHAI_ID" does not exist.', 183, $this->source); })()))) {
echo " flex-col-reverse ";
} else {
echo " flex-col ";
}
echo " gap-4 md:gap-2\">
";
// line 184
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["CartItem"], "CartItemOptions", [], "any", false, false, true, 184));
foreach ($context['_seq'] as $context["_key"] => $context["CartItemOption"]) {
// line 185
echo " <li class=\"flex md:text-xs\">
<p class=\"font-bold w-1/5 md:text-xs md:w-2/5\">●";
// line 186
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItemOption"], "label", [], "any", false, false, true, 186), 186, $this->source), "html", null, true);
echo ":</p>
";
// line 187
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["CartItemOption"], "CartItemOptionCategories", [], "any", false, false, true, 187));
foreach ($context['_seq'] as $context["_key"] => $context["CartItemOptionCategory"]) {
// line 188
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItemOptionCategory"], "value", [], "any", false, false, true, 188), 188, $this->source), "html", null, true);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItemOptionCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 190
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItemOption'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 192
echo " </div>
</ul>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 196
echo " <div class=\"flex flex-col w-full mr-6 sm:mr-0 sm:justify-center sm:items-center\">
\t\t\t\t\t\t\t<div class=\"mt-6 md:my-4 mb-10 flex flex-col gap-2 sm:w-full md:text-sm font-bold text-[#666]\">
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>合計点数</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 200
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "quantity", [], "any", false, false, true, 200), 200, $this->source), "html", null, true);
echo "点</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>小計</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 204
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, ((isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 204, $this->source); })()) + (isset($context["naireTotalPrice"]) || array_key_exists("naireTotalPrice", $context) ? $context["naireTotalPrice"] : (function () { throw new RuntimeError('Variable "naireTotalPrice" does not exist.', 204, $this->source); })()))), "html", null, true);
echo "円</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>消費税(10%)</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 208
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["Cart"], "total_price", [], "any", false, false, true, 208) - (isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 208, $this->source); })())) - (isset($context["naireTotalPrice"]) || array_key_exists("naireTotalPrice", $context) ? $context["naireTotalPrice"] : (function () { throw new RuntimeError('Variable "naireTotalPrice" does not exist.', 208, $this->source); })()))), "html", null, true);
echo "円</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between items-center mt-1\">
\t\t\t\t\t\t\t\t\t<span>合計金額 (税込)</span>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<span class=\" text-manakaRed text-[28px] md:text-2xl\">";
// line 213
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "totalPrice", [], "any", false, false, true, 213), 213, $this->source)), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"text-sm\">円</span>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
";
// line 219
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.', 219, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 219) && 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.', 219, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 219))) {
// line 220
echo " <br/>
";
// line 221
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.', 221, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 221, $this->source); })()), [], "array", false, false, true, 221)) {
// line 222
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 224
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($this->sandbox->ensureToStringAllowed(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.', 224, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 224, $this->source); })()), [], "array", false, false, true, 224), 224, $this->source)), "%quantity%" => twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 224, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 224, $this->source); })()), [], "array", false, false, true, 224), 224, $this->source))]);
echo "
";
}
// line 226
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.', 226, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 226)) {
// line 227
echo " <br/>
";
// line 228
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.', 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)) {
// line 229
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 231
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__price", ["%price%" => $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(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.', 231, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 231, $this->source); })()), [], "array", false, false, true, 231), 231, $this->source))]);
echo "
";
}
// line 233
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.', 233, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 233)) {
// line 234
echo " <br/>
";
// line 235
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.', 235, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 235, $this->source); })()), [], "array", false, false, true, 235)) {
// line 236
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 238
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__quantity", ["%quantity%" => twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 238, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 238, $this->source); })()), [], "array", false, false, true, 238), 238, $this->source))]);
echo "
";
}
// line 240
echo " ";
}
// line 241
echo " <div class=\"ec-cartRole__actions flex flex-col gap-3\">
<a class=\"block text-lg text-center w-[300px] md:w-full py-4 text-white bg-[#333] hover mx-auto md:text-base font-light\" href=\"";
// line 242
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.', 242, $this->source); })())]), "html", null, true);
echo "\">
";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.checkout"), "html", null, true);
echo "
</a>
";
// line 245
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 245)) {
// line 246
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" class=\"block w-[300px] md:w-full mx-auto border-2 border-[#DDD] font-light text-lg text-center py-3 md:text-base hover\">お買い物を続ける</a>
";
}
// line 248
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 250
echo " </form>
";
} else {
// line 252
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.', 252, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
// line 253
echo " ";
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 253);
// line 254
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.', 254, $this->source); })()), "session", [], "any", false, false, true, 254), "flashbag", [], "any", false, false, true, 254), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 254, $this->source); })())) . ".request.error")], "method", false, false, true, 254));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 255
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 257
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 259
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 259, $this->source)), "html", null, true));
echo "
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 264
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 265
echo " <div class=\"flex flex-col gap-7 mt-[80px] mb-10\">
<img src=\"";
// line 266
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cart.svg"), "html", null, true);
echo "\" class=\"w-[77px] h-[77px] mx-auto\"/>
<p class=\"text-center font-bold md:text-sm\">現在、カートに<br>商品は入っておりません。</p>
</div>
<a href=\"";
// line 269
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" class=\"block w-[300px] md:w-full mx-auto border-2 border-[#DDD] font-light text-lg text-center py-3 md:text-base hover\">お買い物を続ける</a>
";
}
// line 271
echo " </div>
</div>
";
// line 273
$context["breadcrumbs"] = [0 => ["name" => "現在のカゴの中"]];
// line 274
echo " ";
$this->loadTemplate("Block/breadcrumbs.twig", "__string_template__bb22fd216c8edf9daac37647a26389f9", 274)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "__string_template__bb22fd216c8edf9daac37647a26389f9";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 695 => 274, 693 => 273, 689 => 271, 684 => 269, 678 => 266, 675 => 265, 669 => 264, 658 => 259, 653 => 257, 649 => 255, 644 => 254, 641 => 253, 636 => 252, 632 => 250, 617 => 248, 611 => 246, 609 => 245, 604 => 243, 600 => 242, 597 => 241, 594 => 240, 588 => 238, 582 => 236, 580 => 235, 577 => 234, 574 => 233, 568 => 231, 562 => 229, 560 => 228, 557 => 227, 554 => 226, 548 => 224, 542 => 222, 540 => 221, 537 => 220, 535 => 219, 526 => 213, 518 => 208, 511 => 204, 504 => 200, 498 => 196, 489 => 192, 482 => 190, 473 => 188, 469 => 187, 465 => 186, 462 => 185, 458 => 184, 449 => 183, 447 => 182, 442 => 180, 438 => 178, 432 => 175, 428 => 174, 425 => 173, 422 => 172, 416 => 169, 412 => 167, 410 => 166, 400 => 161, 395 => 159, 390 => 157, 386 => 156, 378 => 153, 369 => 149, 365 => 148, 362 => 147, 359 => 146, 356 => 145, 353 => 144, 350 => 143, 345 => 142, 342 => 141, 339 => 140, 328 => 135, 323 => 133, 319 => 131, 314 => 130, 311 => 129, 294 => 128, 289 => 127, 286 => 126, 275 => 121, 270 => 119, 266 => 117, 261 => 116, 244 => 112, 238 => 110, 232 => 108, 230 => 107, 225 => 105, 221 => 103, 218 => 102, 200 => 101, 198 => 100, 165 => 70, 162 => 69, 152 => 68, 118 => 42, 108 => 41, 75 => 16, 65 => 15, 54 => 11, 52 => 13, 39 => 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 stylesheet %}
<style>
\t\tselect {
\t\t\tpadding: 12px 16px;
\t\t\tborder: solid 1px #CCCCCC;
\t\t\tborder-radius: 3px;
\t\t\tfont-size: 14px;
\t\t\twidth: 234px;
\t\t}
@media (max-width: 768px) {
select {
\t\t\t padding: 8px 12px;
}
}
\t</style>
\t<style>
\t\t.heading:after {
\t\t\ttransition: transform 0.4s;
\t\t}
\t\t.heading.is-open:before {
\t\t\tcontent: '+';
\t\t\ttransform: rotate(-180deg);
\t\t}
\t</style>
{% endblock %}
{% block javascript %}
<script>
\t\t\$(function () {
\$('[id^=naire_]').change(function () {
var operation = \$(this).val();
var cartItemId = \$(this).data('id');
\$.ajax({
type: \"POST\",
headers: {
\"X-HTTP-Method-Override\": \"PUT\"
},
url: \"/cart/\" + operation + \"/\" + cartItemId,
}).done(function (data) {
location.reload();
}).fail(function (data) {
console.error(data);
});
});
\$('#naire').click(function () {
\$('.heading').toggleClass('is-open');
\$('#naire_description').slideToggle();
});
});
\t</script>
{% endblock %}
{% block main %}
<div class=\"w-[720px] md:w-full mx-auto pt-10 md:pt-4 md:px-4\">
<h1 class=\"text-2xl md:text-lg font-light mb-7 md:mb-5\">{{ 'front.cart.title'|trans }}</h1>
<div>
<div class=\"flex flex-col pb-9 border-b-2 border-[#CCC] md:pb-4\">
<h2 class=\"font-bold md:text-xs text-center mb-8 md:mb-6\">会員登録せずに、ご注文に進むこともできます。</h2>
<div class=\"flex flex-col justify-center items-center gap-2 w-full max-w-[592px] mx-auto\">
<div class=\"flex items-center w-full justify-between text-lg md:text-xs\">
<div class=\"w-11 h-11 bg-manakaProgress flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">1</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">2</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">3</p>
</div>
<div class=\"w-[33vw] flex-1 h-[6px] bg-[#CCC]\"></div>
<div class=\"w-11 h-11 bg-[#CCC] flex items-center justify-center rounded-full\">
<p class=\"text-white font-bold font-notoserif leading-none\">4</p>
</div>
</div>
<div class=\"flex w-full items-center text-sm md:text-xs mx-auto max-w-[800px] justify-between text-[#666]\">
<p class=\" w-[26vw] pl-1 font-bold\">カート</p>
<p class=\"text-center w-[18vw] font-bold\">お客様情報入力</p>
<p class=\"text-end w-[27.8vw] font-bold\">ご注文手続き</p>
<p class=\"text-end w-[27.8vw] font-bold\">ご注文完了</p>
</div>
</div>
</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 %}
<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 %}
{% set subTotalExcTax = 0 %}
{% set naireTotalPrice = 0 %}
{% for CartItem in Cart.CartItems %}
{% set ProductClass = CartItem.ProductClass %}
\t\t\t\t\t\t\t{% set Product = ProductClass.Product %}
{% set subTotalExcTax = subTotalExcTax + (ProductClass.price02 * CartItem.quantity) %}
{% set naireTotalPrice = naireTotalPrice + (CartItem.option_price * CartItem.quantity) %}
<div class=\"flex gap-5 border-b-2 border-[#CCC] first:pb-6 py-6 last:pb-0 md:gap-0 md:justify-center md:py-4 first:md:pb-4\">
<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\" class=\"block w-full max-w-[151px] hover\">
<img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" class=\"h-[151px] md:hidden\"/>
</a>
<ul class=\"w-full flex flex-col gap-3 text-[#666] whitespace-nowrap\">
<li class=\"flex justify-between md:gap-2\">
<img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" class=\"hidden md:block w-[max(5.2vw,72px)] h-[72px]\"/>
<div class=\"w-full flex justify-between md:flex-col md:w-[calc(100%-80px)]\">
<div>
<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\" class=\"text-lg font-bold md:text-sm hover\">
{{ Product.name }}
</a>
<p class=\"text-lg font-bold md:text-sm\">価格: {{ CartItem.price|number_format }}円 (税込)</p>
</div>
<a href=\"{{ url('productoption_cart_handle_item', {'operation': 'remove', 'cartItemId': CartItem.id }) }}\" {{ csrf_token_for_anchor() }} class=\"block w-[60px] md:w-[76px] h-9 pt-1 text-center border-2 border-[#DDD] hover md:ml-auto md:pt-2 md:text-xs\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
削除
</a>
</div>
</li>
{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
<li class=\"flex mt-3\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●カラー:</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">{{ ProductClass.ClassCategory1 }}</p>
</li>
{% endif %}
{% if ProductClass.ClassCategory2 and ProductClass.ClassCategory2.id %}
<li class=\"flex\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●{{ ProductClass.ClassCategory2.ClassName.name }}:</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">{{ ProductClass.ClassCategory2 }}</p>
</li>
{% endif %}
<li class=\"flex\">
<p class=\"w-2/5 font-bold md:text-xs md:w-2/5\">●数量:</p>
<p class=\"w-4/5 md:text-xs md:w-3/5\">{{ CartItem.quantity|number_format }}点</p>
</li>
{% set KAKEIHAI_ID = 129 %}
<div class=\"flex {% if CartItem.ProductClass.Product.id == KAKEIHAI_ID %} flex-col-reverse {% else %} flex-col {% endif %} gap-4 md:gap-2\">
{% for CartItemOption in CartItem.CartItemOptions %}
<li class=\"flex md:text-xs\">
<p class=\"font-bold w-1/5 md:text-xs md:w-2/5\">●{{ CartItemOption.label }}:</p>
{% for CartItemOptionCategory in CartItemOption.CartItemOptionCategories %}
{{ CartItemOptionCategory.value }}
{% endfor %}
</li>
{% endfor %}
</div>
</ul>
</div>
{% endfor %}
<div class=\"flex flex-col w-full mr-6 sm:mr-0 sm:justify-center sm:items-center\">
\t\t\t\t\t\t\t<div class=\"mt-6 md:my-4 mb-10 flex flex-col gap-2 sm:w-full md:text-sm font-bold text-[#666]\">
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>合計点数</span>
\t\t\t\t\t\t\t\t\t<span>{{ Cart.quantity }}点</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>小計</span>
\t\t\t\t\t\t\t\t\t<span>{{ (subTotalExcTax + naireTotalPrice)|number_format }}円</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span>消費税(10%)</span>
\t\t\t\t\t\t\t\t\t<span>{{ (Cart.total_price - subTotalExcTax - naireTotalPrice )|number_format }}円</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"flex justify-between items-center mt-1\">
\t\t\t\t\t\t\t\t\t<span>合計金額 (税込)</span>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<span class=\" text-manakaRed text-[28px] md:text-2xl\">{{ Cart.totalPrice|number_format }}</span>
\t\t\t\t\t\t\t\t\t\t<span class=\"text-sm\">円</span>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
{% 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 class=\"ec-cartRole__actions flex flex-col gap-3\">
<a class=\"block text-lg text-center w-[300px] md:w-full py-4 text-white bg-[#333] hover mx-auto md:text-base font-light\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">
{{ 'front.cart.checkout'|trans }}
</a>
{% if loop.last %}
<a href=\"{{ url('homepage') }}\" class=\"block w-[300px] md:w-full mx-auto border-2 border-[#DDD] font-light text-lg text-center py-3 md:text-base hover\">お買い物を続ける</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=\"flex flex-col gap-7 mt-[80px] mb-10\">
<img src=\"{{ asset('assets/icon/cart.svg') }}\" class=\"w-[77px] h-[77px] mx-auto\"/>
<p class=\"text-center font-bold md:text-sm\">現在、カートに<br>商品は入っておりません。</p>
</div>
<a href=\"{{ url('homepage') }}\" class=\"block w-[300px] md:w-full mx-auto border-2 border-[#DDD] font-light text-lg text-center py-3 md:text-base hover\">お買い物を続ける</a>
{% endif %}
</div>
</div>
{% set breadcrumbs = [{'name': '現在のカゴの中'}] %}
{% include('Block/breadcrumbs.twig') %}
{% endblock %}
", "__string_template__bb22fd216c8edf9daac37647a26389f9", "");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "for" => 101, "if" => 107, "include" => 274);
static $filters = array("escape" => 70, "trans" => 70, "nl2br" => 108, "no_image_product" => 149, "number_format" => 159, "raw" => 224, "price" => 224);
static $functions = array("asset" => 105, "url" => 127, "csrf_token_for_anchor" => 161, "path" => 242);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if', 'include'],
['escape', 'trans', 'nl2br', 'no_image_product', 'number_format', 'raw', 'price'],
['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;
}
}
}