<?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_slug.twig */
class __TwigTemplate_e8575d465f224fb093c84eb18cc7238cdf8bcad3d06ac3e578120fe1aad16ddd 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail_slug.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail_slug.twig"));
// line 13
$context["body_class"] = "product_page";
// line 15
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), [0 => "Form/form_div_layout.twig"], true);
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail_slug.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 17
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 18
echo " <style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: none!important;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
";
// line 94
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.', 94, $this->source); })()), "Tags", [], "any", false, false, false, 94));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 95
echo " .ec-productRole__tag.tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 95), "html", null, true);
echo "{
";
// line 96
if (twig_get_attribute($this->env, $this->source, $context["Tag"], "text_color", [], "any", false, false, false, 96)) {
echo "color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "text_color", [], "any", false, false, false, 96), "html", null, true);
echo ";";
}
// line 97
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Tag"], "background_color", [], "any", false, false, false, 97)) {
echo "background-color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "background_color", [], "any", false, false, false, 97), "html", null, true);
echo ";";
}
// line 98
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Tag"], "border_color", [], "any", false, false, false, 98)) {
echo "border-color: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "border_color", [], "any", false, false, false, 98), "html", null, true);
echo ";";
}
// line 99
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 101
echo "
.ec-productRole .ec-productRole__btn {
width: 100%;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 108
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 109
echo "<script>
eccube.classCategories = ";
// line 110
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.', 110, $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 121
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 121)) {
// line 122
echo " fnSetClassCategories(
\$('#form1'), ";
// line 123
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.', 123, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 123), "vars", [], "any", false, false, false, 123), "value", [], "any", false, false, false, 123));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 125
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 125)) {
// line 126
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.', 126, $this->source); })()), "id", [], "any", false, false, false, 126), "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.', 126, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 126), "vars", [], "any", false, false, false, 126), "value", [], "any", false, false, false, 126));
echo ", null);
";
}
// line 128
echo " </script>
<script>
\$(function() {
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
\$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
\$('.slideThumb').on('click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
})
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
";
// line 158
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 158)) {
// line 159
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
";
}
// line 167
echo "
";
// line 168
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 168)) {
// line 169
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 171
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
";
}
// line 177
echo " event.preventDefault();
\$form = \$('#form1');
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"";
// line 198
echo $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 205
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"Product\",
\"name\": \"";
// line 225
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 225, $this->source); })()), "name", [], "any", false, false, false, 225), "html", null, true);
echo "\",
\"image\": [
";
// line 227
$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.', 227, $this->source); })()), "ProductImage", [], "any", false, false, false, 227));
$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["img"]) {
// line 228
echo " \"";
echo twig_escape_filter($this->env, 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.', 228, $this->source); })()), "request", [], "any", false, false, false, 228), "schemeAndHttpHost", [], "any", false, false, false, 228), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["img"], "save_image"), "html", null, true);
echo "\"";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 228)) {
echo ",";
}
// line 229
echo "
";
$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 231
echo " \"";
echo twig_escape_filter($this->env, 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.', 231, $this->source); })()), "request", [], "any", false, false, false, 231), "schemeAndHttpHost", [], "any", false, false, false, 231), "html", null, true);
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 "\"
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 233
echo " ],
\"description\": \"";
// line 234
echo twig_escape_filter($this->env, twig_slice($this->env, twig_replace_filter(((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", true, true, false, 234)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, false, 234), 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.', 234, $this->source); })()), "description_detail", [], "any", false, false, false, 234))) : (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.', 234, $this->source); })()), "description_detail", [], "any", false, false, false, 234))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 235
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.', 235, $this->source); })()), "code_min", [], "any", false, false, false, 235)) {
// line 236
echo " \"sku\": \"";
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.', 236, $this->source); })()), "code_min", [], "any", false, false, false, 236), "html", null, true);
echo "\",
";
}
// line 238
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail_slug", ["slug" => 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.', 240, $this->source); })()), "slug", [], "any", false, false, false, 240)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 241
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 241, $this->source); })()), "currency", [], "any", false, false, false, 241), "html", null, true);
echo "\",
\"price\": ";
// line 242
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.', 242, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 242), "html", null, true);
echo ",
\"availability\": \"";
// line 243
echo ((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.', 243, $this->source); })()), "stock_find", [], "any", false, false, false, 243)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 249
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 250
echo " <div class=\"ec-productRole mb60 pb60 dottedBd\">
<div class=\"displaySp mb10\">
";
// line 253
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 253, $this->source); })()), "colorOrSize", [], "array", false, false, false, 253) != "")) {
// line 254
echo " ";
if ((isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName", $context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.', 254, $this->source); })())) {
// line 255
echo " <p class=\"mb10\">
";
// line 256
echo twig_escape_filter($this->env, (isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName", $context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.', 256, $this->source); })()), "html", null, true);
echo "
</p>
";
}
// line 259
echo " <div>
<ul class=\"detailColor\">
";
// line 261
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ProductList"]) || array_key_exists("ProductList", $context) ? $context["ProductList"] : (function () { throw new RuntimeError('Variable "ProductList" does not exist.', 261, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["product"]) {
// line 262
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "productData", [], "any", false, false, false, 262), "getId", [], "any", false, false, false, 262) != 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.', 262, $this->source); })()), "id", [], "any", false, false, false, 262))) {
// line 263
echo " <li class=\"detailColorItem mb10\">
<a href=\"";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "productData", [], "any", false, false, false, 264), "getId", [], "any", false, false, false, 264)]), "html", null, true);
echo "\">
";
// line 265
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "colorOrSize", [], "any", false, false, false, 265), "html", null, true);
echo "
</a>
</li>
";
} else {
// line 269
echo " <li class=\"detailColorItem mb10\">
<a href=\"#\" class=\"active\">
";
// line 271
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "colorOrSize", [], "any", false, false, false, 271), "html", null, true);
echo "
</a>
</li>
";
}
// line 275
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 276
echo " </ul>
</div>
";
}
// line 279
echo " </div>
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
";
// line 284
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 284, $this->source); })()), "ProductImage", [], "any", false, false, false, 284));
$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 285
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 285)) ? (print (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.', 285, $this->source); })()), "name", [], "any", false, false, false, 285), "html", null, true))) : (print ("")));
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 287
echo " <div class=\"slide-item\"><img src=\"";
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 "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 287)) ? (print (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.', 287, $this->source); })()), "name", [], "any", false, false, false, 287), "html", null, true))) : (print ("")));
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 289
echo " </div>
<div class=\"item_nav\">
";
// line 291
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 291, $this->source); })()), "ProductImage", [], "any", false, false, false, 291));
$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 292
echo " <div class=\"slideThumb\" data-index=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 292), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"\"></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['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 294
echo " </div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
";
// line 300
echo " <ul class=\"ec-productRole__tags noBb\">
";
// line 301
$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.', 301, $this->source); })()), "Tags", [], "any", false, false, false, 301));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 302
echo " <li class=\"ec-productRole__tag tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 302), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["Tag"], "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 304
echo " </ul>
";
// line 306
echo " <div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">";
// line 307
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.', 307, $this->source); })()), "name", [], "any", false, false, false, 307), "html", null, true);
echo "</h2>
</div>
";
// line 309
if (twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 309, $this->source); })()), "description_list", [], "any", false, false, false, 309)) {
// line 310
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 310, $this->source); })()), "description_list", [], "any", false, false, false, 310), "html", null, true);
echo "</p>
";
}
// line 312
echo " <br>
";
// line 314
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 314, $this->source); })()), "colorOrSize", [], "array", false, false, false, 314) != "")) {
// line 315
echo " ";
if ((isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName", $context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.', 315, $this->source); })())) {
// line 316
echo " <p class=\"mb10 displayPc\">
";
// line 317
echo twig_escape_filter($this->env, (isset($context["StandardClassificationName"]) || array_key_exists("StandardClassificationName", $context) ? $context["StandardClassificationName"] : (function () { throw new RuntimeError('Variable "StandardClassificationName" does not exist.', 317, $this->source); })()), "html", null, true);
echo "
</p>
";
}
// line 320
echo " <div class=\"displayPc\">
<ul class=\"detailColor\">
";
// line 322
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ProductList"]) || array_key_exists("ProductList", $context) ? $context["ProductList"] : (function () { throw new RuntimeError('Variable "ProductList" does not exist.', 322, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["product"]) {
// line 323
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "productData", [], "any", false, false, false, 323), "getId", [], "any", false, false, false, 323) != 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.', 323, $this->source); })()), "id", [], "any", false, false, false, 323))) {
// line 324
echo " <li class=\"detailColorItem mb10\">
<a href=\"";
// line 325
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "productData", [], "any", false, false, false, 325), "getId", [], "any", false, false, false, 325)]), "html", null, true);
echo "\">
";
// line 326
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "colorOrSize", [], "any", false, false, false, 326), "html", null, true);
echo "
</a>
</li>
";
} else {
// line 330
echo " <li class=\"detailColorItem mb10\">
<a href=\"#\" class=\"active\">
";
// line 332
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "colorOrSize", [], "any", false, false, false, 332), "html", null, true);
echo "
</a>
</li>
";
}
// line 336
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 337
echo " </ul>
</div>
";
}
// line 340
echo " <br>
";
// line 342
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 342, $this->source); })()), "catch", [], "array", false, false, false, 342) != null)) {
// line 343
echo " <div class=\"dottedBd\" style=\"padding-bottom: 20px;\">
<p style=\"color: red\">";
// line 344
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 344, $this->source); })()), "catch", [], "array", false, false, false, 344), "html", null, true);
echo "</p>
</div>
";
}
// line 347
echo " ";
// line 348
echo " ";
if ((((isset($context["GroupId"]) || array_key_exists("GroupId", $context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.', 348, $this->source); })()) == 4) && 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.', 348, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 348))) {
// line 349
echo " ";
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.', 349, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 349))) {
// line 350
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.normal_price"), "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.', 350, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 350)), "html", null, true);
echo "</span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 351
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.tax_include"), "html", null, true);
echo "</span>
";
}
// line 353
echo " ";
}
// line 354
echo "
";
// line 356
echo " ";
if (((isset($context["GroupId"]) || array_key_exists("GroupId", $context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.', 356, $this->source); })()) == 3)) {
// line 357
echo " <p>卸価格</p>
";
// line 359
echo " ";
} elseif (((isset($context["GroupId"]) || array_key_exists("GroupId", $context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.', 359, $this->source); })()) == 4)) {
// line 360
echo " <p>官公庁職員価格</p>
";
}
// line 362
echo "
";
// line 364
echo " <div class=\"ec-productRole__price\">
";
// line 365
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.', 365, $this->source); })()), "hasProductClass", [], "any", false, false, false, 365)) {
// line 366
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.', 366, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 366) == 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.', 366, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 366))) {
// line 367
echo " <div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">";
// line 368
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.', 368, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 368)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 369
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 372
echo " <div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">";
// line 373
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.', 373, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 373)), "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.', 373, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 373)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 374
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 377
echo " ";
} else {
// line 378
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 379
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.', 379, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 379)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 380
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 383
echo "
";
// line 385
echo " ";
if (((((isset($context["GroupId"]) || array_key_exists("GroupId", $context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.', 385, $this->source); })()) == 1) || ((isset($context["GroupId"]) || array_key_exists("GroupId", $context) ? $context["GroupId"] : (function () { throw new RuntimeError('Variable "GroupId" does not exist.', 385, $this->source); })()) == 4)) && 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.', 385, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 385))) {
// line 386
echo " ";
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.', 386, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 386))) {
// line 387
echo " ";
$context["discountRate"] = ((1.0 - (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.', 387, $this->source); })()), "getPrice02Min", [], "any", false, false, false, 387) / 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.', 387, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 387))) * 100);
// line 388
echo " <div class=\"ec-color-red ec-font-size-3\">(通常価格より ";
echo twig_escape_filter($this->env, twig_round((isset($context["discountRate"]) || array_key_exists("discountRate", $context) ? $context["discountRate"] : (function () { throw new RuntimeError('Variable "discountRate" does not exist.', 388, $this->source); })())), "html", null, true);
echo "% 割引)</div>
";
}
// line 390
echo " ";
}
// line 391
echo " </div>
";
// line 394
echo " ";
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.', 394, $this->source); })()), "code_min", [], "any", false, false, false, 394))) {
// line 395
echo " <div class=\"ec-productRole__code\">
";
// line 396
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SKUコード"), "html", null, true);
echo ": <span class=\"product-code-default\">";
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.', 396, $this->source); })()), "code_min", [], "any", false, false, false, 396), "html", null, true);
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.', 396, $this->source); })()), "code_min", [], "any", false, false, false, 396) != 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.', 396, $this->source); })()), "code_max", [], "any", false, false, false, 396))) {
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.', 396, $this->source); })()), "code_max", [], "any", false, false, false, 396), "html", null, true);
}
echo "</span>
</div>
";
}
// line 399
echo " ";
// line 400
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 400, $this->source); })()), "jan", [], "array", false, false, false, 400) != null)) {
// line 401
echo " <div class=\"ec-productRole__code\">
";
// line 402
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("JANコード"), "html", null, true);
echo ": <span class=\"product-code-default\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 402, $this->source); })()), "jan", [], "array", false, false, false, 402), "html", null, true);
echo "</span>
</div>
";
}
// line 405
echo " ";
// line 406
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 406, $this->source); })()), "upc", [], "array", false, false, false, 406) != null)) {
// line 407
echo " <div class=\"ec-productRole__code\">
";
// line 408
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("UPCコード"), "html", null, true);
echo ": <span class=\"product-code-default\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ProductDataList"]) || array_key_exists("ProductDataList", $context) ? $context["ProductDataList"] : (function () { throw new RuntimeError('Variable "ProductDataList" does not exist.', 408, $this->source); })()), "upc", [], "array", false, false, false, 408), "html", null, true);
echo "</span>
</div>
";
}
// line 411
echo " ";
// line 412
echo " ";
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.', 412, $this->source); })()), "ProductCategories", [], "any", false, false, false, 412))) {
// line 413
echo " <div class=\"ec-productRole__category\">
<div>";
// line 414
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html", null, true);
echo "</div>
";
// line 415
$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.', 415, $this->source); })()), "ProductCategories", [], "any", false, false, false, 415));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 416
echo " <ul>
<li>
";
// line 418
if (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 418), "path", [], "any", false, false, false, 418)) == 2) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 418), "path", [], "any", false, false, false, 418), 1, [], "array", false, false, false, 418), "name", [], "any", false, false, false, 418) == "在庫限り・取り扱い終了"))) {
// line 419
echo " ";
// line 420
echo " ";
} else {
// line 421
echo " ";
$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, 421), "path", [], "any", false, false, false, 421));
$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 422
echo " <a href=\"";
echo $this->extensions['Customize\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, 422), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, false, 422), "html", null, true);
echo "</a>";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 422) == false)) {
// line 423
echo " <span>></span>";
}
++$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 425
echo " ";
}
// line 426
echo " </li>
</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 429
echo " </div>
";
}
// line 431
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 431, $this->source); })()), "id", [], "any", false, false, false, 431)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 432
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.', 432, $this->source); })()), "stock_find", [], "any", false, false, false, 432)) {
// line 433
echo " <div class=\"ec-productRole__actions\">
";
// line 435
echo " <div>
";
// line 436
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 436, $this->source); })()), "getProductClasses", [], "any", false, false, false, 436), 0, [], "array", false, false, false, 436), "getStock", [], "any", false, false, false, 436))) {
// line 437
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("在庫"), "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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 437, $this->source); })()), "getProductClasses", [], "any", false, false, false, 437), 0, [], "array", false, false, false, 437), "getStock", [], "any", false, false, false, 437), "html", null, true);
echo "</p>
";
} else {
// line 439
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("在庫"), "html", null, true);
echo ":無制限</p>
";
}
// line 441
echo " </div>
</div>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 445
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 449
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 451
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 455
echo "
";
// line 456
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.', 456, $this->source); })()), 'rest');
echo "
</form>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 461
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 462
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 465
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 466
echo $this->extensions['Customize\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
";
// line 472
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.', 472, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 472)) {
// line 473
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 473, $this->source); })()), "id", [], "any", false, false, false, 473)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__btn\">
";
// line 475
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 475, $this->source); })()) == false)) {
// line 476
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\" style=\"margin: 0\">
";
// line 477
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html", null, true);
echo "
</button>
";
} else {
// line 480
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 481
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 484
echo " </div>
</form>
";
}
// line 487
echo "
<div>
<p>※ 当社取扱い商品には、軍や法執行機関の実務要求に特化し、一般の民生品とは異なる用途を想定して、設計・材料変更・製造されたものが多くございます。 さらに大量供給を前提に実用品として生産されるため色の個体差やネジの硬さなどが大きく異なる場合がございます。 また予備知識や訓練が必要な商品もございます。 購入時にはご了承の上、十分ご注意頂くようお願い申し上げます。</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-productRole__description\">
";
// line 497
echo twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 497, $this->source); })()), "description_detail", [], "any", false, false, false, 497);
echo "
</div>
";
// line 499
if (twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 499, $this->source); })()), "freearea", [], "any", false, false, false, 499)) {
// line 500
echo " <div class=\"ec-productRole__description\">
";
// line 501
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["PriorityProduct"]) || array_key_exists("PriorityProduct", $context) ? $context["PriorityProduct"] : (function () { throw new RuntimeError('Variable "PriorityProduct" does not exist.', 501, $this->source); })()), "freearea", [], "any", false, false, false, 501)));
echo "
</div>
";
}
// line 504
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/detail_slug.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1170 => 504, 1164 => 501, 1161 => 500, 1159 => 499, 1154 => 497, 1142 => 487, 1137 => 484, 1131 => 481, 1128 => 480, 1122 => 477, 1119 => 476, 1117 => 475, 1111 => 473, 1109 => 472, 1098 => 466, 1094 => 465, 1088 => 462, 1084 => 461, 1076 => 456, 1073 => 455, 1066 => 451, 1062 => 449, 1055 => 445, 1049 => 441, 1043 => 439, 1035 => 437, 1033 => 436, 1030 => 435, 1027 => 433, 1025 => 432, 1020 => 431, 1016 => 429, 1008 => 426, 1005 => 425, 990 => 423, 981 => 422, 963 => 421, 960 => 420, 958 => 419, 956 => 418, 952 => 416, 948 => 415, 944 => 414, 941 => 413, 938 => 412, 936 => 411, 928 => 408, 925 => 407, 922 => 406, 920 => 405, 912 => 402, 909 => 401, 906 => 400, 904 => 399, 892 => 396, 889 => 395, 886 => 394, 882 => 391, 879 => 390, 873 => 388, 870 => 387, 867 => 386, 864 => 385, 861 => 383, 855 => 380, 851 => 379, 848 => 378, 845 => 377, 839 => 374, 833 => 373, 830 => 372, 824 => 369, 820 => 368, 817 => 367, 815 => 366, 813 => 365, 810 => 364, 807 => 362, 803 => 360, 800 => 359, 797 => 357, 794 => 356, 791 => 354, 788 => 353, 783 => 351, 776 => 350, 773 => 349, 770 => 348, 768 => 347, 762 => 344, 759 => 343, 756 => 342, 753 => 340, 748 => 337, 742 => 336, 735 => 332, 731 => 330, 724 => 326, 720 => 325, 717 => 324, 714 => 323, 710 => 322, 706 => 320, 700 => 317, 697 => 316, 694 => 315, 691 => 314, 688 => 312, 682 => 310, 680 => 309, 675 => 307, 672 => 306, 669 => 304, 658 => 302, 654 => 301, 651 => 300, 644 => 294, 625 => 292, 608 => 291, 604 => 289, 593 => 287, 575 => 285, 557 => 284, 550 => 279, 545 => 276, 539 => 275, 532 => 271, 528 => 269, 521 => 265, 517 => 264, 514 => 263, 511 => 262, 507 => 261, 503 => 259, 497 => 256, 494 => 255, 491 => 254, 488 => 253, 484 => 250, 474 => 249, 459 => 243, 455 => 242, 451 => 241, 447 => 240, 443 => 238, 437 => 236, 435 => 235, 430 => 234, 427 => 233, 417 => 231, 403 => 229, 395 => 228, 377 => 227, 372 => 225, 349 => 205, 339 => 198, 316 => 177, 307 => 171, 303 => 169, 301 => 168, 298 => 167, 289 => 161, 285 => 159, 283 => 158, 251 => 128, 243 => 126, 241 => 125, 236 => 123, 233 => 122, 231 => 121, 217 => 110, 214 => 109, 204 => 108, 189 => 101, 182 => 99, 175 => 98, 168 => 97, 162 => 96, 157 => 95, 152 => 94, 75 => 18, 65 => 17, 54 => 11, 52 => 15, 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' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: none!important;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
{# タグ #}
{% for Tag in Product.Tags %}
.ec-productRole__tag.tag_{{ Tag.id }}{
{% if Tag.text_color %}color: {{ Tag.text_color }};{% endif %}
{% if Tag.background_color %}background-color: {{ Tag.background_color }};{% endif %}
{% if Tag.border_color %}border-color: {{ Tag.border_color }};{% endif %}
}
{% endfor %}
.ec-productRole .ec-productRole__btn {
width: 100%;
}
</style>
{% 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>
\$(function() {
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
\$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
\$('.slideThumb').on('click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
})
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
{% if form.classcategory_id1 is defined %}
// 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
{% endif %}
{% if form.classcategory_id2 is defined %}
// 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
{% endif %}
event.preventDefault();
\$form = \$('#form1');
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"{{ url('block_cart') }}\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"Product\",
\"name\": \"{{ Product.name }}\",
\"image\": [
{% for img in Product.ProductImage %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
{% else %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
{% endfor %}
],
\"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
{% if Product.code_min %}
\"sku\": \"{{ Product.code_min }}\",
{% endif %}
\"offers\": {
\"@type\": \"Offer\",
\"url\": \"{{ url('product_detail_slug', {'slug': Product.slug}) }}\",
\"priceCurrency\": \"{{ eccube_config.currency }}\",
\"price\": {{ Product.getPrice02IncTaxMin }},
\"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
}
}
</script>
{% endblock %}
{% block main %}
<div class=\"ec-productRole mb60 pb60 dottedBd\">
<div class=\"displaySp mb10\">
{# 色/サイズ #}
{% if ProductDataList['colorOrSize'] != \"\" %}
{% if StandardClassificationName %}
<p class=\"mb10\">
{{ StandardClassificationName }}
</p>
{% endif %}
<div>
<ul class=\"detailColor\">
{% for key, product in ProductList %}
{% if product.productData.getId != Product.id %}
<li class=\"detailColorItem mb10\">
<a href=\"{{ url('product_detail', {'id': product.productData.getId}) }}\">
{{ product.colorOrSize }}
</a>
</li>
{% else %}
<li class=\"detailColorItem mb10\">
<a href=\"#\" class=\"active\">
{{ product.colorOrSize }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
</div>
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
{% for ProductImage in PriorityProduct.ProductImage %}
<div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\"></div>
{% else %}
<div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" /></div>
{% endfor %}
</div>
<div class=\"item_nav\">
{% for ProductImage in PriorityProduct.ProductImage %}
<div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\"></div>
{% endfor %}
</div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
{# タグ #}
<ul class=\"ec-productRole__tags noBb\">
{% for Tag in Product.Tags %}
<li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
{% endfor %}
</ul>
{# 商品名 #}
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
</div>
{% if PriorityProduct.description_list %}
<p>{{ PriorityProduct.description_list }}</p>
{% endif %}
<br>
{# 色/サイズ #}
{% if ProductDataList['colorOrSize'] != \"\" %}
{% if StandardClassificationName %}
<p class=\"mb10 displayPc\">
{{ StandardClassificationName }}
</p>
{% endif %}
<div class=\"displayPc\">
<ul class=\"detailColor\">
{% for key, product in ProductList %}
{% if product.productData.getId != Product.id %}
<li class=\"detailColorItem mb10\">
<a href=\"{{ url('product_detail', {'id': product.productData.getId}) }}\">
{{ product.colorOrSize }}
</a>
</li>
{% else %}
<li class=\"detailColorItem mb10\">
<a href=\"#\" class=\"active\">
{{ product.colorOrSize }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
<br>
{# カスタムフィールド #}
{% if ProductDataList['catch'] != null %}
<div class=\"dottedBd\" style=\"padding-bottom: 20px;\">
<p style=\"color: red\">{{ ProductDataList['catch'] }}</p>
</div>
{% endif %}
{# 通常価格(会員グループが【官公庁】の場合のみ表示) #}
{% if (GroupId == 4) and Product.getPrice01IncTaxMin %}
{% if Product.getPrice01Max is not null %}
<span class=\"ec-productRole__priceRegularPrice\">{{ 'front.product.normal_price'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class=\"ec-productRole__priceRegularTax\">{{ 'common.tax_include'|trans }}</span>
{% endif %}
{% endif %}
{# 会員グループが【取引先】 #}
{% if GroupId == 3 %}
<p>卸価格</p>
{# 会員グループが【取引先】 #}
{% elseif GroupId == 4 %}
<p>官公庁職員価格</p>
{% endif %}
{# 販売価格 #}
<div class=\"ec-productRole__price\">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{# 通常価格(会員グループが【一般、官公庁職員】の場合のみ表示) #}
{% if (GroupId == 1 or GroupId == 4) and Product.getPrice01IncTaxMin %}
{% if Product.getPrice01Max is not null %}
{% set discountRate = (1.0 - (Product.getPrice02Min / Product.getPrice01Min)) * 100 %}
<div class=\"ec-color-red ec-font-size-3\">(通常価格より {{discountRate|round}}% 割引)</div>
{% endif %}
{% endif %}
</div>
{# SKUコード(商品コード) #}
{% if Product.code_min is not empty %}
<div class=\"ec-productRole__code\">
{{ 'SKUコード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
</div>
{% endif %}
{# JAN #}
{% if ProductDataList['jan'] != null %}
<div class=\"ec-productRole__code\">
{{ 'JANコード'|trans }}: <span class=\"product-code-default\">{{ ProductDataList['jan'] }}</span>
</div>
{% endif %}
{# UPC #}
{% if ProductDataList['upc'] != null %}
<div class=\"ec-productRole__code\">
{{ 'UPCコード'|trans }}: <span class=\"product-code-default\">{{ ProductDataList['upc'] }}</span>
</div>
{% endif %}
{# 関連カテゴリ #}
{% if Product.ProductCategories is not empty %}
<div class=\"ec-productRole__category\">
<div>{{ '関連カテゴリ'|trans }}</div>
{% for ProductCategory in Product.ProductCategories %}
<ul>
<li>
{% if ProductCategory.Category.path|length == 2 and ProductCategory.Category.path[1].name == '在庫限り・取り扱い終了' %}
{# カテゴリを表示しない #}
{% else %}
{% for Category in ProductCategory.Category.path %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
<span>></span>{% endif -%}
{% endfor %}
{% endif %}
</li>
</ul>
{% endfor %}
</div>
{% endif %}
<form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
{% if Product.stock_find %}
<div class=\"ec-productRole__actions\">
{# 在庫数 #}
<div>
{% if Product.getProductClasses[0].getStock is not null %}
<p>{{ '在庫'|trans }}:{{ Product.getProductClasses[0].getStock }}</p>
{% else %}
<p>{{ '在庫'|trans }}:無制限</p>
{% endif %}
</div>
</div>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{{ form_rest(form) }}
</form>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__btn\">
{% if is_favorite == false %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\" style=\"margin: 0\">
{{ 'お気に入りに追加'|trans }}
</button>
{% else %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
<div>
<p>※ 当社取扱い商品には、軍や法執行機関の実務要求に特化し、一般の民生品とは異なる用途を想定して、設計・材料変更・製造されたものが多くございます。 さらに大量供給を前提に実用品として生産されるため色の個体差やネジの硬さなどが大きく異なる場合がございます。 また予備知識や訓練が必要な商品もございます。 購入時にはご了承の上、十分ご注意頂くようお願い申し上げます。</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-productRole__description\">
{{ PriorityProduct.description_detail|raw }}
</div>
{% if PriorityProduct.freearea %}
<div class=\"ec-productRole__description\">
{{ include(template_from_string(PriorityProduct.freearea)) }}
</div>
{% endif %}
</div>
</div>
{% endblock %}", "Product/detail_slug.twig", "/home/xb235735/neue-zeile.com/public_html/ec.neue-zeile.com/frontlines/app/template/default/Product/detail_slug.twig");
}
}