<?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_2ff6fc0185ba932717ee492599358283389bbad343a0e2b97ffbfb94a9e80a46 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 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
// line 3
$context["body_class"] = "product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 6
echo "<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css\"/>
<link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/detail.min.css\">
<style>
.ec-layoutRole .ec-layoutRole__contents {
max-width: unset;
}
.p-detail__fv__inner__right {
width: 40%;
}
.p-detail__fv__inner__right__price {
font-size: clamp(30px,3.2vw,36px);
}
.p-detail__fv__inner__right__price .small {
font-size: 16px;
}
.p-detail__fv__inner__right__quantity {
justify-content: left;
align-items: flex-end;
margin: 15px 0 0;
}
.ec-productRole__btn,.ec-productRole__btn {
width: 200px;
margin-right: 40px;
}
.ec-productRole__btn button,.ec-productRole__btn button {
font-size: 16px;
border-radius: 5px;
}
.ec-blockBtn--action {
background-color: #B72C11;
border-color: #B72C11;
}
.ec-blockBtn--cancel {
background-color: #EEC5C1;
border-color: #EEC5C1;
color: #333;
}
.ec-productRole__price {
line-height: 0;
}
.ec-productRole__description {
margin-top: 20px;
border-top: 1px solid #333;
padding-top: 10px;
}
.p-detail__fv__inner__right__price {
color: #B72C11;
font-weight: bold;
}
.p-detail__fv__inner__right__price.underline{
border-bottom: 1px solid #B72C11;
}
.sale.ec-blockBtn--action {
width: fit-content;
font-size: 18px;
cursor: unset;
line-height: 1.8;
display: inline-block;
height: auto;
margin-left: 15px;
}
.Category__list {
display: flex;
}
.Category__list_item {
margin-right: 15px;
}
.Category__list_item a {
display: block;
background-color: #fefefe;
border: 1px solid #333;
padding: 0 8px;
color: #333;
border-radius: 5px;
}
@media screen and (min-width:768px) and (max-width:1024px) {
.ec-productRole__btn {
margin-right: 40px;
width: 250px;
}
.p-detail__fv__inner__right {
width: 100%;
}
}
@media screen and (max-width:768px) {
.p-detail__fv__inner__right {
width: 100%;
}
.ec-productRole__btn {
width: 70%;
}
.p-detail__fv__inner__right__quantity {
flex-direction: column;
justify-content: space-between;
align-items: stretch;
}
.ec-productRole__btn {
margin-bottom: 20px;
}
.ec-numberInput {
margin-bottom: 15px;
}
.sale.ec-blockBtn--action {
margin-left: 0;
display: block;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 116
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 117
echo " <script>
eccube.classCategories = ";
// line 118
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 118, $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 129
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 129)) {
// line 130
echo " fnSetClassCategories(
\$('#form1'), ";
// line 131
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.', 131, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 131), "vars", [], "any", false, false, false, 131), "value", [], "any", false, false, false, 131));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 133
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 133)) {
// line 134
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.', 134, $this->source); })()), "id", [], "any", false, false, false, 134), "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.', 134, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 134), "vars", [], "any", false, false, false, 134), "value", [], "any", false, false, false, 134));
echo ", null);
";
}
// line 136
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
}
}]
});
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
";
// line 195
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 195)) {
// line 196
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 198
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 204
echo "
";
// line 205
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 205)) {
// line 206
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 208
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 214
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 217
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 244
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 251
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 271
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.', 271, $this->source); })()), "name", [], "any", false, false, false, 271), "html", null, true);
echo "\",
\"image\": [
";
// line 273
$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.', 273, $this->source); })()), "ProductImage", [], "any", false, false, false, 273));
$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 274
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.', 274, $this->source); })()), "request", [], "any", false, false, false, 274), "schemeAndHttpHost", [], "any", false, false, false, 274), "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, 274)) {
echo ",";
}
// line 275
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 277
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.', 277, $this->source); })()), "request", [], "any", false, false, false, 277), "schemeAndHttpHost", [], "any", false, false, false, 277), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\"
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 279
echo " ],
\"description\": \"";
// line 280
echo twig_escape_filter($this->env, twig_slice($this->env, twig_replace_filter(((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", true, true, false, 280)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, false, 280), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 280, $this->source); })()), "description_detail", [], "any", false, false, false, 280))) : (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 280, $this->source); })()), "description_detail", [], "any", false, false, false, 280))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 281
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.', 281, $this->source); })()), "code_min", [], "any", false, false, false, 281)) {
// line 282
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.', 282, $this->source); })()), "code_min", [], "any", false, false, false, 282), "html", null, true);
echo "\",
";
}
// line 284
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 286
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.', 286, $this->source); })()), "id", [], "any", false, false, false, 286)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 287
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.', 287, $this->source); })()), "currency", [], "any", false, false, false, 287), "html", null, true);
echo "\",
\"price\": ";
// line 288
((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); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 288)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 288, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 288), "html", null, true))) : (print (0)));
echo ",
// \"price\": ";
// line 289
((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.', 289, $this->source); })()), "getPrice02Min", [], "any", false, false, false, 289)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 289, $this->source); })()), "getPrice02Min", [], "any", false, false, false, 289), "html", null, true))) : (print (0)));
echo ",
\"availability\": \"";
// line 290
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.', 290, $this->source); })()), "stock_find", [], "any", false, false, false, 290)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 296
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 297
echo " <section class=\"p-detail__fv\">
<div class=\"p-detail__fv__inner\">
<div class=\"p-detail__fv__inner__left\">
<div class=\"swiper\">
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\">
<!-- Slides -->
";
// line 304
$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.', 304, $this->source); })()), "ProductImage", [], "any", false, false, false, 304));
$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 305
echo " <div class=\"swiper-slide\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 305)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 305, $this->source); })()), "name", [], "any", false, false, false, 305), "html", null, true))) : (print ("")));
echo "\"></div>
";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 307
echo " <div class=\"swiper-slide\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 307)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 307, $this->source); })()), "name", [], "any", false, false, false, 307), "html", null, true))) : (print ("")));
echo "\" /></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 309
echo "
</div>
</div>
<div class=\"slider-thumbnail\">
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\">
<!-- Slides -->
";
// line 317
$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.', 317, $this->source); })()), "ProductImage", [], "any", false, false, false, 317));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
// line 318
echo " <div class=\"swiper-slide\" data-index=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 318), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html", null, true);
echo "\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></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 320
echo "
</div>
</div>
<p style=\"text-align: left; font-size:14px;\">※写真はイメージです。<br>配達時には食品安全考慮の為真空パックにてお届け致します。</p>
";
// line 325
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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "9") || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "7")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "8")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "18")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "6")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "5")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "14")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "13")) || (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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325) == "19"))) {
// line 326
echo " <p style=\"text-align: left; font-size:14px;\">※商品に味付けはございません。<br>ご家庭で塩、ブラックペッパー、タレ、お出汁などご準備ください。</p>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 327
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 327, $this->source); })()), "id", [], "any", false, false, false, 327) == "12")) {
// line 328
echo " <p style=\"text-align: left; font-size:14px;\">※塩、ブラックペッパーにて味付けをしておりますが、<br>調理後味気が足りない場合は塩を少々お掛けください。<br>また、わさび、おろししょうが、おろしニンニクが合います。</p>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 329
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 329, $this->source); })()), "id", [], "any", false, false, false, 329) == "11")) {
// line 330
echo " <p style=\"text-align: left; font-size:14px;\">※塩、ブラックペッパーにて味付けされておりますので調理後そのままお召し上がり下さい。</p>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 331
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 331, $this->source); })()), "id", [], "any", false, false, false, 331) == "16") || (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.', 331, $this->source); })()), "id", [], "any", false, false, false, 331) == "17"))) {
// line 332
echo " <p style=\"text-align: left; font-size:14px;\">※ご自宅の油にてお揚げください。<br>※卵、小麦粉、パン粉を使用しております。<br>当該品目のアレルギーをお持ちの方はお控え下さい。</p>
";
}
// line 334
echo "
<div class=\"ec-productRole__description__pcNone\">";
// line 335
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.', 335, $this->source); })()), "description_detail", [], "any", false, false, false, 335));
echo "
</div>
</div>
<div class=\"p-detail__fv__inner__right\">
";
// line 339
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.', 339, $this->source); })()), "freearea", [], "any", false, false, false, 339)) {
// line 340
echo " <p class=\"p-detail__fv__inner__right__subtitle\">
";
// line 341
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.', 341, $this->source); })()), "freearea", [], "any", false, false, false, 341)));
echo "
";
// line 343
echo " </p>
";
}
// line 345
echo " ";
// line 346
echo " ";
// line 347
echo " ";
// line 348
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.', 348, $this->source); })()), "hasProductClass", [], "any", false, false, false, 348)) {
// line 349
echo "<div class=\"ec-productRole__priceRegular\">
";
// line 350
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.', 350, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 350)) && (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 350, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 350) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 350, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 350)))) {
// line 351
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['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 351, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 351)), "html", null, true);
echo "</span></span>
";
// line 353
echo " <span class=\"ec-productRole__priceRegularTax\">";
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 354
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 354, $this->source); })()), "getPrice01Min", [], "any", false, false, false, 354)) && !(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.', 354, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 354)))) {
// line 355
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['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 355, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 355)), "html", null, true);
echo "~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 355, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, false, 355)), "html", null, true);
echo "</span></span>
";
// line 357
echo " <span class=\"ec-productRole__priceRegularTax\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 359
echo " </div>
";
} else {
// line 361
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.', 361, $this->source); })()), "getPrice01Max", [], "any", false, false, false, 361))) {
// line 362
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['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 362, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, false, 362)), "html", null, true);
echo "</span>
";
// line 364
echo " <span class=\"ec-productRole__priceRegularTax\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 366
echo " ";
}
// line 367
echo " <p class=\"p-detail__fv__inner__right__price\">
<div class=\"ec-productRole__price\">
販売価格
";
// line 370
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.', 370, $this->source); })()), "hasProductClass", [], "any", false, false, false, 370)) {
// line 371
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.', 371, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 371) == 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))) {
// line 372
echo " <div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price underline\">";
// line 373
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 373, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 373)), "html", null, true);
echo "</span>
";
// line 375
echo " <span class=\"ec-price__tax small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
} else {
// line 378
echo " <div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price underline\">";
// line 379
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 379, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 379)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 379, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, false, 379)), "html", null, true);
echo "</span>
";
// line 381
echo " <span class=\"ec-price__tax small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 384
echo " ";
} else {
// line 385
echo " <div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price p-detail__fv__inner__right__price underline\">";
// line 386
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 386, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 386)), "html", null, true);
echo "</span>
";
// line 388
echo " <span class=\"ec-price__tax small\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 391
echo " </div>
</p>
";
// line 393
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.', 393, $this->source); })()), "ProductCategories", [], "any", false, false, false, 393))) {
// line 394
echo " <div class=\"ec-productRole__category\">
<div>";
// line 395
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("関連カテゴリ"), "html", null, true);
echo "</div>
<ul class=\"Category__list\">
";
// line 397
$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.', 397, $this->source); })()), "ProductCategories", [], "any", false, false, false, 397));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 398
echo " <li class=\"Category__list_item\">
";
// line 399
$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, 399), "path", [], "any", false, false, false, 399));
$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 400
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, 400), "html", null, true);
echo "#page_anchor\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, false, 400), "html", null, true);
echo "</a>";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 400) == false)) {
// line 401
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 403
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 405
echo " </ul>
</div>
";
}
// line 408
echo " <div class=\"p-detail__fv__inner__right__quantity\">
";
// line 410
echo " ";
// line 411
echo " ";
// line 412
echo " ";
// line 413
echo " ";
// line 414
echo " ";
// line 415
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.', 415, $this->source); })()), "id", [], "any", false, false, false, 415)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 416
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.', 416, $this->source); })()), "stock_find", [], "any", false, false, false, 416)) {
// line 417
echo " <div class=\"ec-productRole__actions\">
";
// line 418
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 418)) {
// line 419
echo " <div class=\"ec-select\">
";
// line 420
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.', 420, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 420), 'row');
echo "
";
// line 421
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.', 421, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 421), 'errors');
echo "
</div>
";
// line 423
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 423)) {
// line 424
echo " <div class=\"ec-select\">
";
// line 425
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.', 425, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 425), 'row');
echo "
";
// line 426
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.', 426, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 426), 'errors');
echo "
</div>
";
}
// line 429
echo " ";
}
// line 430
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 431
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.', 431, $this->source); })()), "quantity", [], "any", false, false, false, 431), 'widget');
echo "
";
// line 432
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.', 432, $this->source); })()), "quantity", [], "any", false, false, false, 432), 'errors');
echo "
</div>
</div>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 437
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 441
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 443
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 447
echo "
";
// line 448
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.', 448, $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 453
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 454
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 457
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 458
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>
";
// line 464
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.', 464, $this->source); })()), "option_favorite_product", [], "any", false, false, false, 464)) {
// line 465
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 465, $this->source); })()), "id", [], "any", false, false, false, 465)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__btn\">
";
// line 467
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 467, $this->source); })()) == false)) {
// line 468
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 469
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html", null, true);
echo "
</button>
";
} else {
// line 472
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 473
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 476
echo " </div>
</form>
";
}
// line 479
echo " </div>
<p style=\"margin-top: 15px; font-size:14px;\">送料は全国一律1,350円となっております。<br>
商品合計金額で16,000円以上購入で、送料は弊社負担とさせていただきます。</p>
<div class=\"ec-productRole__description__spNone\">";
// line 482
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.', 482, $this->source); })()), "description_detail", [], "any", false, false, false, 482));
echo "
</div>
</div>
</div>
</section>
<section class=\"p-detail__merchandise\">
<img class=\"cloud2\" src=\"";
// line 489
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp"), "html", null, true);
echo "\" alt=\"雲\">
<img class=\"cloud1\" src=\"";
// line 490
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp"), "html", null, true);
echo "\" alt=\"雲\">
<img id=\"visible\" class=\"absolute3\" src=\"";
// line 491
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/chara2.webp"), "html", null, true);
echo "\" alt=\"キャラクター\">
<div class=\"section__title\">
<img src=\"";
// line 493
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cow.webp"), "html", null, true);
echo "\" alt=\"牛のイラスト\">
<h2>商品詳細</h2>
</div>
<div class=\"p-detail__merchandise__box\">
<div class=\"p-detail__merchandise__box__left\">
<img src=\"";
// line 498
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/EC6062.jpeg"), "html", null, true);
echo "\" alt=\"お肉の写真\">
</div>
<p class=\"p-detail__merchandise__box__right\">
私たちが自信を持って厳選した銘柄牛を<br>
端材まで余すことなくふんだんに使用し、<br>
カルビ、ロース、モモなどの部位の他に<br>
ハンバーグなどの加工食品も合わせた詰<br>
め合わせとなっております。<br>
銘柄牛の美味しさがギュッと詰まった商<br>
品となっておりますので、ぜひこの機会<br>
にお求めください。</p>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1060 => 498, 1052 => 493, 1047 => 491, 1043 => 490, 1039 => 489, 1029 => 482, 1024 => 479, 1019 => 476, 1013 => 473, 1010 => 472, 1004 => 469, 1001 => 468, 999 => 467, 993 => 465, 991 => 464, 980 => 458, 976 => 457, 970 => 454, 966 => 453, 958 => 448, 955 => 447, 948 => 443, 944 => 441, 937 => 437, 929 => 432, 925 => 431, 920 => 430, 917 => 429, 911 => 426, 907 => 425, 904 => 424, 902 => 423, 897 => 421, 893 => 420, 890 => 419, 888 => 418, 885 => 417, 883 => 416, 878 => 415, 876 => 414, 874 => 413, 872 => 412, 870 => 411, 868 => 410, 865 => 408, 860 => 405, 853 => 403, 838 => 401, 829 => 400, 812 => 399, 809 => 398, 805 => 397, 800 => 395, 797 => 394, 795 => 393, 791 => 391, 784 => 388, 780 => 386, 777 => 385, 774 => 384, 767 => 381, 761 => 379, 758 => 378, 751 => 375, 747 => 373, 744 => 372, 742 => 371, 740 => 370, 735 => 367, 732 => 366, 726 => 364, 719 => 362, 716 => 361, 712 => 359, 706 => 357, 697 => 355, 695 => 354, 690 => 353, 683 => 351, 681 => 350, 678 => 349, 675 => 348, 673 => 347, 671 => 346, 669 => 345, 665 => 343, 661 => 341, 658 => 340, 656 => 339, 649 => 335, 646 => 334, 642 => 332, 640 => 331, 637 => 330, 635 => 329, 632 => 328, 630 => 327, 627 => 326, 625 => 325, 618 => 320, 599 => 318, 582 => 317, 572 => 309, 561 => 307, 543 => 305, 525 => 304, 516 => 297, 506 => 296, 491 => 290, 487 => 289, 483 => 288, 479 => 287, 475 => 286, 471 => 284, 465 => 282, 463 => 281, 458 => 280, 455 => 279, 445 => 277, 431 => 275, 423 => 274, 405 => 273, 400 => 271, 377 => 251, 367 => 244, 337 => 217, 332 => 214, 323 => 208, 319 => 206, 317 => 205, 314 => 204, 305 => 198, 301 => 196, 299 => 195, 238 => 136, 230 => 134, 228 => 133, 223 => 131, 220 => 130, 218 => 129, 204 => 118, 201 => 117, 191 => 116, 73 => 6, 63 => 5, 52 => 1, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css\"/>
<link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/detail.min.css\">
<style>
.ec-layoutRole .ec-layoutRole__contents {
max-width: unset;
}
.p-detail__fv__inner__right {
width: 40%;
}
.p-detail__fv__inner__right__price {
font-size: clamp(30px,3.2vw,36px);
}
.p-detail__fv__inner__right__price .small {
font-size: 16px;
}
.p-detail__fv__inner__right__quantity {
justify-content: left;
align-items: flex-end;
margin: 15px 0 0;
}
.ec-productRole__btn,.ec-productRole__btn {
width: 200px;
margin-right: 40px;
}
.ec-productRole__btn button,.ec-productRole__btn button {
font-size: 16px;
border-radius: 5px;
}
.ec-blockBtn--action {
background-color: #B72C11;
border-color: #B72C11;
}
.ec-blockBtn--cancel {
background-color: #EEC5C1;
border-color: #EEC5C1;
color: #333;
}
.ec-productRole__price {
line-height: 0;
}
.ec-productRole__description {
margin-top: 20px;
border-top: 1px solid #333;
padding-top: 10px;
}
.p-detail__fv__inner__right__price {
color: #B72C11;
font-weight: bold;
}
.p-detail__fv__inner__right__price.underline{
border-bottom: 1px solid #B72C11;
}
.sale.ec-blockBtn--action {
width: fit-content;
font-size: 18px;
cursor: unset;
line-height: 1.8;
display: inline-block;
height: auto;
margin-left: 15px;
}
.Category__list {
display: flex;
}
.Category__list_item {
margin-right: 15px;
}
.Category__list_item a {
display: block;
background-color: #fefefe;
border: 1px solid #333;
padding: 0 8px;
color: #333;
border-radius: 5px;
}
@media screen and (min-width:768px) and (max-width:1024px) {
.ec-productRole__btn {
margin-right: 40px;
width: 250px;
}
.p-detail__fv__inner__right {
width: 100%;
}
}
@media screen and (max-width:768px) {
.p-detail__fv__inner__right {
width: 100%;
}
.ec-productRole__btn {
width: 70%;
}
.p-detail__fv__inner__right__quantity {
flex-direction: column;
justify-content: space-between;
align-items: stretch;
}
.ec-productRole__btn {
margin-bottom: 20px;
}
.ec-numberInput {
margin-bottom: 15px;
}
.sale.ec-blockBtn--action {
margin-left: 0;
display: block;
}
}
</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
}
}]
});
});
</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\": \"{{ Product.name }}\",
\"image\": [
{% for img in Product.ProductImage %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
{% else %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
{% endfor %}
],
\"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
{% if Product.code_min %}
\"sku\": \"{{ Product.code_min }}\",
{% endif %}
\"offers\": {
\"@type\": \"Offer\",
\"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
\"priceCurrency\": \"{{ eccube_config.currency }}\",
\"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
// \"price\": {{ Product.getPrice02Min ? Product.getPrice02Min : 0}},
\"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
}
}
</script>
{% endblock %}
{% block main %}
<section class=\"p-detail__fv\">
<div class=\"p-detail__fv__inner\">
<div class=\"p-detail__fv__inner__left\">
<div class=\"swiper\">
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\">
<!-- Slides -->
{% for ProductImage in Product.ProductImage %}
<div class=\"swiper-slide\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\"></div>
{% else %}
<div class=\"swiper-slide\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" /></div>
{% endfor %}
</div>
</div>
<div class=\"slider-thumbnail\">
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\">
<!-- Slides -->
{% for ProductImage in Product.ProductImage %}
<div class=\"swiper-slide\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div>
{% endfor %}
</div>
</div>
<p style=\"text-align: left; font-size:14px;\">※写真はイメージです。<br>配達時には食品安全考慮の為真空パックにてお届け致します。</p>
{% if Product.id == '9' or Product.id == '7' or Product.id == '8' or Product.id == '18' or Product.id == '6' or Product.id == '5' or Product.id == '14' or Product.id == '13' or Product.id == '19' %}
<p style=\"text-align: left; font-size:14px;\">※商品に味付けはございません。<br>ご家庭で塩、ブラックペッパー、タレ、お出汁などご準備ください。</p>
{% elseif Product.id == '12' %}
<p style=\"text-align: left; font-size:14px;\">※塩、ブラックペッパーにて味付けをしておりますが、<br>調理後味気が足りない場合は塩を少々お掛けください。<br>また、わさび、おろししょうが、おろしニンニクが合います。</p>
{% elseif Product.id == '11' %}
<p style=\"text-align: left; font-size:14px;\">※塩、ブラックペッパーにて味付けされておりますので調理後そのままお召し上がり下さい。</p>
{% elseif Product.id == '16' or Product.id == '17' %}
<p style=\"text-align: left; font-size:14px;\">※ご自宅の油にてお揚げください。<br>※卵、小麦粉、パン粉を使用しております。<br>当該品目のアレルギーをお持ちの方はお控え下さい。</p>
{% endif %}
<div class=\"ec-productRole__description__pcNone\">{{ Product.description_detail|raw|nl2br }}
</div>
</div>
<div class=\"p-detail__fv__inner__right\">
{% if Product.freearea %}
<p class=\"p-detail__fv__inner__right__subtitle\">
{{ include(template_from_string(Product.freearea)) }}
{#<br>{{ Product.name }}#}
</p>
{% endif %}
{#<h2 class=\"p-detail__fv__inner__right__title\">#}
{# {{ Product.name }}#}
{#</h2>#}
{% 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__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01Min|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__priceRegularPrice\">{{ '通常価格'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01Min|price }}~ {{ Product.getPrice01Max|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__priceRegularPrice\">{{ '通常価格'|trans }}:{{ Product.getPrice01Min|price }}</span>#}
<span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
{% endif %}
{% endif %}
<p class=\"p-detail__fv__inner__right__price\">
<div class=\"ec-productRole__price\">
販売価格
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
<div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price underline\">{{ Product.getPrice02IncTaxMin|price }}</span>
{#<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price\">{{ Product.getPrice02Min|price }}</span>#}
<span class=\"ec-price__tax small\">{{ '税込'|trans }}</span>
</div>
{% else %}
<div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price underline\">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span>
{#<span class=\"ec-price__price price02-default p-detail__fv__inner__right__price\">{{ Product.getPrice02Min|price }} ~ {{ Product.getPrice02Max|price }}</span>#}
<span class=\"ec-price__tax small\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{% else %}
<div class=\"p-detail__fv__inner__right__price\">
<span class=\"ec-price__price p-detail__fv__inner__right__price underline\">{{ Product.getPrice02IncTaxMin|price }}</span>
{#<span class=\"ec-price__price p-detail__fv__inner__right__price\">{{ Product.getPrice02Min|price }}</span>#}
<span class=\"ec-price__tax small\">{{ '税込'|trans }}</span>
</div>
{% endif %}
</div>
</p>
{% if Product.ProductCategories is not empty %}
<div class=\"ec-productRole__category\">
<div>{{ '関連カテゴリ'|trans }}</div>
<ul class=\"Category__list\">
{% for ProductCategory in Product.ProductCategories %}
<li class=\"Category__list_item\">
{% for Category in ProductCategory.Category.path %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}#page_anchor\">{{ Category.name }}</a> {%- if loop.last == false %}
<span>></span>{% endif -%}
{% endfor %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class=\"p-detail__fv__inner__right__quantity\">
{#<p>数量</p>#}
{#<div class=\"p-detail__fv__inner__right__quantity__box\">#}
{# <p>ー</p>#}
{# <p>1</p>#}
{# <p>+</p>#}
{#</div>#}
<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_row(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ 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>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{{ form_rest(form) }}
</form>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__btn\">
{% if is_favorite == false %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
{{ 'お気に入りに追加'|trans }}
</button>
{% else %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
</div>
<p style=\"margin-top: 15px; font-size:14px;\">送料は全国一律1,350円となっております。<br>
商品合計金額で16,000円以上購入で、送料は弊社負担とさせていただきます。</p>
<div class=\"ec-productRole__description__spNone\">{{ Product.description_detail|raw|nl2br }}
</div>
</div>
</div>
</section>
<section class=\"p-detail__merchandise\">
<img class=\"cloud2\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp')}}\" alt=\"雲\">
<img class=\"cloud1\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp')}}\" alt=\"雲\">
<img id=\"visible\" class=\"absolute3\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/chara2.webp')}}\" alt=\"キャラクター\">
<div class=\"section__title\">
<img src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cow.webp')}}\" alt=\"牛のイラスト\">
<h2>商品詳細</h2>
</div>
<div class=\"p-detail__merchandise__box\">
<div class=\"p-detail__merchandise__box__left\">
<img src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/EC6062.jpeg')}}\" alt=\"お肉の写真\">
</div>
<p class=\"p-detail__merchandise__box__right\">
私たちが自信を持って厳選した銘柄牛を<br>
端材まで余すことなくふんだんに使用し、<br>
カルビ、ロース、モモなどの部位の他に<br>
ハンバーグなどの加工食品も合わせた詰<br>
め合わせとなっております。<br>
銘柄牛の美味しさがギュッと詰まった商<br>
品となっておりますので、ぜひこの機会<br>
にお求めください。</p>
</div>
</section>
{% endblock %}", "Product/detail.twig", "/home/xb579178/xb579178.xbiz.jp/public_html/test-ec-05/app/template/default/Product/detail.twig");
}
}