<?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__04f96a7573e53bb468d7d5d5a15309bf */
class __TwigTemplate_e0ebc7f36c81f98c8ff4bcb508055a7e 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__04f96a7573e53bb468d7d5d5a15309bf"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__04f96a7573e53bb468d7d5d5a15309bf"));
// line 13
$context["body_class"] = "cart_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__04f96a7573e53bb468d7d5d5a15309bf", 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 "\t<style>
\t\tselect {
\t\t\tpadding: 16px 12px;
\t\t\tborder: solid 1px #CCCCCC;
\t\t\tborder-radius: 3px;
\t\t\tfont-size: 14px;
\t\t\twidth: 234px;
\t\t}
\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>
<style>
\t\t.slider .slick-list {
\t\t\toverflow: visible;
\t\t\tpadding: 0;
\t\t}
\t\t.slider {
\t\t\tmax-width: 800px;
\t\t\tmax-height: auto !important;
\t\t}
\t\t.slick-dots {
\t\t\tdisplay: flex;
\t\t\talign-items: center;
\t\t\tjustify-content: center;
\t\t\tgap: 16px;
\t\t\tmargin-top: -120px;
\t\t}
\t\t.slick-dots li {
\t\t\tlist-style-type: none;
\t\t\twidth: 8px;
height: 8px;
\t\t\tborder-radius: 50%;
\t\t\tcursor: pointer;
\t\t}
\t\t.slick-dots li {
\t\t\twidth: 8px;
\t\t\theight: 8px;
\t\t\tborder-radius: 50%;
\t\t\tborder: solid 1px;
\t\t\tborder-color: #2F2725;
\t\t}
\t\t.slick-dots li.slick-active {
\t\t\tbackground: #2F2725;
\t\t}
.slick-dots button{
opacity:0;
}
\t</style>
\t\t";
// line 71
if ((twig_length_filter($this->env, (isset($context["RelatedProducts"]) || array_key_exists("RelatedProducts", $context) ? $context["RelatedProducts"] : (function () { throw new RuntimeError('Variable "RelatedProducts" does not exist.', 71, $this->source); })())) == 2)) {
// line 72
echo " <style>
.slider {
max-width: 725px;
max-height: auto !important;
}
</style>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 81
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 82
echo "\t<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>
";
// line 106
if ((twig_length_filter($this->env, (isset($context["RelatedProducts"]) || array_key_exists("RelatedProducts", $context) ? $context["RelatedProducts"] : (function () { throw new RuntimeError('Variable "RelatedProducts" does not exist.', 106, $this->source); })())) >= 3)) {
// line 107
echo " <script>
\$(document).ready(function () {
\$('.slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
dotsClass: \"slick-dots\",
centerMode: true,
variableWidth: true,
autoplay: true,
autoplaySpeed: 2500,
speed: 1000,
focusOnSelect: true,
infinite: true
});
});
</script>
";
} elseif ((twig_length_filter($this->env, // line 124
(isset($context["RelatedProducts"]) || array_key_exists("RelatedProducts", $context) ? $context["RelatedProducts"] : (function () { throw new RuntimeError('Variable "RelatedProducts" does not exist.', 124, $this->source); })())) == 2)) {
// line 125
echo " <script>
\$(document).ready(function () {
\$('.slider').slick({
slidesToShow: 2,
slidesToScroll: 2,
dots: true,
dotsClass: \"slick-dots\",
variableWidth: true,
focusOnSelect: true,
responsive: [{
breakpoint: 1000,
settings:{
slidesToShow: 1,
slidesToScroll: 1,
},
} ]
});
});
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 147
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 148
echo "
\t<div class=\"pb-20 lg:px-6 whitespace-nowrap bg-background-default w-full items-center justify-center flex-col flex\">
\t\t<div class=\"w-full\">
\t\t\t<div class=\"flex gap-4 md:gap-2 items-start mx-auto w-full pl-[10.625vw] md:pl-6 pt-[120px] md:pt-20 pb-10\">
\t\t\t\t<hr class=\"md:h-[64px] h-[120px] w-[2px] bg-gradient-to-b from-[#ADAAA6] to-[#F0EDE900] border-none\">
\t\t\t\t<h1 class=\"text-2xl md:text-xl font-light leading-9 tracking-widest\">ショッピングカート</h1>
\t\t\t</div>
\t\t\t";
// line 155
$context["breadcrumbs"] = [0 => ["name" => "ショッピングカート"]];
// line 156
echo "\t\t\t";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/breadcrumb.twig");
echo "
\t\t</div>
\t\t<p class=\"mb-10 text-sm w-full md:pl-6 pl-[10.625vw]\">会員登録せずにご注文に進むこともできます。</p>
\t\t<div class=\"flex flex-col justify-center items-center gap-2 w-full max-w-[592px] mx-auto mb-20\">
\t\t\t<div class=\"flex items-center w-full justify-between\">
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-sub-blue flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white font-bold font-notoserif leading-none\">1</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">2</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">3</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">4</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"flex w-full items-center text-base md:text-xs mx-auto max-w-[800px] justify-between\">
\t\t\t\t<p class=\"w-[27.8vw] pl-[10px] font-bold\">カート</p>
\t\t\t\t<p class=\"text-center ml-[-1.87vw]\">お客様情報入力</p>
\t\t\t\t<p class=\"text-end w-[27.8vw] \">ご注文手続き</p>
\t\t\t\t<p class=\"text-end w-[27.8vw] mr-[-12px]\">ご注文完了</p>
\t\t\t</div>
\t\t</div>
<div class=\"max-w-[1008px] w-full flex flex-col items-center justify-center mx-6 sm:mx-0\">
";
// line 186
$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.', 186, $this->source); })()), "session", [], "any", false, false, true, 186), "flashbag", [], "any", false, false, true, 186), "get", [0 => "eccube.front.request.product"], "method", false, false, true, 186);
// line 187
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.', 187, $this->source); })()), "session", [], "any", false, false, true, 187), "flashbag", [], "any", false, false, true, 187), "get", [0 => "eccube.front.request.error"], "method", false, false, true, 187));
$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 188
echo " ";
$context["idx"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 188);
// line 189
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 191
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 193
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.', 193, $this->source); })()), [], "array", true, true, true, 193)) {
// line 194
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 194, $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.', 194, $this->source); })()), (isset($context["idx"]) || array_key_exists("idx", $context) ? $context["idx"] : (function () { throw new RuntimeError('Variable "idx" does not exist.', 194, $this->source); })()), [], "array", false, false, true, 194)]), "html", null, true));
echo "
";
} else {
// line 196
echo " ";
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 196, $this->source)), "html", null, true));
echo "
";
}
// line 198
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 202
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.', 202, $this->source); })()), "session", [], "any", false, false, true, 202), "flashbag", [], "any", false, false, true, 202), "get", [0 => "eccube.front.cart.error"], "method", false, false, true, 202));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 203
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__icon\"><img src=\"";
// line 205
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 207
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 207, $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 212
echo " ";
if (((isset($context["totalQuantity"]) || array_key_exists("totalQuantity", $context) ? $context["totalQuantity"] : (function () { throw new RuntimeError('Variable "totalQuantity" does not exist.', 212, $this->source); })()) > 0)) {
// line 213
echo " <hr class=\"w-full bg-sub-beige-pale h-[1px] border-none max-w-[1008px] mx-auto\">
";
// line 214
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.', 214, $this->source); })())) > 1)) {
// line 215
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
";
// line 218
echo twig_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 223
echo "
<form name=\"form\" id=\"form_cart\" class=\"w-full flex flex-col items-center justify-center\" method=\"post\" action=\"";
// line 224
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
\t\t\t\t\t";
// line 225
$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.', 225, $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"]) {
$context["message"] = $this->extensions['Plugin\Productset42\Service\Twig\NonStockErrorMessageFunction']->getFunction($this->sandbox->ensureToStringAllowed($context["Cart"], 225, $this->source));
// line 226
echo "
";
// line 227
if ( !twig_test_empty((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 227, $this->source); })()))) {
// line 228
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
";
// line 231
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 231, $this->source); })()), 231, $this->source), "html", null, true);
echo "
</div>
</div>
</div>
";
}
// line 236
echo "
<script>
\$(function () {
";
// line 239
if ( !twig_test_empty((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 239, $this->source); })()))) {
// line 240
echo " \$('.ec-cartRole__actions').find('.ec-blockBtn--action').css('display', 'none');
";
}
// line 242
echo " });
</script>
\t\t\t\t\t\t";
// line 244
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 244);
// line 245
echo "\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 245, $this->source); })()), "session", [], "any", false, false, true, 245), "flashbag", [], "any", false, false, true, 245), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 245, $this->source); })())) . ".request.error")], "method", false, false, true, 245));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 246
echo "\t\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t\t<img src=\"";
// line 248
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t\t";
// line 250
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 250, $this->source)), "html", null, true));
echo "
\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";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 255
echo "\t\t\t\t\t\t";
$context["subTotalExcTax"] = 0;
// line 256
echo "\t\t\t\t\t\t<div class=\"w-full flex flex-col items-center justify-center my-10 gap-10\">
\t\t\t\t\t\t\t<ul class=\"flex gap-10 flex-col justify-center max-w-[800px] w-full \">
\t\t\t\t\t\t\t\t";
// line 258
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Cart"], "CartItems", [], "any", false, false, true, 258));
foreach ($context['_seq'] as $context["_key"] => $context["CartItem"]) {
// line 259
echo "\t\t\t\t\t\t\t\t\t";
$context["ProductClass"] = twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 259);
// line 260
echo "\t\t\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.', 260, $this->source); })()), "Product", [], "any", false, false, true, 260);
// line 261
echo "\t\t\t\t\t\t\t\t\t";
$context["subTotalExcTax"] = ((isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 261, $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.', 261, $this->source); })()), "price02", [], "any", false, false, true, 261) * twig_get_attribute($this->env, $this->source, $context["CartItem"], "quantity", [], "any", false, false, true, 261)));
// line 262
echo "\t\t\t\t\t\t\t\t\t<li class=\"w-full flex gap-4 md:gap-5 md:flex-col justify-between\">
\t\t\t\t\t\t\t\t\t\t<div class=\"flex gap-4 md:flex-col\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:flex md:flex-col md:w-full md:items-end md:justify-end\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:flex md:gap-3 md:w-full\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"hover\" target=\"_blank\" href=\"";
// line 266
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.', 266, $this->source); })()), "id", [], "any", false, false, true, 266)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 267
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.', 267, $this->source); })()), "MainListImage", [], "any", false, false, true, 267), 267, $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.', 267, $this->source); })()), "name", [], "any", false, false, true, 267), 267, $this->source), "html", null, true);
echo "\" class=\"w-[176px] h-[176px] md:h-[60px] md:w-[60px] aspect-square\">
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
// line 270
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.', 270, $this->source); })()), "id", [], "any", false, false, true, 270)]), "html", null, true);
echo "\" class=\"hidden md:block leading-9 text-sm\">";
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.', 270, $this->source); })()), "name", [], "any", false, false, true, 270), 270, $this->source), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-medium hidden md:block text-sm\">価格:";
// line 271
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "price", [], "any", false, false, true, 271), 271, $this->source)), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 274
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.', 274, $this->source); })()), "id", [], "any", false, false, true, 274)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"text-sm leading-4 text-sub-blue border-b border-sub-blue w-fit hidden md:block hover\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
\t\t\t\t\t\t\t\t\t\t\t\t\t削除する
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"w-[400px] md:w-full text-sm leading-9 tracking-wider lg:mr-0\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
// line 280
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.', 280, $this->source); })()), "id", [], "any", false, false, true, 280)]), "html", null, true);
echo "\" class=\"md:hidden\">";
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.', 280, $this->source); })()), "name", [], "any", false, false, true, 280), 280, $this->source), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<dl class=\"font-medium flex-col flex\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">価格:</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-normal\">";
// line 284
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, 284), 284, $this->source)), "html", null, true);
echo "円 (税込)</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 286
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.', 286, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 286) && 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.', 286, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 286), "id", [], "any", false, false, true, 286))) {
// line 287
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-medium flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">";
// line 288
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.', 288, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 288), "ClassName", [], "any", false, false, true, 288), "name", [], "any", false, false, true, 288), 288, $this->source), "html", null, true);
echo ":</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>";
// line 289
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.', 289, $this->source); })()), "ClassCategory1", [], "any", false, false, true, 289), 289, $this->source), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 292
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">";
// line 293
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.quantity__with_separator"), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-normal\">";
// line 294
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, 294), 294, $this->source)), "html", null, true);
echo "点</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex mt-2 mb-10 items-center gap-6 md:gap-4\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 298
if (( !(null === $context["CartItem"]) && 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, 298), "Product", [], "any", false, false, true, 298), "isNaireProduct", [], "any", false, false, true, 298))) {
// line 299
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"font-medium md:w-[72px]\">名入れ:</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"naire\" id=\"naire_";
// line 300
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "id", [], "any", false, false, true, 300), 300, $this->source), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CartItem"], "id", [], "any", false, false, true, 300), 300, $this->source), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"naire_true\" ";
// line 301
if (twig_get_attribute($this->env, $this->source, $context["CartItem"], "naire", [], "any", false, false, true, 301)) {
echo "selected";
}
echo ">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tあり</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"naire_false\" ";
// line 303
if ( !twig_get_attribute($this->env, $this->source, $context["CartItem"], "naire", [], "any", false, false, true, 303)) {
echo "selected";
}
echo ">なし</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 306
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 307
if (twig_get_attribute($this->env, $this->source, $context["CartItem"], "naire", [], "any", false, false, true, 307)) {
// line 308
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-start\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"naire\" class=\"w-full flex items-center justify-between hover\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"flex items-center hover gap-1 mb-4\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t名入れの仕様について
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"heading before:content-['-'] text-xl pb-3\"></p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"naire_description\">
<div class=\"grid ";
// line 316
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["CartItem"], "ProductClass", [], "any", false, false, true, 316), "Product", [], "any", false, false, true, 316), "ProductNaireImages", [], "any", false, false, true, 316)) > 1)) {
echo "grid-cols-2";
}
echo " gap-4 items-center\">
";
// line 317
$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, $context["CartItem"], "ProductClass", [], "any", false, false, true, 317), "Product", [], "any", false, false, true, 317), "ProductNaireImages", [], "any", false, false, true, 317));
$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["ProductNaireImage"]) {
// line 318
echo " <img src=\"";
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, $context["ProductNaireImage"], "file_name", [], "any", false, false, true, 318), 318, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, $context["ProductNaireImage"], "alt_text", [], "any", true, true, true, 318) && !(null === twig_get_attribute($this->env, $this->source, $context["ProductNaireImage"], "alt_text", [], "any", false, false, true, 318)))) ? (twig_get_attribute($this->env, $this->source, $context["ProductNaireImage"], "alt_text", [], "any", false, false, true, 318)) : ("名入れ画像")) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 318), 318, $this->source)), "html", null, true);
echo "\" class=\"mb-4 h-[192px] w-auto md:h-[159px]\">
";
++$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['ProductNaireImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 320
echo " </div>
<p class=\"mb-4 whitespace-normal text-sm leading-7 tracking-wider font-normal\">";
// line 321
echo twig_nl2br(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.', 321, $this->source); })()), "naire_content", [], "any", false, false, true, 321), 321, $this->source), "html", null, true));
echo "</p>
</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 325
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</dl>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 330
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.', 330, $this->source); })()), "id", [], "any", false, false, true, 330)]), "html", null, true);
echo "\" ";
echo $this->extensions['Eccube\Twig\Extension\CsrfExtension']->getCsrfTokenForAnchor();
echo " class=\"text-sm text-sub-blue border-b border-sub-blue leading-4 md:hidden h-fit w-fit mt-[72px] hover\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
\t\t\t\t\t\t\t\t\t\t\t削除する</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CartItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 334
echo "\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<hr
\t\t\t\t\t\tclass=\"w-full bg-sub-beige-pale h-[1px] border-none\">
\t\t\t\t\t\t<div class=\"ec-cartRole__progress\">
\t\t\t\t\t\t\t";
// line 339
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.', 339, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 339) && 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.', 339, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 339))) {
// line 340
echo "\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t";
// line 341
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.', 341, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 341, $this->source); })()), [], "array", false, false, true, 341)) {
// line 342
echo "\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t";
} else {
// line 344
echo "\t\t\t\t\t\t\t\t\t";
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.', 344, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 344, $this->source); })()), [], "array", false, false, true, 344), 344, $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.', 344, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 344, $this->source); })()), [], "array", false, false, true, 344), 344, $this->source))]);
echo "
\t\t\t\t\t\t\t\t";
}
// line 346
echo "\t\t\t\t\t\t\t";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 346, $this->source); })()), "delivery_free_amount", [], "any", false, false, true, 346)) {
// line 347
echo "\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t";
// line 348
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.', 348, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 348, $this->source); })()), [], "array", false, false, true, 348)) {
// line 349
echo "\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t";
} else {
// line 351
echo "\t\t\t\t\t\t\t\t\t";
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.', 351, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 351, $this->source); })()), [], "array", false, false, true, 351), 351, $this->source))]);
echo "
\t\t\t\t\t\t\t\t";
}
// line 353
echo "\t\t\t\t\t\t\t";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 353, $this->source); })()), "delivery_free_quantity", [], "any", false, false, true, 353)) {
// line 354
echo "\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t";
// line 355
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.', 355, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 355, $this->source); })()), [], "array", false, false, true, 355)) {
// line 356
echo "\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.delivery_fee_free__now"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t";
} else {
// line 358
echo "\t\t\t\t\t\t\t\t\t";
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.', 358, $this->source); })()), (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 358, $this->source); })()), [], "array", false, false, true, 358), 358, $this->source))]);
echo "
\t\t\t\t\t\t\t\t";
}
// line 360
echo "\t\t\t\t\t\t\t";
}
// line 361
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"flex justify-end max-w-[800px] w-full mr-6 sm:mr-0 sm:justify-center sm:items-center\">
\t\t\t\t\t\t\t<div class=\"w-[327px] mt-10 mb-20 flex flex-col gap-4 sm:w-full text-sm\">
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span class=\"font-medium\">合計点数</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 366
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Cart"], "quantity", [], "any", false, false, true, 366), 366, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t点</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 class=\"font-medium\">小計</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 371
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 371, $this->source); })()), 371, $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 class=\"font-medium\">消費税(10%)</span>
\t\t\t\t\t\t\t\t\t<span>";
// line 375
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, 375) - (isset($context["subTotalExcTax"]) || array_key_exists("subTotalExcTax", $context) ? $context["subTotalExcTax"] : (function () { throw new RuntimeError('Variable "subTotalExcTax" does not exist.', 375, $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 class=\"font-medium\">合計金額 (税込)</span>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<span class=\"font-bold text-red text-xl\">";
// line 380
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, 380), 380, $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>
\t\t\t\t\t\t<div class=\"w-full flex flex-col gap-y-10 items-center justify-center mb-20 md:mb-10 \">
\t\t\t\t\t\t\t<div class=\"flex gap-x-6 md:flex-col gap-y-4\">
\t\t\t\t\t\t\t\t<a class=\"!w-[327px] text-white bg-black py-3 px-[128px] text-sm font-bold rounded-[3px] hover\" href=\"";
// line 388
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.', 388, $this->source); })())]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.checkout"), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t";
// line 389
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 389)) {
// line 390
echo "\t\t\t\t\t\t\t\t\t<a class=\"border border-black text-black py-3 px-[107px] text-sm rounded-[3px] hover\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.cart.continue"), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t";
}
// line 392
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 394
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 396
echo "\t\t\t\t</form>
\t\t\t\t<hr
\t\t\t\tclass=\"w-full bg-sub-beige-pale h-[1px] border-none max-w-[800px]\">
\t\t\t\t";
// line 399
if ((twig_length_filter($this->env, (isset($context["RelatedProducts"]) || array_key_exists("RelatedProducts", $context) ? $context["RelatedProducts"] : (function () { throw new RuntimeError('Variable "RelatedProducts" does not exist.', 399, $this->source); })())) > 0)) {
// line 400
echo "\t\t\t\t\t<div class=\"mt-20 flex flex-col items-center md:mt-10 w-[1050px] xl:w-full\">
\t\t\t\t\t\t<p class=\"font-medium text-center mb-10 leading-7\">ショッピングカート内の商品を購入した人は<br class=\"hidden md:block\">
\t\t\t\t\t\t\tこちらの商品も一緒に購入しています</p>
<ul class=\"max-w-[800px] w-full flex overflow-hidden items-center justify-center lg:w-[100vw] lg:mx-[calc(50%-50vw)] lg:px-[calc(50%-50vw)]\">
\t\t\t\t\t\t\t <div class=\"slider\">
\t\t\t\t\t\t\t\t";
// line 405
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["RelatedProducts"]) || array_key_exists("RelatedProducts", $context) ? $context["RelatedProducts"] : (function () { throw new RuntimeError('Variable "RelatedProducts" does not exist.', 405, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["RelatedProduct"]) {
// line 406
echo "\t\t\t\t\t\t\t\t\t<div class=\"slick-slider mx-5 max-w-[327px] \">
\t\t\t\t\t\t\t\t\t\t<li class=\"flex flex-col items-center w-full h-auto text-center hover\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 408
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 408), "id", [], "any", false, false, true, 408)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 409
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, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 409), "MainListImage", [], "any", false, false, true, 409), 409, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"\" class=\"bg-cover w-[327px] h-[327px] mb-10 md:mb-6\"></a>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-6\">
\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"whitespace-normal overflow-visible font-light font-notoserif text-[32px] mb-2 tracking-[6.4px]\">";
// line 411
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 411), "name", [], "any", false, false, true, 411), 411, $this->source), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-sm font-notoserif font-light tracking-wide\">";
// line 412
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 412), "name_kana", [], "any", false, false, true, 412), 412, $this->source), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-center\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-6 text-clip overflow-hidden h-14 whitespace-nowrap\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"whitespace-normal text-sm text-center leading-7 \">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 417
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 417), "description_detail", [], "any", false, false, true, 417), 417, $this->source));
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-baseline gap-1 mb-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-xl leading-9\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 422
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 422), "hasProductClass", [], "any", false, false, true, 422)) {
// line 423
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 423), "getPrice02Min", [], "any", false, false, true, 423) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 423), "getPrice02Max", [], "any", false, false, true, 423))) {
// line 424
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 424), "getPrice02IncTaxMin", [], "any", false, false, true, 424), 424, $this->source)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 426
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 426), "getPrice02IncTaxMin", [], "any", false, false, true, 426), 426, $this->source)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 428
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 428), "getPrice02IncTaxMax", [], "any", false, false, true, 428), 428, $this->source)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 430
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 431
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 431), "getPrice02IncTaxMin", [], "any", false, false, true, 431), 431, $this->source)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 433
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-xs leading-4 font-medium\">円(税込)</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 437
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RelatedProduct"], "ChildProduct", [], "any", false, false, true, 437), "id", [], "any", false, false, true, 437)]), "html", null, true);
echo "\" class=\"w-[258px] block border-black border py-3 rounded-[3px] md:w-[258px] text-sm text-center\">詳しくはこちら</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelatedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 441
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 445
echo "\t\t\t";
} else {
// line 446
echo "\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Carts"]) || array_key_exists("Carts", $context) ? $context["Carts"] : (function () { throw new RuntimeError('Variable "Carts" does not exist.', 446, $this->source); })()));
foreach ($context['_seq'] as $context["CartIndex"] => $context["Cart"]) {
$context["message"] = $this->extensions['Plugin\Productset42\Service\Twig\NonStockErrorMessageFunction']->getFunction($this->sandbox->ensureToStringAllowed($context["Cart"], 446, $this->source));
// line 447
echo "
";
// line 448
if ( !twig_test_empty((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 448, $this->source); })()))) {
// line 449
echo " <div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
";
// line 452
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 452, $this->source); })()), 452, $this->source), "html", null, true);
echo "
</div>
</div>
</div>
";
}
// line 457
echo "
<script>
\$(function () {
";
// line 460
if ( !twig_test_empty((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 460, $this->source); })()))) {
// line 461
echo " \$('.ec-cartRole__actions').find('.ec-blockBtn--action').css('display', 'none');
";
}
// line 463
echo " });
</script>
\t\t\t\t\t";
// line 465
$context["cartKey"] = twig_get_attribute($this->env, $this->source, $context["Cart"], "cart_key", [], "any", false, false, true, 465);
// line 466
echo "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 466, $this->source); })()), "session", [], "any", false, false, true, 466), "flashbag", [], "any", false, false, true, 466), "get", [0 => (("eccube.front.cart." . (isset($context["cartKey"]) || array_key_exists("cartKey", $context) ? $context["cartKey"] : (function () { throw new RuntimeError('Variable "cartKey" does not exist.', 466, $this->source); })())) . ".request.error")], "method", false, false, true, 466));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 467
echo "\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t<img src=\"";
// line 469
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-beige.svg"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t";
// line 471
echo twig_nl2br(twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed($context["error"], 471, $this->source)), "html", null, true));
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 476
echo "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['CartIndex'], $context['Cart'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 477
echo "\t\t\t\t<div class=\"ec-role\">
\t\t\t\t\t<div class=\"ec-off3Grid\">
\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-11 md:gap-20\">
\t\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-5\">
\t\t\t\t\t\t\t\t<img src=\"";
// line 481
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-beige.svg"), "html", null, true);
echo "\" class=\"w-8 h-8 \">
\t\t\t\t\t\t\t\t<div class=\"leading-9\">現在、カートに商品は入っておりません。</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<a href=\"/products/list\" class=\"border text-center border-black text-black py-3 w-[327px] text-sm rounded-[3px] hover\">お買い物を続ける</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 489
echo "\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "__string_template__04f96a7573e53bb468d7d5d5a15309bf";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1045 => 489, 1034 => 481, 1028 => 477, 1022 => 476, 1011 => 471, 1006 => 469, 1002 => 467, 997 => 466, 995 => 465, 991 => 463, 987 => 461, 985 => 460, 980 => 457, 972 => 452, 967 => 449, 965 => 448, 962 => 447, 956 => 446, 953 => 445, 947 => 441, 937 => 437, 931 => 433, 925 => 431, 922 => 430, 917 => 428, 911 => 426, 905 => 424, 902 => 423, 900 => 422, 892 => 417, 884 => 412, 880 => 411, 875 => 409, 871 => 408, 867 => 406, 863 => 405, 856 => 400, 854 => 399, 849 => 396, 834 => 394, 831 => 392, 823 => 390, 821 => 389, 815 => 388, 804 => 380, 796 => 375, 789 => 371, 781 => 366, 774 => 361, 771 => 360, 765 => 358, 759 => 356, 757 => 355, 754 => 354, 751 => 353, 745 => 351, 739 => 349, 737 => 348, 734 => 347, 731 => 346, 725 => 344, 719 => 342, 717 => 341, 714 => 340, 712 => 339, 705 => 334, 693 => 330, 686 => 325, 679 => 321, 676 => 320, 657 => 318, 640 => 317, 634 => 316, 624 => 308, 622 => 307, 619 => 306, 611 => 303, 604 => 301, 598 => 300, 595 => 299, 593 => 298, 586 => 294, 582 => 293, 579 => 292, 573 => 289, 569 => 288, 566 => 287, 564 => 286, 559 => 284, 550 => 280, 539 => 274, 533 => 271, 527 => 270, 519 => 267, 515 => 266, 509 => 262, 506 => 261, 503 => 260, 500 => 259, 496 => 258, 492 => 256, 489 => 255, 478 => 250, 473 => 248, 469 => 246, 464 => 245, 462 => 244, 458 => 242, 454 => 240, 452 => 239, 447 => 236, 439 => 231, 434 => 228, 432 => 227, 429 => 226, 411 => 225, 407 => 224, 404 => 223, 396 => 218, 391 => 215, 389 => 214, 386 => 213, 383 => 212, 372 => 207, 367 => 205, 363 => 203, 358 => 202, 341 => 198, 335 => 196, 329 => 194, 327 => 193, 322 => 191, 318 => 189, 315 => 188, 297 => 187, 295 => 186, 261 => 156, 259 => 155, 250 => 148, 240 => 147, 210 => 125, 208 => 124, 189 => 107, 187 => 106, 161 => 82, 151 => 81, 134 => 72, 132 => 71, 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%}
\t<style>
\t\tselect {
\t\t\tpadding: 16px 12px;
\t\t\tborder: solid 1px #CCCCCC;
\t\t\tborder-radius: 3px;
\t\t\tfont-size: 14px;
\t\t\twidth: 234px;
\t\t}
\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>
<style>
\t\t.slider .slick-list {
\t\t\toverflow: visible;
\t\t\tpadding: 0;
\t\t}
\t\t.slider {
\t\t\tmax-width: 800px;
\t\t\tmax-height: auto !important;
\t\t}
\t\t.slick-dots {
\t\t\tdisplay: flex;
\t\t\talign-items: center;
\t\t\tjustify-content: center;
\t\t\tgap: 16px;
\t\t\tmargin-top: -120px;
\t\t}
\t\t.slick-dots li {
\t\t\tlist-style-type: none;
\t\t\twidth: 8px;
height: 8px;
\t\t\tborder-radius: 50%;
\t\t\tcursor: pointer;
\t\t}
\t\t.slick-dots li {
\t\t\twidth: 8px;
\t\t\theight: 8px;
\t\t\tborder-radius: 50%;
\t\t\tborder: solid 1px;
\t\t\tborder-color: #2F2725;
\t\t}
\t\t.slick-dots li.slick-active {
\t\t\tbackground: #2F2725;
\t\t}
.slick-dots button{
opacity:0;
}
\t</style>
\t\t{% if RelatedProducts|length == 2 %}
<style>
.slider {
max-width: 725px;
max-height: auto !important;
}
</style>
{% endif %}
{% endblock %}
{% block javascript %}
\t<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>
{% if RelatedProducts|length >= 3 %}
<script>
\$(document).ready(function () {
\$('.slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
dotsClass: \"slick-dots\",
centerMode: true,
variableWidth: true,
autoplay: true,
autoplaySpeed: 2500,
speed: 1000,
focusOnSelect: true,
infinite: true
});
});
</script>
{% elseif RelatedProducts|length == 2 %}
<script>
\$(document).ready(function () {
\$('.slider').slick({
slidesToShow: 2,
slidesToScroll: 2,
dots: true,
dotsClass: \"slick-dots\",
variableWidth: true,
focusOnSelect: true,
responsive: [{
breakpoint: 1000,
settings:{
slidesToShow: 1,
slidesToScroll: 1,
},
} ]
});
});
</script>
{% endif %}
{% endblock %}
{% block main %}
\t<div class=\"pb-20 lg:px-6 whitespace-nowrap bg-background-default w-full items-center justify-center flex-col flex\">
\t\t<div class=\"w-full\">
\t\t\t<div class=\"flex gap-4 md:gap-2 items-start mx-auto w-full pl-[10.625vw] md:pl-6 pt-[120px] md:pt-20 pb-10\">
\t\t\t\t<hr class=\"md:h-[64px] h-[120px] w-[2px] bg-gradient-to-b from-[#ADAAA6] to-[#F0EDE900] border-none\">
\t\t\t\t<h1 class=\"text-2xl md:text-xl font-light leading-9 tracking-widest\">ショッピングカート</h1>
\t\t\t</div>
\t\t\t{% set breadcrumbs = [{'name': \"ショッピングカート\" }] %}
\t\t\t{{ include('Block/breadcrumb.twig') }}
\t\t</div>
\t\t<p class=\"mb-10 text-sm w-full md:pl-6 pl-[10.625vw]\">会員登録せずにご注文に進むこともできます。</p>
\t\t<div class=\"flex flex-col justify-center items-center gap-2 w-full max-w-[592px] mx-auto mb-20\">
\t\t\t<div class=\"flex items-center w-full justify-between\">
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-sub-blue flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white font-bold font-notoserif leading-none\">1</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">2</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">3</p>
\t\t\t\t</div>
\t\t\t\t<div class=\"w-[7.5vw] md:w-[12vw] flex-1 h-[2px] bg-gray\"></div>
\t\t\t\t<div class=\"w-14 h-14 md:w-11 md:h-11 bg-gray flex items-center justify-center rounded-full\">
\t\t\t\t\t<p class=\"text-white text-xl md:text-base font-bold font-notoserif leading-none\">4</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"flex w-full items-center text-base md:text-xs mx-auto max-w-[800px] justify-between\">
\t\t\t\t<p class=\"w-[27.8vw] pl-[10px] font-bold\">カート</p>
\t\t\t\t<p class=\"text-center ml-[-1.87vw]\">お客様情報入力</p>
\t\t\t\t<p class=\"text-end w-[27.8vw] \">ご注文手続き</p>
\t\t\t\t<p class=\"text-end w-[27.8vw] mr-[-12px]\">ご注文完了</p>
\t\t\t</div>
\t\t</div>
<div class=\"max-w-[1008px] w-full flex flex-col items-center justify-center mx-6 sm:mx-0\">
{% 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 %}
<hr class=\"w-full bg-sub-beige-pale h-[1px] border-none max-w-[1008px] mx-auto\">
{% 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 %}
<form name=\"form\" id=\"form_cart\" class=\"w-full flex flex-col items-center justify-center\" method=\"post\" action=\"{{ url('cart') }}\">
\t\t\t\t\t{% for CartIndex,Cart in Carts %}{% set message = nonStockErrorMessage(Cart) %}
{% if message is not empty %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
{{ message }}
</div>
</div>
</div>
{% endif %}
<script>
\$(function () {
{% if message is not empty %}
\$('.ec-cartRole__actions').find('.ec-blockBtn--action').css('display', 'none');
{% endif %}
});
</script>
\t\t\t\t\t\t{% set cartKey = Cart.cart_key %}
\t\t\t\t\t\t{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
\t\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\">
\t\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t\t{{ error|trans|nl2br }}
\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{% endfor %}
\t\t\t\t\t\t{% set subTotalExcTax = 0 %}
\t\t\t\t\t\t<div class=\"w-full flex flex-col items-center justify-center my-10 gap-10\">
\t\t\t\t\t\t\t<ul class=\"flex gap-10 flex-col justify-center max-w-[800px] w-full \">
\t\t\t\t\t\t\t\t{% for CartItem in Cart.CartItems %}
\t\t\t\t\t\t\t\t\t{% set ProductClass = CartItem.ProductClass %}
\t\t\t\t\t\t\t\t\t{% set Product = ProductClass.Product %}
\t\t\t\t\t\t\t\t\t{% set subTotalExcTax = subTotalExcTax + (ProductClass.price02 * CartItem.quantity) %}
\t\t\t\t\t\t\t\t\t<li class=\"w-full flex gap-4 md:gap-5 md:flex-col justify-between\">
\t\t\t\t\t\t\t\t\t\t<div class=\"flex gap-4 md:flex-col\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:flex md:flex-col md:w-full md:items-end md:justify-end\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:flex md:gap-3 md:w-full\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"hover\" target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.MainListImage|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" class=\"w-[176px] h-[176px] md:h-[60px] md:w-[60px] aspect-square\">
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\" class=\"hidden md:block leading-9 text-sm\">{{ Product.name }}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-medium hidden md:block text-sm\">価格:{{ CartItem.price|price }}</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"text-sm leading-4 text-sub-blue border-b border-sub-blue w-fit hidden md:block hover\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
\t\t\t\t\t\t\t\t\t\t\t\t\t削除する
\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"w-[400px] md:w-full text-sm leading-9 tracking-wider lg:mr-0\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"{{ url('product_detail', {id : Product.id} ) }}\" class=\"md:hidden\">{{ Product.name }}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<dl class=\"font-medium flex-col flex\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">価格:</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-normal\">{{ CartItem.price|number_format }}円 (税込)</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if ProductClass.ClassCategory1 and ProductClass.ClassCategory1.id %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-medium flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">{{ ProductClass.ClassCategory1.ClassName.name }}:</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>{{ ProductClass.ClassCategory1 }}</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex md:gap-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"md:w-[72px]\">{{ 'common.quantity__with_separator'|trans }}</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"font-normal\">{{ CartItem.quantity|number_format }}点</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex mt-2 mb-10 items-center gap-6 md:gap-4\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if CartItem is not null and CartItem.ProductClass.Product.isNaireProduct %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <div class=\"font-medium md:w-[72px]\">名入れ:</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"naire\" id=\"naire_{{ CartItem.id }}\" data-id=\"{{CartItem.id}}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"naire_true\" {% if CartItem.naire %}selected{% endif %}>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tあり</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"naire_false\" {% if not CartItem.naire %}selected{% endif %}>なし</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if CartItem.naire %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-start\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"naire\" class=\"w-full flex items-center justify-between hover\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"flex items-center hover gap-1 mb-4\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t名入れの仕様について
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"heading before:content-['-'] text-xl pb-3\"></p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"naire_description\">
<div class=\"grid {% if CartItem.ProductClass.Product.ProductNaireImages|length > 1 %}grid-cols-2{% endif %} gap-4 items-center\">
{% for ProductNaireImage in CartItem.ProductClass.Product.ProductNaireImages %}
<img src=\"{{ asset(ProductNaireImage.file_name|no_image_product, 'save_image') }}\" alt=\"{{ ProductNaireImage.alt_text ?? '名入れ画像' ~ loop.index }}\" class=\"mb-4 h-[192px] w-auto md:h-[159px]\">
{% endfor %}
</div>
<p class=\"mb-4 whitespace-normal text-sm leading-7 tracking-wider font-normal\">{{Product.naire_content|nl2br}}</p>
</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</dl>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}\" {{ csrf_token_for_anchor() }} class=\"text-sm text-sub-blue border-b border-sub-blue leading-4 md:hidden h-fit w-fit mt-[72px] hover\" data-method=\"put\" data-message=\"カートから商品を削除してもよろしいですか?\">
\t\t\t\t\t\t\t\t\t\t\t削除する</a>
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<hr
\t\t\t\t\t\tclass=\"w-full bg-sub-beige-pale h-[1px] border-none\">
\t\t\t\t\t\t<div class=\"ec-cartRole__progress\">
\t\t\t\t\t\t\t{% if BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__now'|trans }}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__price_and_quantity'|trans({ '%price%': least[cartKey]|price, '%quantity%': quantity[cartKey]|number_format })|raw }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% elseif BaseInfo.delivery_free_amount %}
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__now'|trans }}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__price'|trans({ '%price%': least[cartKey]|price })|raw }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% elseif BaseInfo.delivery_free_quantity %}
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t\t{% if is_delivery_free[cartKey] %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__now'|trans }}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ 'front.cart.delivery_fee_free__quantity'|trans({ '%quantity%': quantity[cartKey]|number_format })|raw }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"flex justify-end max-w-[800px] w-full mr-6 sm:mr-0 sm:justify-center sm:items-center\">
\t\t\t\t\t\t\t<div class=\"w-[327px] mt-10 mb-20 flex flex-col gap-4 sm:w-full text-sm\">
\t\t\t\t\t\t\t\t<div class=\"flex justify-between\">
\t\t\t\t\t\t\t\t\t<span class=\"font-medium\">合計点数</span>
\t\t\t\t\t\t\t\t\t<span>{{ Cart.quantity }}
\t\t\t\t\t\t\t\t\t\t点</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 class=\"font-medium\">小計</span>
\t\t\t\t\t\t\t\t\t<span>{{ subTotalExcTax|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 class=\"font-medium\">消費税(10%)</span>
\t\t\t\t\t\t\t\t\t<span>{{ (Cart.total_price - subTotalExcTax )|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 class=\"font-medium\">合計金額 (税込)</span>
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<span class=\"font-bold text-red text-xl\">{{ 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>
\t\t\t\t\t\t<div class=\"w-full flex flex-col gap-y-10 items-center justify-center mb-20 md:mb-10 \">
\t\t\t\t\t\t\t<div class=\"flex gap-x-6 md:flex-col gap-y-4\">
\t\t\t\t\t\t\t\t<a class=\"!w-[327px] text-white bg-black py-3 px-[128px] text-sm font-bold rounded-[3px] hover\" href=\"{{ path('cart_buystep', {'cart_key':cartKey}) }}\">{{ 'front.cart.checkout'|trans }}</a>
\t\t\t\t\t\t\t\t{% if loop.last %}
\t\t\t\t\t\t\t\t\t<a class=\"border border-black text-black py-3 px-[107px] text-sm rounded-[3px] hover\" href=\"{{ path('homepage') }}\">{{ 'front.cart.continue'|trans }}</a>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# <a href=\"\">Amazonでお支払い</a> #}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t</form>
\t\t\t\t<hr
\t\t\t\tclass=\"w-full bg-sub-beige-pale h-[1px] border-none max-w-[800px]\">
\t\t\t\t{% if RelatedProducts|length > 0 %}
\t\t\t\t\t<div class=\"mt-20 flex flex-col items-center md:mt-10 w-[1050px] xl:w-full\">
\t\t\t\t\t\t<p class=\"font-medium text-center mb-10 leading-7\">ショッピングカート内の商品を購入した人は<br class=\"hidden md:block\">
\t\t\t\t\t\t\tこちらの商品も一緒に購入しています</p>
<ul class=\"max-w-[800px] w-full flex overflow-hidden items-center justify-center lg:w-[100vw] lg:mx-[calc(50%-50vw)] lg:px-[calc(50%-50vw)]\">
\t\t\t\t\t\t\t <div class=\"slider\">
\t\t\t\t\t\t\t\t{% for RelatedProduct in RelatedProducts %}
\t\t\t\t\t\t\t\t\t<div class=\"slick-slider mx-5 max-w-[327px] \">
\t\t\t\t\t\t\t\t\t\t<li class=\"flex flex-col items-center w-full h-auto text-center hover\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {id : RelatedProduct.ChildProduct.id} ) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(RelatedProduct.ChildProduct.MainListImage|no_image_product, 'save_image') }}\" alt=\"\" class=\"bg-cover w-[327px] h-[327px] mb-10 md:mb-6\"></a>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-6\">
\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"whitespace-normal overflow-visible font-light font-notoserif text-[32px] mb-2 tracking-[6.4px]\">{{RelatedProduct.ChildProduct.name}}</p>
\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-sm font-notoserif font-light tracking-wide\">{{RelatedProduct.ChildProduct.name_kana}}</p>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col items-center\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-6 text-clip overflow-hidden h-14 whitespace-nowrap\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"whitespace-normal text-sm text-center leading-7 \">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{RelatedProduct.ChildProduct.description_detail|raw|nl2br}}
\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-baseline gap-1 mb-6\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-xl leading-9\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if RelatedProduct.ChildProduct.hasProductClass %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if RelatedProduct.ChildProduct.getPrice02Min == RelatedProduct.ChildProduct.getPrice02Max %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ RelatedProduct.ChildProduct.getPrice02IncTaxMin| number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ RelatedProduct.ChildProduct.getPrice02IncTaxMin| number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ RelatedProduct.ChildProduct.getPrice02IncTaxMax| number_format}}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ RelatedProduct.ChildProduct.getPrice02IncTaxMin| number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"text-xs leading-4 font-medium\">円(税込)</p>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {id : RelatedProduct.ChildProduct.id} ) }}\" class=\"w-[258px] block border-black border py-3 rounded-[3px] md:w-[258px] text-sm text-center\">詳しくはこちら</a>
\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% else %}
\t\t\t\t{% for CartIndex,Cart in Carts %}{% set message = nonStockErrorMessage(Cart) %}
{% if message is not empty %}
<div class=\"ec-cartRole__error\">
<div class=\"ec-alert-warning\">
<div class=\"ec-alert-warning__text\">
{{ message }}
</div>
</div>
</div>
{% endif %}
<script>
\$(function () {
{% if message is not empty %}
\$('.ec-cartRole__actions').find('.ec-blockBtn--action').css('display', 'none');
{% endif %}
});
</script>
\t\t\t\t\t{% set cartKey = Cart.cart_key %}
\t\t\t\t\t{% for error in app.session.flashbag.get('eccube.front.cart.' ~ cartKey ~ '.request.error') %}
\t\t\t\t\t\t<div class=\"ec-cartRole__error\">
\t\t\t\t\t\t\t<div class=\"ec-alert-warning\">
\t\t\t\t\t\t\t\t<img src=\"{{ asset('assets/icon/exclamation-beige.svg')}}\">
\t\t\t\t\t\t\t\t<div class=\"ec-alert-warning__text\">
\t\t\t\t\t\t\t\t\t{{ error|trans|nl2br }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endfor %}
\t\t\t\t<div class=\"ec-role\">
\t\t\t\t\t<div class=\"ec-off3Grid\">
\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-11 md:gap-20\">
\t\t\t\t\t\t\t<div class=\"flex flex-col items-center gap-5\">
\t\t\t\t\t\t\t\t<img src=\"{{ asset('assets/icon/exclamation-beige.svg')}}\" class=\"w-8 h-8 \">
\t\t\t\t\t\t\t\t<div class=\"leading-9\">現在、カートに商品は入っておりません。</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<a href=\"/products/list\" class=\"border text-center border-black text-black py-3 w-[327px] text-sm rounded-[3px] hover\">お買い物を続ける</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t</div>
{% endblock %}
", "__string_template__04f96a7573e53bb468d7d5d5a15309bf", "");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 71, "for" => 187);
static $filters = array("length" => 71, "escape" => 191, "nl2br" => 194, "trans" => 194, "no_image_product" => 267, "price" => 271, "number_format" => 284, "raw" => 344);
static $functions = array("include" => 156, "asset" => 191, "url" => 224, "nonStockErrorMessage" => 225, "csrf_token_for_anchor" => 274, "path" => 388);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['length', 'escape', 'nl2br', 'trans', 'no_image_product', 'price', 'number_format', 'raw'],
['include', 'asset', 'url', 'nonStockErrorMessage', '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;
}
}
}