<?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;
/* Product/detail.twig */
class __TwigTemplate_be291088a2d6212909c8e514c5815cb5 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'],
];
}
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", "Product/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
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 19
echo "
<script>
eccube.classCategories = ";
// line 21
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 21, $this->source); })()));
echo ";
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var \$form = \$(form);
var product_id = \$form.find('input[name=product_id]').val();
var \$sele1 = \$form.find('select[name=classcategory_id1]');
var \$sele2 = \$form.find('select[name=classcategory_id2]');
eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
}
";
// line 31
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 31)) {
// line 32
echo " fnSetClassCategories(
\$('#form1'), ";
// line 33
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 33, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 33), "vars", [], "any", false, false, false, 33), "value", [], "any", false, false, false, 33));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 35
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 35)) {
// line 36
echo " eccube.checkStock(\$('#form1'), ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 36, $this->source); })()), "id", [], "any", false, false, false, 36), "html", null, true);
echo ", ";
echo json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 36, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 36), "vars", [], "any", false, false, false, 36), "value", [], "any", false, false, false, 36));
echo ", null);
";
}
// line 38
echo "</script>
<script>
\$('.carousel').slick({
infinite: false,
speed: 300,
prevArrow:'<button type=\"button\" class=\"slick-prev\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
nextArrow:'<button type=\"button\" class=\"slick-next\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}
]
});
\$('.slides').slick({
dots: true,
arrows: false,
speed: 300,
customPaging: function(slider, i) {
return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
}
});
\$('#favorite').click(function() {
\$('#mode').val('add_favorite');
});
\$('#add-cart').click(function() {
\$('#mode').val('add_cart');
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 83
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 84
echo "
<!-- ▼item_detail▼ -->
<div id=\"item_detail\">
<div id=\"detail_wrap\" class=\"row\">
<!--★画像★-->
<div id=\"item_photo_area\" class=\"col-sm-6\">
<div id=\"detail_image_box__slides\" class=\"slides\">
";
// line 91
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 91, $this->source); })()), "ProductImage", [], "any", false, false, false, 91));
$context['_iterated'] = false;
$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["ProductImage"]) {
// line 92
echo " <div id=\"detail_image_box__item--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 92), "html", null, true);
echo "\">
<img class=\"zoom\" src=\"";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" data-zoom-image=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\"/>
</div>
";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 96
echo " <div id=\"detail_image_box__item\">
<img class=\"zoom\" src=\"";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\" data-zoom-image=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\"/>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
echo " </div>
</div>
<section id=\"item_detail_area\" class=\"col-sm-6\">
<!--★商品名★-->
<h3 id=\"detail_description_box__name\" class=\"item_name\">";
// line 105
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 105, $this->source); })()), "name", [], "any", false, false, false, 105), "html", null, true);
echo "</h3>
<!-- ▼関連カテゴリ▼ -->
<div id=\"relative_category_box\" class=\"relative_cat\">
<!--<p>関連カテゴリ</p>-->
";
// line 110
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 110, $this->source); })()), "ProductCategories", [], "any", false, false, false, 110));
$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["ProductCategory"]) {
// line 111
echo " <ol id=\"relative_category_box__relative_category--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "product_id", [], "any", false, false, false, 111), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 111), "html", null, true);
echo "\">
";
// line 112
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 112), "path", [], "any", false, false, false, 112));
$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["Category"]) {
// line 113
echo " <li><a id=\"relative_category_box__relative_category--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "product_id", [], "any", false, false, false, 113), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["loop"], "parent", [], "any", false, false, false, 113), "loop", [], "any", false, false, false, 113), "index", [], "any", false, false, false, 113), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "id", [], "any", false, false, false, 113), "html", null, true);
echo "\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "id", [], "any", false, false, false, 113), "html", null, true);
echo "\" class=\"btn btn-info-border\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, false, 113), "html", null, true);
echo "</a></li>
";
++$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['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo " </ol>
";
++$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['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " </div>
<!-- ▲関連カテゴリ▲ -->
<div id=\"detail_description_box__body\" class=\"item_detail\">
";
// line 122
if ( !twig_test_empty(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.', 122, $this->source); })()), "Tags", [], "any", false, false, false, 122))) {
// line 123
echo " <!--▼商品タグ-->
<div id=\"product_tag_box\" class=\"product_tag\">
";
// line 125
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 125, $this->source); })()), "Tags", [], "any", false, false, false, 125));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 126
echo " <span id=\"product_tag_box__product_tag--";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 126), "html", null, true);
echo "\" class=\"product_tag_list\">";
echo twig_escape_filter($this->env, $context["Tag"], "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo " </div>
<hr>
<!--▲商品タグ-->
";
}
// line 132
echo "
<!--★通常価格★-->
";
// line 134
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 134, $this->source); })()), "hasProductClass", [], "any", false, false, false, 134)) {
// line 135
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 135, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 135)) && (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 135, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 135) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 135, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 135)))) {
// line 136
echo " <p id=\"detail_description_box__class_normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 136, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 136)), "html", null, true);
echo "</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 137
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 137, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 137)) && !(null === 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.', 137, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 137)))) {
// line 138
echo " <p id=\"detail_description_box__class_normal_range_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.', 138, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 138)), "html", null, true);
echo "~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.', 138, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 138)), "html", null, true);
echo "</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
";
}
// line 140
echo " ";
} else {
// line 141
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 141, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 141)) && (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 141, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 141) > 0))) {
// line 142
echo " <span class=\"tax_management-list_price\"></span>
";
// line 146
echo " ";
}
// line 147
echo " ";
}
// line 149
echo "<!--★販売価格★-->
";
// line 150
$context["flag"] = false;
// line 151
echo "
";
// line 152
if ( !twig_test_empty(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.', 152, $this->source); })()), "ProductCategories", [], "any", false, false, false, 152))) {
// line 153
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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); })()), "ProductCategories", [], "any", false, false, false, 153));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 154
echo " ";
if (((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 154), "id", [], "any", false, false, false, 154) == 148) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 154), "id", [], "any", false, false, false, 154) == 133)) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 154), "id", [], "any", false, false, false, 154) == 144)) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "Category", [], "any", false, false, false, 154), "id", [], "any", false, false, false, 154) == 116))) {
// line 155
echo " ";
$context["flag"] = true;
// line 156
echo " ";
}
// line 157
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 158
echo " ";
}
// line 159
echo "
";
// line 160
if ((((isset($context["flag"]) || array_key_exists("flag", $context) ? $context["flag"] : (function () { throw new RuntimeError('Variable "flag" does not exist.', 160, $this->source); })()) != true) && (isset($context["discount_flag"]) || array_key_exists("discount_flag", $context) ? $context["discount_flag"] : (function () { throw new RuntimeError('Variable "discount_flag" does not exist.', 160, $this->source); })()))) {
// line 161
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 162
echo " <span style=\"color:red;\">[";
echo twig_escape_filter($this->env, (isset($context["discount_ratio"]) || array_key_exists("discount_ratio", $context) ? $context["discount_ratio"] : (function () { throw new RuntimeError('Variable "discount_ratio" does not exist.', 162, $this->source); })()), "html", null, true);
echo "%割引対象商品です]</span>
";
} elseif ( // line 163
(isset($context["nonmember_flag"]) || array_key_exists("nonmember_flag", $context) ? $context["nonmember_flag"] : (function () { throw new RuntimeError('Variable "nonmember_flag" does not exist.', 163, $this->source); })())) {
// line 164
echo " <span style=\"color:red;\">[";
echo twig_escape_filter($this->env, (isset($context["nonmember_ratio"]) || array_key_exists("nonmember_ratio", $context) ? $context["nonmember_ratio"] : (function () { throw new RuntimeError('Variable "nonmember_ratio" does not exist.', 164, $this->source); })()), "html", null, true);
echo "%割引対象商品です]</span>
";
}
// line 166
echo " ";
}
// line 167
echo " ";
// line 178
echo "
";
// line 179
if (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.', 179, $this->source); })()), "hasProductClass", [], "any", false, false, false, 179)) {
// line 180
if ((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.', 180, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 180) == 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.', 180, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 180))) {
// line 181
echo " <p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\"> <span class=\"price02_default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.', 181, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 181)), "html", null, true);
echo "</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
";
} else {
// line 183
echo " <p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\"> <span class=\"price02_default\">";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.', 183, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 183)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(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.', 183, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 183)), "html", null, true);
echo "</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
";
}
// line 185
echo " ";
} else {
// line 186
echo "<span class=\"tax_management-sale_price\"></span>
<small>
";
// line 188
if ((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.', 188, $this->source); })()), "stock_min", [], "any", false, false, false, 188) >= 5)) {
// line 189
echo " 在庫あり
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 190
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 190, $this->source); })()), "stock_min", [], "any", false, false, false, 190) == null)) {
// line 191
echo " 在庫あり
";
} else {
// line 193
echo " 在庫:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 193, $this->source); })()), "stock_min", [], "any", false, false, false, 193), "html", null, true);
echo "
";
}
// line 195
echo " </small>
";
// line 199
echo " ";
}
// line 202
echo " ";
$context["hasHandlingTag"] = false;
// line 203
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 203, $this->source); })()), "Tags", [], "any", false, false, false, 203));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 204
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["tag"], "id", [], "any", false, false, false, 204) == 7)) {
// line 205
echo " ";
$context["hasHandlingTag"] = true;
// line 206
echo " ";
}
// line 207
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
echo "
";
// line 209
if (((isset($context["hasHandlingTag"]) || array_key_exists("hasHandlingTag", $context) ? $context["hasHandlingTag"] : (function () { throw new RuntimeError('Variable "hasHandlingTag" does not exist.', 209, $this->source); })()) && !twig_test_empty(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.', 209, $this->source); })()), "tag7DisplayText", [], "any", false, false, false, 209)))) {
// line 210
echo " <div class=\"handling-product-notice mt-3 p-3 border rounded bg-light\">
<p class=\"mb-0\">";
// line 211
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 211, $this->source); })()), "tag7DisplayText", [], "any", false, false, false, 211), "html", null, true));
echo "</p>
</div>
";
}
// line 214
echo "
<div id=\"detail_cart_box\" class=\"cart_area\">
<form action=\"";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["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.', 217, $this->source); })()), "id", [], "any", false, false, false, 217)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 219
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 219, $this->source); })()), "stock_find", [], "any", false, false, false, 219)) {
// line 220
echo "
";
// line 222
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 222)) {
// line 223
echo " <ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
";
// line 225
echo " <li>
";
// line 226
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 226, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 226), 'widget');
echo "
";
// line 227
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 227, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 227), 'errors');
echo "
</li>
";
// line 230
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 230)) {
// line 231
echo " <li>
";
// line 232
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 232, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 232), 'widget');
echo "
";
// line 233
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 233, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 233), 'errors');
echo "
</li>
";
}
// line 236
echo " </ul>
";
}
// line 238
echo "
";
// line 240
echo " <dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
<dt>数量</dt>
<dd>
";
// line 243
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 243, $this->source); })()), "quantity", [], "any", false, false, false, 243), 'widget');
echo "
";
// line 244
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 244, $this->source); })()), "quantity", [], "any", false, false, false, 244), 'errors');
echo "
</dd>
</dl>
<div class=\"extra-form\">
";
// line 249
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 249, $this->source); })()), "getIterator", [], "any", false, false, false, 249));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 250
echo " ";
if (preg_match("[^plg*]", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 250), "name", [], "any", false, false, false, 250))) {
// line 251
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'row');
echo "
";
}
// line 253
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 254
echo " </div>
";
// line 257
echo " <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul id=\"detail_cart_box__insert_button\" class=\"row\">
<li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"add-cart\" class=\"btn btn-primary btn-block prevention-btn prevention-mask add-cart\">カートに入れる</button></li>
</ul>
<style type=\"text/css\">
.reservation4-add-cart-disabled, .reservation4-add-cart { background-color: #30AADD !important; border-color: #30AADD !important;}
</style>
</div> ";
// line 266
echo " ";
} else {
// line 267
echo " ";
// line 268
echo " <div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"button\" class=\"btn btn-default btn-block\" disabled=\"disabled\">ただいま品切れ中です</button>
</li>
</ul>
<div class=\"link-line\">再入荷のお知らせはLINE@(<a href=\"https://line.me/R/ti/p/%40fal2540t\" target=\"_blank\">お友だち登録後</a>)より、ご希望の商品名をトークよりいただけるとうれしいです。</div>
</div> ";
// line 276
echo " ";
}
echo " ";
// line 277
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 277, $this->source); })()), 'rest');
echo "
</form>
<form action=\"";
// line 279
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["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.', 279, $this->source); })()), "id", [], "any", false, false, false, 279)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"btn_area\">
";
// line 282
echo " ";
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.', 282, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 282)) {
// line 283
echo " <ul id=\"detail_cart_box__favorite_button\" class=\"row\">
";
// line 284
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 284, $this->source); })()) == false)) {
// line 285
echo " <li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"favorite\" class=\"btn btn-info-border btn-block prevention-btn prevention-mask\"><svg class=\"cb cb-heart-circle\"><use xlink:href=\"#cb-heart-circle\"></use></svg>お気に入りに追加</button></li>
";
} else {
// line 287
echo " <li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"favorite\" class=\"btn btn-info-border btn-block\" disabled=\"disabled\"><svg class=\"cb cb-heart-circle\"><use xlink:href=\"#cb-heart-circle\"></use></svg>お気に入りに追加済みです</button></li>
";
}
// line 289
echo " </ul>
";
}
// line 291
echo " </div>
</form>
</div>
<!--▲買い物かご-->
<!--★商品説明★-->
<p id=\"detail_not_stock_box__description_detail\" class=\"item_comment ec-productRole__tags\">";
// line 297
echo twig_nl2br(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.', 297, $this->source); })()), "description_detail", [], "any", false, false, false, 297));
echo "</p>
<!--▼商品コード-->
<p id=\"detail_description_box__item_range_code\" class=\"item_code\" style=\"padding-bottom:0;\">商品コード: <span id=\"item_code_default\">
";
// line 301
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 301, $this->source); })()), "code_min", [], "any", false, false, false, 301), "html", null, true);
echo "
";
// line 302
if ((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.', 302, $this->source); })()), "code_min", [], "any", false, false, false, 302) != 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.', 302, $this->source); })()), "code_max", [], "any", false, false, false, 302))) {
echo " ~ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 302, $this->source); })()), "code_max", [], "any", false, false, false, 302), "html", null, true);
}
// line 303
echo " </span> </p>
<!--▲商品コード-->
<!--▼重さ・サイズ係数-->
<div id=\"product_weight_size\" class=\"product_weight_size\">
<!-- product_weight_size -->
";
// line 309
echo twig_include($this->env, $context, "Product/weight_size.twig");
echo "
</div>
<!--▲重さ・サイズ係数▲-->
</div>
<!-- /.item_detail -->
</section>
<!--詳細ここまで-->
</div>
";
// line 321
echo " ";
if (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); })()), "freearea", [], "any", false, false, false, 321)) {
// line 322
echo " <div id=\"sub_area\" class=\"row\">
<div class=\"col-sm-10 col-sm-offset-1\">
<div id=\"detail_free_box__freearea\" class=\"freearea\">";
// line 324
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 324, $this->source); })()), "freearea", [], "any", false, false, false, 324)));
echo "</div>
</div>
</div>
";
}
// line 328
echo "</div>
<!-- ▲item_detail▲ -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Product/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 786 => 328, 779 => 324, 775 => 322, 772 => 321, 758 => 309, 750 => 303, 745 => 302, 741 => 301, 734 => 297, 726 => 291, 722 => 289, 718 => 287, 714 => 285, 712 => 284, 709 => 283, 706 => 282, 701 => 279, 695 => 277, 691 => 276, 682 => 268, 680 => 267, 677 => 266, 667 => 257, 663 => 254, 657 => 253, 651 => 251, 648 => 250, 644 => 249, 636 => 244, 632 => 243, 627 => 240, 624 => 238, 620 => 236, 614 => 233, 610 => 232, 607 => 231, 604 => 230, 599 => 227, 595 => 226, 592 => 225, 589 => 223, 586 => 222, 583 => 220, 581 => 219, 576 => 217, 571 => 214, 565 => 211, 562 => 210, 560 => 209, 557 => 208, 551 => 207, 548 => 206, 545 => 205, 542 => 204, 537 => 203, 534 => 202, 531 => 199, 528 => 195, 522 => 193, 518 => 191, 516 => 190, 513 => 189, 511 => 188, 507 => 186, 504 => 185, 496 => 183, 490 => 181, 488 => 180, 486 => 179, 483 => 178, 481 => 167, 478 => 166, 472 => 164, 470 => 163, 465 => 162, 462 => 161, 460 => 160, 457 => 159, 454 => 158, 448 => 157, 445 => 156, 442 => 155, 439 => 154, 434 => 153, 432 => 152, 429 => 151, 427 => 150, 424 => 149, 421 => 147, 418 => 146, 415 => 142, 413 => 141, 410 => 140, 402 => 138, 400 => 137, 395 => 136, 393 => 135, 391 => 134, 387 => 132, 381 => 128, 370 => 126, 366 => 125, 362 => 123, 360 => 122, 353 => 117, 338 => 115, 311 => 113, 294 => 112, 287 => 111, 270 => 110, 262 => 105, 255 => 100, 244 => 97, 241 => 96, 223 => 93, 218 => 92, 200 => 91, 191 => 84, 181 => 83, 128 => 38, 120 => 36, 118 => 35, 113 => 33, 110 => 32, 108 => 31, 95 => 21, 91 => 19, 81 => 18, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
{% endblock %}
{% block javascript %}
<script>
eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var \$form = \$(form);
var product_id = \$form.find('input[name=product_id]').val();
var \$sele1 = \$form.find('select[name=classcategory_id1]');
var \$sele2 = \$form.find('select[name=classcategory_id2]');
eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
}
{% if form.classcategory_id2 is defined %}
fnSetClassCategories(
\$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
);
{% elseif form.classcategory_id1 is defined %}
eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
{% endif %}
</script>
<script>
\$('.carousel').slick({
infinite: false,
speed: 300,
prevArrow:'<button type=\"button\" class=\"slick-prev\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
nextArrow:'<button type=\"button\" class=\"slick-next\"><span class=\"angle-circle\"><svg class=\"cb cb-angle-right\"><use xlink:href=\"#cb-angle-right\" /></svg></span></button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
}
]
});
\$('.slides').slick({
dots: true,
arrows: false,
speed: 300,
customPaging: function(slider, i) {
return '<button class=\"thumbnail\">' + \$(slider.\$slides[i]).find('img').prop('outerHTML') + '</button>';
}
});
\$('#favorite').click(function() {
\$('#mode').val('add_favorite');
});
\$('#add-cart').click(function() {
\$('#mode').val('add_cart');
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
</script>
{% endblock %}
{% block main %}
<!-- ▼item_detail▼ -->
<div id=\"item_detail\">
<div id=\"detail_wrap\" class=\"row\">
<!--★画像★-->
<div id=\"item_photo_area\" class=\"col-sm-6\">
<div id=\"detail_image_box__slides\" class=\"slides\">
{% for ProductImage in Product.ProductImage %}
<div id=\"detail_image_box__item--{{ loop.index }}\">
<img class=\"zoom\" src=\"{{ asset(ProductImage, 'save_image') }}\" data-zoom-image=\"{{ asset(ProductImage, 'save_image') }}\"/>
</div>
{% else %}
<div id=\"detail_image_box__item\">
<img class=\"zoom\" src=\"{{ asset(''|no_image_product, 'save_image') }}\" data-zoom-image=\"{{ asset(''|no_image_product, 'save_image') }}\"/>
</div>
{% endfor %}
</div>
</div>
<section id=\"item_detail_area\" class=\"col-sm-6\">
<!--★商品名★-->
<h3 id=\"detail_description_box__name\" class=\"item_name\">{{ Product.name }}</h3>
<!-- ▼関連カテゴリ▼ -->
<div id=\"relative_category_box\" class=\"relative_cat\">
<!--<p>関連カテゴリ</p>-->
{% for ProductCategory in Product.ProductCategories %}
<ol id=\"relative_category_box__relative_category--{{ ProductCategory.product_id }}_{{ loop.index }}\">
{% for Category in ProductCategory.Category.path %}
<li><a id=\"relative_category_box__relative_category--{{ ProductCategory.product_id }}_{{ loop.parent.loop.index }}_{{ Category.id }}\" href=\"{{ url('product_list') }}?category_id={{ Category.id }}\" class=\"btn btn-info-border\">{{ Category.name }}</a></li>
{% endfor %}
</ol>
{% endfor %}
</div>
<!-- ▲関連カテゴリ▲ -->
<div id=\"detail_description_box__body\" class=\"item_detail\">
{% if Product.Tags is not empty %}
<!--▼商品タグ-->
<div id=\"product_tag_box\" class=\"product_tag\">
{% for Tag in Product.Tags %}
<span id=\"product_tag_box__product_tag--{{ Tag.id }}\" class=\"product_tag_list\">{{ Tag }}</span>
{% endfor %}
</div>
<hr>
<!--▲商品タグ-->
{% endif %}
<!--★通常価格★-->
{% if Product.hasProductClass -%}
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<p id=\"detail_description_box__class_normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">{{ Product.getPrice01IncTaxMin|price }}</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<p id=\"detail_description_box__class_normal_range_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
{% endif %}
{% else -%}
{% if Product.getPrice01Max is not null and Product.getPrice01Max > 0 %}
<span class=\"tax_management-list_price\"></span>
{#
<p id=\"detail_description_box__normal_price\" class=\"normal_price\"> 通常価格:<span class=\"price01_default\">{{ Product.getPrice01IncTaxMin|price }}</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
#}
{% endif %}
{% endif -%}
<!--★販売価格★-->
{% set flag = false %}
{% if Product.ProductCategories is not empty %}
{% for category in Product.ProductCategories %}
{% if category.Category.id == 148 or category.Category.id == 133 or category.Category.id == 144 or category.Category.id == 116 %}
{% set flag = true %}
{% endif %}
{% endfor %}
{% endif %}
{% if flag != true and discount_flag %}
{% if is_granted('ROLE_USER') %}
<span style=\"color:red;\">[{{ discount_ratio }}%割引対象商品です]</span>
{% elseif nonmember_flag %}
<span style=\"color:red;\">[{{ nonmember_ratio }}%割引対象商品です]</span>
{% endif %}
{% endif %}
{# % set flag = false %}
{% if Product.ProductTag is not empty %}
{% for ProductTag in Product.ProductTag %}
{% if ProductTag.Tag.id == 1 or ProductTag.Tag.id == 3 or ProductTag.Tag.id == 5 or ProductTag.Tag.id == 6 %}
{% set flag = true %}
{% endif %}
{% endfor %}
{% endif %}
{% if flag != true %}
<span style=\"color:red;\">[5%割引対象商品です]</span><br>
{% endif % #}
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<p id=\"detail_description_box__class_sale_price\" class=\"sale_price text-primary\"> <span class=\"price02_default\">{{ Product.getPrice02IncTaxMin|price }}</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
{% else %}
<p id=\"detail_description_box__class_range_sale_price\" class=\"sale_price text-primary\"> <span class=\"price02_default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span><span class=\"small\"><small>(税込)</small></span><span class=\"small hide\">税込</span></p>
{% endif %}
{% else -%}
<span class=\"tax_management-sale_price\"></span>
<small>
{% if Product.stock_min >= 5 %}
在庫あり
{% elseif Product.stock_min == null %}
在庫あり
{% else %}
在庫:{{ Product.stock_min }}
{% endif %}
</small>
{#
<p id=\"detail_description_box__sale_price\" class=\"sale_price text-primary\"> <span class=\"price02_default\">{{ Product.getPrice02IncTaxMin|price }}</span><span class=\"small\"><small>(税込) 在庫:{{ Product.stock_min }}</small></span><span class=\"small hide\">税込</span></p>
#}
{% endif -%}
{# タグID7「取扱商品」の判定とテキスト表示 #}
{% set hasHandlingTag = false %}
{% for tag in Product.Tags %}
{% if tag.id == 7 %}
{% set hasHandlingTag = true %}
{% endif %}
{% endfor %}
{% if hasHandlingTag and Product.tag7DisplayText is not empty %}
<div class=\"handling-product-notice mt-3 p-3 border rounded bg-light\">
<p class=\"mb-0\">{{ Product.tag7DisplayText|nl2br }}</p>
</div>
{% endif %}
<div id=\"detail_cart_box\" class=\"cart_area\">
<form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
{% if Product.stock_find %}
{# 規格 #}
{% if form.classcategory_id1 is defined %}
<ul id=\"detail_cart_box__cart_class_category_id\" class=\"classcategory_list\">
{# 規格1 #}
<li>
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</li>
{# 規格2 #}
{% if form.classcategory_id2 is defined %}
<li>
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</li>
{% endif %}
</ul>
{% endif %}
{# 数量 #}
<dl id=\"detail_cart_box__cart_quantity\" class=\"quantity\">
<dt>数量</dt>
<dd>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
</dd>
</dl>
<div class=\"extra-form\">
{% for f in form.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_row(f) }}
{% endif %}
{% endfor %}
</div>
{# カートボタン #}
<div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul id=\"detail_cart_box__insert_button\" class=\"row\">
<li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"add-cart\" class=\"btn btn-primary btn-block prevention-btn prevention-mask add-cart\">カートに入れる</button></li>
</ul>
<style type=\"text/css\">
.reservation4-add-cart-disabled, .reservation4-add-cart { background-color: #30AADD !important; border-color: #30AADD !important;}
</style>
</div> {#End div#detail_cart_box__button_area #}
{% else %}
{# 在庫がない場合は品切れボタンを表示 #}
<div id=\"detail_cart_box__button_area\" class=\"btn_area\">
<ul class=\"row\">
<li class=\"col-xs-12 col-sm-8\">
<button type=\"button\" class=\"btn btn-default btn-block\" disabled=\"disabled\">ただいま品切れ中です</button>
</li>
</ul>
<div class=\"link-line\">再入荷のお知らせはLINE@(<a href=\"https://line.me/R/ti/p/%40fal2540t\" target=\"_blank\">お友だち登録後</a>)より、ご希望の商品名をトークよりいただけるとうれしいです。</div>
</div> {#End div#detail_cart_box__button_area #}
{% endif %} {#End stock find#}
{{ form_rest(form) }}
</form>
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
<div class=\"btn_area\">
{#Favorite product button#}
{% if BaseInfo.option_favorite_product %}
<ul id=\"detail_cart_box__favorite_button\" class=\"row\">
{% if is_favorite == false %}
<li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"favorite\" class=\"btn btn-info-border btn-block prevention-btn prevention-mask\"><svg class=\"cb cb-heart-circle\"><use xlink:href=\"#cb-heart-circle\"></use></svg>お気に入りに追加</button></li>
{% else %}
<li class=\"col-xs-12 col-sm-8\"><button type=\"submit\" id=\"favorite\" class=\"btn btn-info-border btn-block\" disabled=\"disabled\"><svg class=\"cb cb-heart-circle\"><use xlink:href=\"#cb-heart-circle\"></use></svg>お気に入りに追加済みです</button></li>
{% endif %}
</ul>
{% endif %}
</div>
</form>
</div>
<!--▲買い物かご-->
<!--★商品説明★-->
<p id=\"detail_not_stock_box__description_detail\" class=\"item_comment ec-productRole__tags\">{{ Product.description_detail|raw|nl2br }}</p>
<!--▼商品コード-->
<p id=\"detail_description_box__item_range_code\" class=\"item_code\" style=\"padding-bottom:0;\">商品コード: <span id=\"item_code_default\">
{{ Product.code_min }}
{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}
</span> </p>
<!--▲商品コード-->
<!--▼重さ・サイズ係数-->
<div id=\"product_weight_size\" class=\"product_weight_size\">
<!-- product_weight_size -->
{{ include('Product/weight_size.twig') }}
</div>
<!--▲重さ・サイズ係数▲-->
</div>
<!-- /.item_detail -->
</section>
<!--詳細ここまで-->
</div>
{# フリーエリア #}
{% if Product.freearea %}
<div id=\"sub_area\" class=\"row\">
<div class=\"col-sm-10 col-sm-offset-1\">
<div id=\"detail_free_box__freearea\" class=\"freearea\">{{ include(template_from_string(Product.freearea)) }}</div>
</div>
</div>
{% endif %}
</div>
<!-- ▲item_detail▲ -->
{% endblock %}", "Product/detail.twig", "/home/xs022445/unotame.com/public_html/liquor-sato/app/template/default/Product/detail.twig");
}
}