<?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_84331aaef481e2933e6246ae94c2d2b0 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"));
// line 16
echo " <style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
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;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 95
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 96
echo " <script>
eccube.classCategories = ";
// line 97
echo $this->extensions['Customize\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 97, $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 109
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 109)) {
// line 110
echo " fnSetClassCategories(
\$('#form1'), ";
// line 111
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.', 111, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 111), "vars", [], "any", false, false, false, 111), "value", [], "any", false, false, false, 111));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 113
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 113)) {
// line 114
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.', 114, $this->source); })()), "id", [], "any", false, false, false, 114), "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.', 114, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 114), "vars", [], "any", false, false, false, 114), "value", [], "any", false, false, false, 114));
echo ", null);
";
}
// line 116
echo " </script>
<script>
\$(function() {
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
\$('.ec-grid2__cell').hide();
var removeSize = function () {
\$('.slide-item').height('');
\$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
\$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = \$(slick.target).height();
var baseWidth = \$(slick.target).width();
var rate = baseWidth / baseHeight;
\$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
\$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
\$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
\$(window).resize(removeSize);
\$('.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 180
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 180)) {
// line 181
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 183
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 189
echo "
";
// line 190
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 190)) {
// line 191
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 193
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 199
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 202
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
return true;
} else {
\$('#quantity')[0].setCustomValidity('');
}
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').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"";
// line 229
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 236
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 256
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.', 256, $this->source); })()), "Maker", [], "any", false, false, false, 256)) {
echo twig_escape_filter($this->env, 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.', 256, $this->source); })()), "Maker", [], "any", false, false, false, 256), "nameEn", [], "any", false, false, false, 256), "html", null, true);
echo " ";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 256, $this->source); })()), "name", [], "any", false, false, false, 256), "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.', 256, $this->source); })()), "model_year", [], "any", false, false, false, 256)) {
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.', 256, $this->source); })()), "model_year", [], "any", false, false, false, 256), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
}
echo "\",
\"image\": [
";
// line 258
$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.', 258, $this->source); })()), "ProductImage", [], "any", false, false, false, 258));
$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 259
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.', 259, $this->source); })()), "request", [], "any", false, false, false, 259), "schemeAndHttpHost", [], "any", false, false, false, 259), "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, 259)) {
echo ",";
}
// line 260
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 262
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.', 262, $this->source); })()), "request", [], "any", false, false, false, 262), "schemeAndHttpHost", [], "any", false, false, false, 262), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\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 264
echo " ],
\"description\": \"";
// line 265
echo twig_escape_filter($this->env, twig_slice($this->env, twig_replace_filter(((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.', 265, $this->source); })()), "description_list", [], "any", false, false, false, 265) . " ") . 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.', 265, $this->source); })()), "description_detail", [], "any", false, false, false, 265)), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 266
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.', 266, $this->source); })()), "code_min", [], "any", false, false, false, 266)) {
// line 267
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.', 267, $this->source); })()), "code_min", [], "any", false, false, false, 267), "html", null, true);
echo "\",
";
}
// line 269
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 271
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 271, $this->source); })()), "id", [], "any", false, false, false, 271)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 272
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.', 272, $this->source); })()), "currency", [], "any", false, false, false, 272), "html", null, true);
echo "\",
\"price\": ";
// line 273
((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.', 273, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 273)) ? (print (twig_escape_filter($this->env, twig_round((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.', 273, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 273) / 1.0500000000000000444089209850062616169452667236328125), 0, "common"), "html", null, true))) : (print (0)));
echo ",
\"availability\": \"";
// line 274
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.', 274, $this->source); })()), "stock_find", [], "any", false, false, false, 274)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 280
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 281
echo " <div class=\"ec-productRole\">
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
";
// line 287
$context["ImageLoop"] = "";
// line 288
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.', 288, $this->source); })()), "ProductImage", [], "any", false, false, false, 288));
$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 289
echo " ";
$context["ImageLoop"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 289);
// line 290
echo " <div class=\"slide-item\">
<img src=\"";
// line 291
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 291)) {
((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.', 291, $this->source); })()), "Maker", [], "any", false, false, false, 291)) ? (print (twig_escape_filter($this->env, (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.', 291, $this->source); })()), "Maker", [], "any", false, false, false, 291), "nameEn", [], "any", false, false, false, 291) . " "), "html", null, true))) : (print ("")));
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.', 291, $this->source); })()), "name", [], "any", false, false, false, 291), "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.', 291, $this->source); })()), "model_year", [], "any", false, false, false, 291)) {
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.', 291, $this->source); })()), "model_year", [], "any", false, false, false, 291), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
}
}
echo "\" width=\"550\" height=\"550\"";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 291) > 1)) {
echo " loading=\"lazy\"";
}
echo ">
";
// line 292
if ((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "ProductImageAlts", [], "any", true, true, false, 292) && !(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.', 292, $this->source); })()), "ProductImageAlts", [], "any", false, false, false, 292)))) {
// line 293
echo " ";
$context["altText"] = "";
// line 294
echo " ";
$context["ProductImageAlt"] = twig_first($this->env, twig_array_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.', 294, $this->source); })()), "ProductImageAlts", [], "any", false, false, false, 294), function ($__alt__) use ($context, $macros) { $context["alt"] = $__alt__; return (twig_get_attribute($this->env, $this->source, (isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 294, $this->source); })()), "sort_no", [], "any", false, false, false, 294) == (isset($context["ImageLoop"]) || array_key_exists("ImageLoop", $context) ? $context["ImageLoop"] : (function () { throw new RuntimeError('Variable "ImageLoop" does not exist.', 294, $this->source); })())); }));
// line 295
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["ProductImageAlt"] ?? null), "alt_text", [], "any", true, true, false, 295) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["ProductImageAlt"]) || array_key_exists("ProductImageAlt", $context) ? $context["ProductImageAlt"] : (function () { throw new RuntimeError('Variable "ProductImageAlt" does not exist.', 295, $this->source); })()), "alt_text", [], "any", false, false, false, 295)))) {
// line 296
echo " ";
$context["altText"] = twig_get_attribute($this->env, $this->source, (isset($context["ProductImageAlt"]) || array_key_exists("ProductImageAlt", $context) ? $context["ProductImageAlt"] : (function () { throw new RuntimeError('Variable "ProductImageAlt" does not exist.', 296, $this->source); })()), "alt_text", [], "any", false, false, false, 296);
// line 297
echo " <p class=\"text-center\" style=\"width:80%; margin-top:1em;\">";
echo twig_escape_filter($this->env, (isset($context["altText"]) || array_key_exists("altText", $context) ? $context["altText"] : (function () { throw new RuntimeError('Variable "altText" does not exist.', 297, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 299
echo " ";
}
// line 300
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 302
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\" alt=\"";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "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); })()), "Maker", [], "any", false, false, false, 302)) ? (print (twig_escape_filter($this->env, (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.', 302, $this->source); })()), "Maker", [], "any", false, false, false, 302), "nameEn", [], "any", false, false, false, 302) . " "), "html", null, true))) : (print ("")));
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); })()), "name", [], "any", false, false, false, 302), "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.', 302, $this->source); })()), "model_year", [], "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); })()), "model_year", [], "any", false, false, false, 302), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
}
}
echo "\" width=\"550\" height=\"550\"></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 304
echo " </div>
<div class=\"item_nav\">
";
// line 306
$context["ImageLoop"] = "";
// line 307
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.', 307, $this->source); })()), "ProductImage", [], "any", false, false, false, 307));
$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 308
echo " ";
$context["ImageLoop"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 308);
// line 309
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, 309), "html", null, true);
echo "\">
<img src=\"";
// line 310
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 310, $this->source); })()), "Maker", [], "any", false, false, false, 310)) ? (print (twig_escape_filter($this->env, (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.', 310, $this->source); })()), "Maker", [], "any", false, false, false, 310), "nameEn", [], "any", false, false, false, 310) . " "), "html", null, true))) : (print ("")));
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.', 310, $this->source); })()), "name", [], "any", false, false, false, 310), "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.', 310, $this->source); })()), "model_year", [], "any", false, false, false, 310)) {
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.', 310, $this->source); })()), "model_year", [], "any", false, false, false, 310), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
}
echo "\" width=\"133\" height=\"133\" loading=\"lazy\">
";
// line 311
if ((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "ProductImageAlts", [], "any", true, true, false, 311) && !(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.', 311, $this->source); })()), "ProductImageAlts", [], "any", false, false, false, 311)))) {
// line 312
echo " ";
$context["altText"] = "";
// line 313
echo " ";
$context["ProductImageAlt"] = twig_first($this->env, twig_array_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.', 313, $this->source); })()), "ProductImageAlts", [], "any", false, false, false, 313), function ($__alt__) use ($context, $macros) { $context["alt"] = $__alt__; return (twig_get_attribute($this->env, $this->source, (isset($context["alt"]) || array_key_exists("alt", $context) ? $context["alt"] : (function () { throw new RuntimeError('Variable "alt" does not exist.', 313, $this->source); })()), "sort_no", [], "any", false, false, false, 313) == (isset($context["ImageLoop"]) || array_key_exists("ImageLoop", $context) ? $context["ImageLoop"] : (function () { throw new RuntimeError('Variable "ImageLoop" does not exist.', 313, $this->source); })())); }));
// line 314
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["ProductImageAlt"] ?? null), "alt_text", [], "any", true, true, false, 314) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["ProductImageAlt"]) || array_key_exists("ProductImageAlt", $context) ? $context["ProductImageAlt"] : (function () { throw new RuntimeError('Variable "ProductImageAlt" does not exist.', 314, $this->source); })()), "alt_text", [], "any", false, false, false, 314)))) {
// line 315
echo " ";
$context["altText"] = twig_get_attribute($this->env, $this->source, (isset($context["ProductImageAlt"]) || array_key_exists("ProductImageAlt", $context) ? $context["ProductImageAlt"] : (function () { throw new RuntimeError('Variable "ProductImageAlt" does not exist.', 315, $this->source); })()), "alt_text", [], "any", false, false, false, 315);
// line 316
echo " <p class=\"text-center\" style=\"width:80%;\">";
echo twig_escape_filter($this->env, (isset($context["altText"]) || array_key_exists("altText", $context) ? $context["altText"] : (function () { throw new RuntimeError('Variable "altText" does not exist.', 316, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 318
echo " ";
}
// line 319
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 321
echo " </div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
";
// line 327
echo " <div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">";
// line 328
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.', 328, $this->source); })()), "Maker", [], "any", false, false, false, 328)) {
echo "<span class=\"small\"> ";
echo twig_escape_filter($this->env, 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.', 328, $this->source); })()), "Maker", [], "any", false, false, false, 328), "nameEn", [], "any", false, false, false, 328), "html", null, true);
echo "(";
echo twig_escape_filter($this->env, 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.', 328, $this->source); })()), "Maker", [], "any", false, false, false, 328), "nameJp", [], "any", false, false, false, 328), "html", null, true);
echo ")</span>";
}
echo "<br />";
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.', 328, $this->source); })()), "name", [], "any", false, false, false, 328), "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.', 328, $this->source); })()), "model_year", [], "any", false, false, false, 328)) {
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.', 328, $this->source); })()), "model_year", [], "any", false, false, false, 328), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("年モデル"), "html", null, true);
}
echo "</h2>
</div>
";
// line 331
echo " <ul class=\"ec-productRole__tags\">
";
// line 332
$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.', 332, $this->source); })()), "Tags", [], "any", false, false, false, 332));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 333
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, 333), "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 335
echo " </ul>
";
// line 337
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.', 337, $this->source); })()), "hasProductClass", [], "any", false, false, false, 337)) {
// line 338
echo "<div class=\"ec-productRole__priceRegular\">
";
// line 339
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.', 339, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 339)) && (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.', 339, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 339) == 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.', 339, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 339)))) {
// line 340
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メーカー希望小売価格"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 340, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 340)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 342
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 342, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 342)) && !(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.', 342, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 342)))) {
// line 343
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メーカー希望小売価格"), "html", null, true);
echo ":<span class=\"price01-default\">";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 343, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 343)), "html", null, true);
echo "~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 343, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 343)), "html", null, true);
echo "</span></span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 344
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 346
echo " </div>
";
} else {
// line 348
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.', 348, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 348))) {
// line 349
echo " <span class=\"ec-productRole__priceRegularPrice\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メーカー希望小売価格"), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 349, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 349)), "html", null, true);
echo "</span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 350
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 352
echo " ";
}
// line 353
echo " ";
// line 354
echo " ";
// line 355
echo " ";
// line 356
echo " ";
// line 357
echo " <div class=\"ec-productRole__price\">
";
// line 358
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.', 358, $this->source); })()), "hasProductClass", [], "any", false, false, false, 358)) {
// line 360
echo " ";
if ((twig_in_filter("teika_price", 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.', 360, $this->source); })()), "ask_price", [], "any", false, false, false, 360)) && !twig_in_filter("hidden_price", 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.', 360, $this->source); })()), "ask_price", [], "any", false, false, false, 360)))) {
// line 361
echo " ";
// line 362
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.', 362, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 362) == 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.', 362, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 362))) {
// line 363
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price price02-default teika_price\">";
// line 365
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 365, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 365)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 366
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 369
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price price02-default teika_price\">";
// line 371
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 371, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 371)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 371, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 371)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 372
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 375
echo " ";
} elseif (twig_in_filter("hidden_price", 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.', 375, $this->source); })()), "ask_price", [], "any", false, false, false, 375))) {
// line 376
echo " ";
// line 377
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.', 377, $this->source); })()), "info_comment2", [], "any", false, false, false, 377))) {
// line 378
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 379
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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); })()), "info_comment2", [], "any", false, false, false, 379)), "html", null, true);
echo "</span>
</div>
";
} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, // line 381
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 381, $this->source); })()), "info_comment2", [], "any", false, false, false, 381))) {
// line 382
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 383
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ビックリ大特価!"), "html", null, true);
echo "</span>
</div>
";
}
// line 386
echo " ";
} else {
// line 387
echo " ";
// line 388
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.', 388, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 388) == 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.', 388, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 388))) {
// line 389
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price price02-default genkin_tokka\">";
// line 391
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 391, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 391) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 392
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 395
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price price02-default genkin_tokka\">";
// line 397
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 397, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 397) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 397, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 397) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 398
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 401
echo " ";
}
// line 402
echo " ";
} else {
// line 403
echo " ";
// line 404
echo " ";
if ((twig_in_filter("teika_price", 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.', 404, $this->source); })()), "ask_price", [], "any", false, false, false, 404)) && !twig_in_filter("hidden_price", 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.', 404, $this->source); })()), "ask_price", [], "any", false, false, false, 404)))) {
// line 405
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price\">";
// line 407
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 407, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 407)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 408
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} elseif ((twig_in_filter("hidden_price", twig_get_attribute($this->env, $this->source, // line 410
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 410, $this->source); })()), "ask_price", [], "any", false, false, false, 410)) && !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.', 410, $this->source); })()), "info_comment2", [], "any", false, false, false, 410)))) {
// line 411
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 412
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(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); })()), "info_comment2", [], "any", false, false, false, 412)), "html", null, true);
echo "</span>
</div>
";
} elseif ((twig_in_filter("hidden_price", twig_get_attribute($this->env, $this->source, // line 414
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 414, $this->source); })()), "ask_price", [], "any", false, false, false, 414)) && 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.', 414, $this->source); })()), "info_comment2", [], "any", false, false, false, 414)))) {
// line 415
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">";
// line 416
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ビックリ大特価!"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 419
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price\">";
// line 421
echo twig_escape_filter($this->env, $this->extensions['Customize\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.', 421, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 421) / 1.0500000000000000444089209850062616169452667236328125)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">";
// line 422
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 425
echo " ";
}
// line 426
echo " </div>
";
// line 428
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.', 428, $this->source); })()), "code_min", [], "any", false, false, false, 428))) {
// line 429
echo " <div class=\"ec-productRole__code\">
";
// line 430
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品コード"), "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.', 430, $this->source); })()), "code_min", [], "any", false, false, false, 430), "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.', 430, $this->source); })()), "code_min", [], "any", false, false, false, 430) != 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.', 430, $this->source); })()), "code_max", [], "any", false, false, false, 430))) {
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.', 430, $this->source); })()), "code_max", [], "any", false, false, false, 430), "html", null, true);
}
echo "</span>
</div>
";
}
// line 433
echo "
";
// line 435
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.', 435, $this->source); })()), "ProductCategories", [], "any", false, false, false, 435))) {
// line 436
echo " <div class=\"ec-productRole__category\">
<div>";
// line 437
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html", null, true);
echo "</div>
";
// line 438
$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.', 438, $this->source); })()), "ProductCategories", [], "any", false, false, false, 438));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 439
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 439), "countBranches", [], "any", false, false, false, 439) == 1)) {
// line 440
echo " <ul>
<li>
";
// line 442
$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, 442), "path", [], "any", false, false, false, 442));
$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 443
echo " <a 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, 443), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, false, 443), "html", null, true);
echo "</a>";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 443) == false)) {
// line 444
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 446
echo " </li>
</ul>
";
}
// line 449
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 450
echo " </div>
";
}
// line 452
echo " <form action=\"";
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.', 452, $this->source); })()), "id", [], "any", false, false, false, 452)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 453
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.', 453, $this->source); })()), "stock_find", [], "any", false, false, false, 453)) {
// line 454
echo " <div class=\"ec-productRole__actions\">
";
// line 455
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 455)) {
// line 456
echo " <div class=\"ec-select\">
";
// line 457
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(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.', 457, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 457), [0 => "Form/custom_form_div_layout.twig"], true);
// line 458
echo " ";
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.', 458, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 458), 'row');
echo "
";
// line 459
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.', 459, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 459), 'errors');
echo "
</div>
";
// line 461
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 461)) {
// line 462
echo " <div class=\"ec-select\">
";
// line 463
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(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.', 463, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 463), [0 => "Form/custom_form_div_layout.twig"], true);
// line 464
echo " ";
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.', 464, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 464), 'row');
echo "
";
// line 465
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.', 465, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 465), 'errors');
echo "
</div>
";
}
// line 468
echo " ";
}
// line 469
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 470
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.', 470, $this->source); })()), "quantity", [], "any", false, false, false, 470), 'widget');
echo "
";
// line 471
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.', 471, $this->source); })()), "quantity", [], "any", false, false, false, 471), 'errors');
echo "
</div>
</div>
";
// line 474
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.', 474, $this->source); })()), "disable_cart", [], "any", false, false, false, 474))) {
// line 475
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 477
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("対面販売の為、お問い合わせください。"), "html", null, true);
echo "
</button>
</div>
";
} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, // line 480
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 480, $this->source); })()), "disable_cart", [], "any", false, false, false, 480))) {
// line 481
echo " <div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 483
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
}
// line 487
echo " ";
} else {
// line 488
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.', 488, $this->source); })()), "disable_cart", [], "any", false, false, false, 488))) {
// line 489
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 491
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("対面販売の為、お問い合わせください。"), "html", null, true);
echo "
</button>
</div>
";
} elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, // line 494
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 494, $this->source); })()), "disable_cart", [], "any", false, false, false, 494))) {
// line 495
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 497
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 501
echo " ";
}
// line 502
echo "
";
// line 503
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.', 503, $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 509
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 510
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 513
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 514
echo $this->extensions['Symfony\Bridge\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>
<div class=\"ec-productRole__btn\">
<button onclick=\"location.href='";
// line 521
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact", ["contact_pname" => (isset($context["contact_pname"]) || array_key_exists("contact_pname", $context) ? $context["contact_pname"] : (function () { throw new RuntimeError('Variable "contact_pname" does not exist.', 521, $this->source); })()), "contact_pcode" => (isset($context["contact_pcode"]) || array_key_exists("contact_pcode", $context) ? $context["contact_pcode"] : (function () { throw new RuntimeError('Variable "contact_pcode" does not exist.', 521, $this->source); })()), "contact_pid" => (isset($context["contact_pid"]) || array_key_exists("contact_pid", $context) ? $context["contact_pid"] : (function () { throw new RuntimeError('Variable "contact_pid" does not exist.', 521, $this->source); })())]), "html", null, true);
echo "'\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 522
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html", null, true);
echo "
</button>
</div>
<!--";
// line 525
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.', 525, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 525)) {
// line 526
echo " <form action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\" method=\"post\">
<div class=\"ec-productRole__btn\">
";
// line 528
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 528, $this->source); })()) == false)) {
// line 529
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 530
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html", null, true);
echo "
</button>
";
} else {
// line 533
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 534
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 537
echo " </div>
</form>
";
}
// line 539
echo "-->
";
// line 542
echo " <div>
<ul>
";
// line 544
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.', 544, $this->source); })()), "stock_find", [], "any", false, false, false, 544)) {
echo " ";
// line 545
echo " <li><span class=\"ec-color-red\">在庫有り表示でも店頭展示していない場合があります。<span class=\"ec-font-bold\">実物をご覧になりたい場合はご来店前にメールにてご連絡ください。</span></span></li>
";
}
// line 547
echo " ";
if ((twig_length_filter($this->env, twig_array_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.', 547, $this->source); })()), "Tags", [], "any", false, false, false, 547), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 547, $this->source); })()), "id", [], "any", false, false, false, 547) == 10); })) > 0)) {
echo " ";
// line 548
echo " <li>メーカー取寄せとなります。在庫状況はできる限り反映しておりますが、タイミングによっては欠品の場合もございます。</li>
";
}
// line 550
echo " ";
if (twig_in_filter("f2f", 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.', 550, $this->source); })()), "delivery_product_type", [], "any", false, false, false, 550))) {
echo " ";
// line 551
echo " <li>こちらの商品は原則<span class=\"ec-font-bold\">対面販売</span>となります。ご購入の際は店頭かメールにてご相談ください。</li>
";
}
// line 553
echo " ";
if (twig_in_filter("ebike", 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.', 553, $this->source); })()), "delivery_product_type", [], "any", false, false, false, 553))) {
echo " ";
// line 554
echo " <li>大型商品となります。<span class=\"ec-font-bold\">配送をご希望の場合は送料にご注意ください。</span>当店より30km圏内であれば、弊社スタッフが配送に伺いますので送料無料です。詳しくは店頭にてご相談ください。</li>
";
}
// line 556
echo " ";
if ((twig_length_filter($this->env, twig_array_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.', 556, $this->source); })()), "Tags", [], "any", false, false, false, 556), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 556, $this->source); })()), "id", [], "any", false, false, false, 556) == 8); })) > 0)) {
echo " ";
// line 557
echo " <li><span class=\"ec-font-bold\">アウトレット品となります。</span>キズや塗装不良がある場合や、通常商品と保証内容が異なる場合があります。詳しくは店頭かメールにてご相談ください。</li>
";
}
// line 559
echo " ";
if ((twig_length_filter($this->env, twig_array_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.', 559, $this->source); })()), "Tags", [], "any", false, false, false, 559), function ($__tag__) use ($context, $macros) { $context["tag"] = $__tag__; return (twig_get_attribute($this->env, $this->source, (isset($context["tag"]) || array_key_exists("tag", $context) ? $context["tag"] : (function () { throw new RuntimeError('Variable "tag" does not exist.', 559, $this->source); })()), "id", [], "any", false, false, false, 559) == 7); })) > 0)) {
echo " ";
// line 560
echo " <li>代理店取り寄せの特価品です。当店で在庫はしていない場合は実物をご覧いただけません。</li>
";
}
// line 562
echo " </ul>
</div>
</div>
</div>
</div>
";
// line 568
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.', 568, $this->source); })()), "description_detail", [], "any", false, false, false, 568)) {
// line 569
echo " <div class=\"ec-productRole__description\">";
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.', 569, $this->source); })()), "description_detail", [], "any", false, false, false, 569));
echo "
</div>
";
}
// line 572
echo "
";
// line 573
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.', 573, $this->source); })()), "freearea", [], "any", false, false, false, 573)) {
// line 574
echo " <div class=\"ec-productRole__description\">
";
// line 575
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.', 575, $this->source); })()), "freearea", [], "any", false, false, false, 575)));
echo "
</div>
";
}
// line 578
echo " </div>
";
$__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 ( 1359 => 578, 1353 => 575, 1350 => 574, 1348 => 573, 1345 => 572, 1338 => 569, 1336 => 568, 1328 => 562, 1324 => 560, 1320 => 559, 1316 => 557, 1312 => 556, 1308 => 554, 1304 => 553, 1300 => 551, 1296 => 550, 1292 => 548, 1288 => 547, 1284 => 545, 1281 => 544, 1277 => 542, 1273 => 539, 1268 => 537, 1262 => 534, 1259 => 533, 1253 => 530, 1250 => 529, 1248 => 528, 1242 => 526, 1240 => 525, 1234 => 522, 1230 => 521, 1218 => 514, 1214 => 513, 1208 => 510, 1204 => 509, 1195 => 503, 1192 => 502, 1189 => 501, 1182 => 497, 1178 => 495, 1176 => 494, 1170 => 491, 1166 => 489, 1163 => 488, 1160 => 487, 1153 => 483, 1149 => 481, 1147 => 480, 1141 => 477, 1137 => 475, 1135 => 474, 1129 => 471, 1125 => 470, 1120 => 469, 1117 => 468, 1111 => 465, 1106 => 464, 1104 => 463, 1101 => 462, 1099 => 461, 1094 => 459, 1089 => 458, 1087 => 457, 1084 => 456, 1082 => 455, 1079 => 454, 1077 => 453, 1072 => 452, 1068 => 450, 1062 => 449, 1057 => 446, 1042 => 444, 1033 => 443, 1016 => 442, 1012 => 440, 1009 => 439, 1005 => 438, 1001 => 437, 998 => 436, 995 => 435, 992 => 433, 980 => 430, 977 => 429, 974 => 428, 971 => 426, 968 => 425, 962 => 422, 958 => 421, 954 => 419, 948 => 416, 945 => 415, 943 => 414, 938 => 412, 935 => 411, 933 => 410, 928 => 408, 924 => 407, 920 => 405, 917 => 404, 915 => 403, 912 => 402, 909 => 401, 903 => 398, 897 => 397, 893 => 395, 887 => 392, 883 => 391, 879 => 389, 876 => 388, 874 => 387, 871 => 386, 865 => 383, 862 => 382, 860 => 381, 855 => 379, 852 => 378, 849 => 377, 847 => 376, 844 => 375, 838 => 372, 832 => 371, 828 => 369, 822 => 366, 818 => 365, 814 => 363, 811 => 362, 809 => 361, 806 => 360, 804 => 358, 801 => 357, 799 => 356, 797 => 355, 795 => 354, 793 => 353, 790 => 352, 785 => 350, 778 => 349, 775 => 348, 771 => 346, 766 => 344, 757 => 343, 755 => 342, 751 => 341, 744 => 340, 742 => 339, 739 => 338, 736 => 337, 733 => 335, 722 => 333, 718 => 332, 715 => 331, 697 => 328, 694 => 327, 687 => 321, 672 => 319, 669 => 318, 663 => 316, 660 => 315, 657 => 314, 654 => 313, 651 => 312, 649 => 311, 637 => 310, 632 => 309, 629 => 308, 611 => 307, 609 => 306, 605 => 304, 586 => 302, 572 => 300, 569 => 299, 563 => 297, 560 => 296, 557 => 295, 554 => 294, 551 => 293, 549 => 292, 531 => 291, 528 => 290, 525 => 289, 506 => 288, 504 => 287, 496 => 281, 486 => 280, 471 => 274, 467 => 273, 463 => 272, 459 => 271, 455 => 269, 449 => 267, 447 => 266, 442 => 265, 439 => 264, 429 => 262, 415 => 260, 407 => 259, 389 => 258, 375 => 256, 352 => 236, 342 => 229, 312 => 202, 307 => 199, 298 => 193, 294 => 191, 292 => 190, 289 => 189, 280 => 183, 276 => 181, 274 => 180, 208 => 116, 200 => 114, 198 => 113, 193 => 111, 190 => 110, 188 => 109, 173 => 97, 170 => 96, 160 => 95, 73 => 16, 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 %}
<style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
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;
}
</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);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
\$('.ec-grid2__cell').hide();
var removeSize = function () {
\$('.slide-item').height('');
\$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
\$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = \$(slick.target).height();
var baseWidth = \$(slick.target).width();
var rate = baseWidth / baseHeight;
\$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
\$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
\$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
\$(window).resize(removeSize);
\$('.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 %}
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
return true;
} else {
\$('#quantity')[0].setCustomValidity('');
}
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').text(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\": \"{% if Product.Maker %}{{ Product.Maker.nameEn }} {% endif %}{{ Product.name }}{% if Product.model_year %} {{ Product.model_year }}{{ '年モデル'|trans }}{% endif %}\",
\"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 ~ ' ' ~ 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', {'id': Product.id}) }}\",
\"priceCurrency\": \"{{ eccube_config.currency }}\",
\"price\": {{ Product.getPrice02IncTaxMin ? (Product.getPrice02IncTaxMin / 1.05)|round(0, 'common') : 0}},
\"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
}
}
</script>
{% endblock %}
{% block main %}
<div class=\"ec-productRole\">
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
{% set ImageLoop = '' %}
{% for ProductImage in Product.ProductImage %}
{% set ImageLoop = loop.index %}
<div class=\"slide-item\">
<img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{% if loop.first %}{{ Product.Maker ? Product.Maker.nameEn ~ ' ' : '' }}{{ Product.name }}{% if Product.model_year %} {{ Product.model_year }}{{ '年モデル'|trans }}{% endif %}{% endif %}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}>
{% if Product.ProductImageAlts is defined and Product.ProductImageAlts is not null %}
{% set altText = '' %}
{% set ProductImageAlt = Product.ProductImageAlts|filter(alt => alt.sort_no == ImageLoop)|first %}
{% if ProductImageAlt.alt_text is defined and ProductImageAlt.alt_text is not null %}
{% set altText = ProductImageAlt.alt_text %}
<p class=\"text-center\" style=\"width:80%; margin-top:1em;\">{{ altText }}</p>
{% endif %}
{% endif %}
</div>
{% else %}
<div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{% if loop.first %}{{ Product.Maker ? Product.Maker.nameEn ~ ' ' : '' }}{{ Product.name }}{% if Product.model_year %} {{ Product.model_year }}{{ '年モデル'|trans }}{% endif %}{% endif %}\" width=\"550\" height=\"550\"></div>
{% endfor %}
</div>
<div class=\"item_nav\">
{% set ImageLoop = '' %}
{% for ProductImage in Product.ProductImage %}
{% set ImageLoop = loop.index %}
<div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\">
<img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ Product.Maker ? Product.Maker.nameEn ~ ' ' : '' }}{{ Product.name }}{% if Product.model_year %} {{ Product.model_year }}{{ '年モデル'|trans }}{% endif %}\" width=\"133\" height=\"133\" loading=\"lazy\">
{% if Product.ProductImageAlts is defined and Product.ProductImageAlts is not null %}
{% set altText = '' %}
{% set ProductImageAlt = Product.ProductImageAlts|filter(alt => alt.sort_no == ImageLoop)|first %}
{% if ProductImageAlt.alt_text is defined and ProductImageAlt.alt_text is not null %}
{% set altText = ProductImageAlt.alt_text %}
<p class=\"text-center\" style=\"width:80%;\">{{ altText }}</p>
{% endif %}
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
{# 商品名 #}
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">{% if Product.Maker %}<span class=\"small\"> {{ Product.Maker.nameEn }}({{ Product.Maker.nameJp }})</span>{% endif %}<br />{{ Product.name }}{% if Product.model_year %} {{ Product.model_year }}{{ '年モデル'|trans }}{% endif %}</h2>
</div>
{# タグ #}
<ul class=\"ec-productRole__tags\">
{% for Tag in Product.Tags %}
<li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
{% endfor %}
</ul>
{# 通常価格 #}
{% if Product.hasProductClass -%}
<div class=\"ec-productRole__priceRegular\">
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<span class=\"ec-productRole__priceRegularPrice\">{{ 'メーカー希望小売価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<span class=\"ec-productRole__priceRegularPrice\">{{ 'メーカー希望小売価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
{% endif %}
</div>
{% else %}
{% if Product.getPrice01Max is not null %}
<span class=\"ec-productRole__priceRegularPrice\">{{ 'メーカー希望小売価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
{% endif %}
{% endif %}
{# 販売価格、その他備考 #}
{# 表示について、規格1の選択肢がapp/Customize/Entity/ProductTrait.php、規格2の選択肢はeccube.jsで制御。 #}
{# 規格を持たない商品はこのファイル上で制御しているよう。 #}
{# 表示フラグ系はProductTypeExtension.phpで実装、ask_priceのみカートに値を渡して、値引処理に使用している。 #}
<div class=\"ec-productRole__price\">
{% if Product.hasProductClass -%}
{# 規格を持つ商品の場合の処理 #}
{% if 'teika_price' in Product.ask_price and 'hidden_price' not in Product.ask_price %}
{# 現金特価未適用フラグがある場合、現金特価計算をさせないように動作。規格1規格2がある場合の動作修正はeccube.jsも触る。 #}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price price02-default teika_price\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price price02-default teika_price\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% elseif 'hidden_price' in Product.ask_price %}
{# 売価非表示フラグがある場合の処理。コメントありとなしで条件分岐。 #}
{% if Product.info_comment2 is not empty %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">{{ Product.info_comment2|trans }}</span>
</div>
{% elseif Product.info_comment2 is empty %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">{{ 'ビックリ大特価!'|trans }}</span>
</div>
{% endif %}
{% else %}
{# 条件なしの処理。現金特価での表示。規格2がある場合の動作修正はeccube.jsも同時に触る必要がある。 #}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price price02-default genkin_tokka\">{{ (Product.getPrice02IncTaxMin / 1.05)|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price price02-default genkin_tokka\">{{ (Product.getPrice02IncTaxMin / 1.05)|price }} ~ {{ (Product.getPrice02IncTaxMax / 1.05)|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% endif %}
{% else %}
{# 規格がない商品の場合の処理 #}
{% if 'teika_price' in Product.ask_price and 'hidden_price' not in Product.ask_price %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">販売価格:</span>
<span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% elseif 'hidden_price' in Product.ask_price and Product.info_comment2 is not empty %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">{{ Product.info_comment2|trans }}</span>
</div>
{% elseif 'hidden_price' in Product.ask_price and Product.info_comment2 is empty %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">{{ 'ビックリ大特価!'|trans }}</span>
</div>
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">現金特価:</span>
<span class=\"ec-price__price\">{{ (Product.getPrice02IncTaxMin / 1.05)|price }}</span>
<span class=\"ec-price__tax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% endif %}
</div>
{# 商品コード #}
{% if Product.code_min is not empty %}
<div class=\"ec-productRole__code\">
{{ '商品コード'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
</div>
{% endif %}
{# 関連カテゴリ #}
{% if Product.ProductCategories is not empty %}
<div class=\"ec-productRole__category\">
<div>{{ '関連カテゴリ'|trans }}</div>
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.countBranches == 1 %}
<ul>
<li>
{% 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 %}
</li>
</ul>
{% endif %}
{% 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\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{% form_theme form.classcategory_id1 'Form/custom_form_div_layout.twig' %}
{{ form_row(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{% form_theme form.classcategory_id2 'Form/custom_form_div_layout.twig' %}
{{ form_row(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{% if Product.disable_cart is not empty %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ '対面販売の為、お問い合わせください。'|trans }}
</button>
</div>
{% elseif Product.disable_cart is empty %}
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% endif %}
{% else %}
{% if Product.disable_cart is not empty %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ '対面販売の為、お問い合わせください。'|trans }}
</button>
</div>
{% elseif Product.disable_cart is empty %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% 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>
<div class=\"ec-productRole__btn\">
<button onclick=\"location.href='{{ url('contact',{'contact_pname':contact_pname, 'contact_pcode':contact_pcode, 'contact_pid':contact_pid, })}}'\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
{{ 'お問い合わせ'|trans }}
</button>
</div>
<!--{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('contact') }}\" method=\"post\">
<div class=\"ec-productRole__btn\">
{% if is_favorite == false %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
{{ 'お問い合わせ'|trans }}
</button>
{% else %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}-->
{# 以下商品の属性ごとの注意書きを表記する。 #}
<div>
<ul>
{% if Product.stock_find %} {# 在庫数が1以上のSKUが含まれている場合 #}
<li><span class=\"ec-color-red\">在庫有り表示でも店頭展示していない場合があります。<span class=\"ec-font-bold\">実物をご覧になりたい場合はご来店前にメールにてご連絡ください。</span></span></li>
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 10)|length > 0 %} {# 商品タグにメーカー取寄せが含まれる場合 #}
<li>メーカー取寄せとなります。在庫状況はできる限り反映しておりますが、タイミングによっては欠品の場合もございます。</li>
{% endif %}
{% if 'f2f' in Product.delivery_product_type %} {# 商品の配送属性にf2f(対面販売)が含まれる場合 #}
<li>こちらの商品は原則<span class=\"ec-font-bold\">対面販売</span>となります。ご購入の際は店頭かメールにてご相談ください。</li>
{% endif %}
{% if 'ebike' in Product.delivery_product_type %} {# 商品の配送属性にebikeが含まれる場合 #}
<li>大型商品となります。<span class=\"ec-font-bold\">配送をご希望の場合は送料にご注意ください。</span>当店より30km圏内であれば、弊社スタッフが配送に伺いますので送料無料です。詳しくは店頭にてご相談ください。</li>
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 8)|length > 0 %} {# 商品タグにアウトレット品が含まれる場合 #}
<li><span class=\"ec-font-bold\">アウトレット品となります。</span>キズや塗装不良がある場合や、通常商品と保証内容が異なる場合があります。詳しくは店頭かメールにてご相談ください。</li>
{% endif %}
{% if Product.Tags|filter(tag => tag.id == 7)|length > 0 %} {# 商品タグに代理店取り寄せ特価が含まれる場合 #}
<li>代理店取り寄せの特価品です。当店で在庫はしていない場合は実物をご覧いただけません。</li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
{% if Product.description_detail %}
<div class=\"ec-productRole__description\">{{ Product.description_detail|raw|nl2br }}
</div>
{% endif %}
{% if Product.freearea %}
<div class=\"ec-productRole__description\">
{{ include(template_from_string(Product.freearea)) }}
</div>
{% endif %}
</div>
{% endblock %}", "Product/detail.twig", "/home/xs0607itami/xs0607itami.xsrv.jp/public_html/app/template/default/Product/detail.twig");
}
}