<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* __string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc */
class __TwigTemplate_8eed773a5405109f738f5c7c4ce5b7f522b55426443301ce2bea0dcd0cacf32e 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'],
'pagetitlearea' => [$this, 'block_pagetitlearea'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
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 16
echo "\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 97
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 98
echo "\t<script>
\t\teccube.classCategories = ";
// line 99
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 99, $this->source); })()), 99, $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 110
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 110)) {
echo "fnSetClassCategories(\$('#form1'), ";
echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 110, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 110), "vars", [], "any", false, false, true, 110), "value", [], "any", false, false, true, 110), 110, $this->source));
echo ");
";
} elseif (twig_get_attribute($this->env, $this->source, // line 111
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 111)) {
// line 112
echo "eccube.checkStock(\$('#form1'), ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 112, $this->source); })()), "id", [], "any", false, false, true, 112), 112, $this->source), "html", null, true);
echo ", ";
echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 112, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 112), "vars", [], "any", false, false, true, 112), "value", [], "any", false, false, true, 112), 112, $this->source));
echo ", null);";
}
// line 113
echo "\t</script>
\t<script>
\t\t\$(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);
})
});
\t</script>
\t<script>
\t\t\$(function () {
\$('.add-cart').on('click', function (event){
";
// line 173
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 173)) {
// line 174
echo "// 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 176
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 182
echo "
";
// line 183
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 183)) {
// line 184
echo "// 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 186
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 192
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 195
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
//\$('.ec-modal-box').addClass('nonebtns');
return true;
} else {
//\$('.ec-modal-box').removeClass('nonebtns');
\$('#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 220
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 224
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()
});
\t</script>
\t<script type=\"application/ld+json\">
\t\t{
\t\t \"@context\": \"https://schema.org/\",
\t\t \"@type\": \"Product\",
\t\t \"name\": \"";
// line 242
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 242, $this->source); })()), "name", [], "any", false, false, true, 242), 242, $this->source), "html", null, true);
echo "\",
\t\t \"image\": [
\t\t";
// line 244
$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.', 244, $this->source); })()), "ProductImage", [], "any", false, false, true, 244));
$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 245
echo "\t\t\t\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 245, $this->source); })()), "request", [], "any", false, false, true, 245), "schemeAndHttpHost", [], "any", false, false, true, 245), 245, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["img"], 245, $this->source), "save_image"), "html", null, true);
echo "\"
\t\t\t";
// line 246
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 246)) {
echo ",
\t\t\t";
}
// line 248
echo "
\t\t";
$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 250
echo "\t\t\t\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 250, $this->source); })()), "request", [], "any", false, false, true, 250), "schemeAndHttpHost", [], "any", false, false, true, 250), 250, $this->source), "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 "\"
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 252
echo "\t\t],
\t\t \"description\": \"";
// line 253
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, true, 253)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, true, 253), 253, $this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 253, $this->source); })()), "description_detail", [], "any", false, false, true, 253), 253, $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.', 253, $this->source); })()), "description_detail", [], "any", false, false, true, 253))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
\t\t";
// line 254
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.', 254, $this->source); })()), "code_min", [], "any", false, false, true, 254)) {
// line 255
echo "\t\t\t\"sku\": \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 255, $this->source); })()), "code_min", [], "any", false, false, true, 255), 255, $this->source), "html", null, true);
echo "\",
\t\t";
}
// line 257
echo "\t\t\"offers\": {
\t\t \"@type\": \"Offer\",
\t\t \"url\": \"";
// line 259
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.', 259, $this->source); })()), "id", [], "any", false, false, true, 259)]), "html", null, true);
echo "\",
\t\t \"priceCurrency\": \"";
// line 260
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 260, $this->source); })()), "currency", [], "any", false, false, true, 260), 260, $this->source), "html", null, true);
echo "\",
\t\t \"price\":
\t\t";
// line 262
((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 262, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 262)) ? (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.', 262, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 262), "html", null, true))) : (print (0)));
echo ",
\t\t \"availability\": \"";
// line 263
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.', 263, $this->source); })()), "stock_find", [], "any", false, false, true, 263)) ? ("InStock") : ("OutOfStock"));
echo "\"
\t\t }
\t\t }
\t</script>";
// line 269
echo "<script>
\$(function() {
var \$form = \$('#form1');
var \$submit = \$form.find('.add-cart');
function checkRequiredFields() {
var allValid = true;
\$('label.form-label.required').each(function () {
var targetId = \$(this).attr('for');
var \$input = \$('#' + targetId);
if (\$input.length === 0) return;
var isValid = true;
if (\$input.is('select')) {
var val = \$input.val();
var firstVal = \$input.find('option:first').val();
if (!val || val === firstVal) {
isValid = false;
}
} else if (\$input.is('input, textarea')) {
if (!\$input.val().trim()) {
isValid = false;
}
}
\$input.toggleClass('field-error', !isValid);
if (!isValid) allValid = false;
});
\$submit.prop('disabled', !allValid);
}
// 入力・変更時にチェック
\$form.on('input change', 'select, input, textarea', function() {
checkRequiredFields();
});
// 初期状態でチェック
checkRequiredFields();
});
</script>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 316
public function block_pagetitlearea($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", "pagetitlearea"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pagetitlearea"));
// line 317
echo "
<div class=\"main-top\">
\t\t";
// line 320
echo "\t\t<div id=\"pagetitle\">
\t\t\t<h2>
\t\t\t\tPRODUCT
\t\t\t\t<small>商品</small>
\t\t\t</h2>
\t\t\t<div class=\"image\">
\t\t\t\t<img src=\"";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/assets/images/pagetitle-image-product.jpg"), "html", null, true);
echo "\">
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 332
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 333
echo "
\t<div class=\"ec-productRole\">
\t\t<div class=\"carender-detail\">
\t\t\t<p class=\"title\">
\t\t\t";
// line 345
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.', 345, $this->source); })()), "code_min", [], "any", false, false, true, 345))) {
echo "【";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 345, $this->source); })()), "code_min", [], "any", false, false, true, 345), 345, $this->source), "html", null, true);
echo "】";
}
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 345, $this->source); })()), "name", [], "any", false, false, true, 345), 345, $this->source), "html", null, true);
echo "
\t\t\t</p>
";
// line 350
echo "\t\t\t\t\t";
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.', 350, $this->source); })()), "ProductCategories", [], "any", false, false, true, 350))) {
// line 351
echo "\t\t\t\t\t\t<div class=\"carender-detail-category\">
\t\t\t\t\t\t\t";
// line 352
$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.', 352, $this->source); })()), "ProductCategories", [], "any", false, false, true, 352));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 353
echo "\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t";
// line 355
$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, true, 355), "path", [], "any", false, false, true, 355));
$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 356
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 356) == true)) {
// line 357
echo "\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Category"], "id", [], "any", false, false, true, 357), 357, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, true, 357), 357, $this->source), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t\t\t";
}
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 360
echo "\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 363
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 365
echo "
\t\t\t<div class=\"image-txt\">
<div class=\"image";
// 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); })()), "stock_find", [], "any", false, false, true, 371)) {
} else {
echo " souldout";
}
echo "\">
<div class=\"thumbset\">
<ul class=\"main\">
\t\t ";
// line 376
$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.', 376, $this->source); })()), "ProductImage", [], "any", false, false, true, 376));
$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 377
echo " <li><div class=\"mainimage\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 377, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 377)) ? (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.', 377, $this->source); })()), "name", [], "any", false, false, true, 377), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 377) > 1)) {
echo " loading=\"lazy\"";
}
echo "></div></li>
";
$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 379
echo " <li><div class=\"mainimage\"><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, true, 379)) ? (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.', 379, $this->source); })()), "name", [], "any", false, false, true, 379), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"></div></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 381
echo " </ul>
<ul class=\"thumb\">
\t\t ";
// line 383
$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.', 383, $this->source); })()), "ProductImage", [], "any", false, false, true, 383));
foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
// line 384
echo " <li><div class=\"thumbimage\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 384, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 386
echo " </ul>
</div>
</div><!--image-->
\t\t\t\t<div class=\"txtbox\">
\t\t\t\t
\t\t\t\t\t<table>
\t\t\t\t\t";
// line 398
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.', 398, $this->source); })()), "ViewData", [0 => 1], "method", false, false, true, 398))) {
// line 399
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>サイズ</th>
\t\t\t\t\t\t\t<td>";
// line 401
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 401, $this->source); })()), "ViewData", [0 => 1], "method", false, false, true, 401), 401, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 404
echo "\t\t\t\t\t\t";
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.', 404, $this->source); })()), "ViewData", [0 => 2], "method", false, false, true, 404))) {
// line 405
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>用紙</th>
\t\t\t\t\t\t\t<td>";
// line 407
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 407, $this->source); })()), "ViewData", [0 => 2], "method", false, false, true, 407), 407, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 410
echo "\t\t\t\t\t\t";
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.', 410, $this->source); })()), "ViewData", [0 => 3], "method", false, false, true, 410))) {
// line 411
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>梱包数(重量)</th>
\t\t\t\t\t\t\t<td>";
// line 413
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 413, $this->source); })()), "ViewData", [0 => 3], "method", false, false, true, 413), 413, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 416
echo "
\t\t\t\t\t\t";
// line 417
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.', 417, $this->source); })()), "ViewData", [0 => 4], "method", false, false, true, 417))) {
// line 418
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れスペース</th>
\t\t\t\t\t\t\t<td>";
// line 420
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 420, $this->source); })()), "ViewData", [0 => 4], "method", false, false, true, 420), 420, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 423
echo "
\t\t\t\t\t\t";
// line 424
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.', 424, $this->source); })()), "ViewData", [0 => 5], "method", false, false, true, 424))) {
// line 425
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れ印刷寸法</th>
\t\t\t\t\t\t\t<td>";
// line 427
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 427, $this->source); })()), "ViewData", [0 => 5], "method", false, false, true, 427), 427, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 430
echo "
\t\t\t\t\t\t";
// line 431
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.', 431, $this->source); })()), "ViewData", [0 => 6], "method", false, false, true, 431))) {
// line 432
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れ印刷方法</th>
\t\t\t\t\t\t\t<td>";
// line 434
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 434, $this->source); })()), "ViewData", [0 => 6], "method", false, false, true, 434), 434, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 437
echo "
\t\t\t\t\t\t";
// line 438
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.', 438, $this->source); })()), "ViewData", [0 => 7], "method", false, false, true, 438))) {
// line 439
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>表紙名入印刷</th>
\t\t\t\t\t\t\t<td>";
// line 441
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 441, $this->source); })()), "ViewData", [0 => 7], "method", false, false, true, 441), 441, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 444
echo "
\t\t\t\t\t\t";
// line 445
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.', 445, $this->source); })()), "ViewData", [0 => 8], "method", false, false, true, 445))) {
// line 446
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>製本</th>
\t\t\t\t\t\t\t<td>";
// line 448
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 448, $this->source); })()), "ViewData", [0 => 8], "method", false, false, true, 448), 448, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 451
echo "
\t\t\t\t\t\t";
// line 452
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.', 452, $this->source); })()), "ViewData", [0 => 9], "method", false, false, true, 452))) {
// line 453
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>備考</th>
\t\t\t\t\t\t\t<td>";
// line 455
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 455, $this->source); })()), "ViewData", [0 => 9], "method", false, false, true, 455), 455, $this->source), "html", null, true);
echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 458
echo "
\t\t\t\t\t</table>
<form class=\"order\" action=\"";
// line 469
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.', 469, $this->source); })()), "id", [], "any", false, false, true, 469)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 470
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.', 470, $this->source); })()), "stock_find", [], "any", false, false, true, 470)) {
// line 471
echo " <div class=\"ec-productRole__actions\">
";
// line 472
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 472)) {
// line 473
echo " <div class=\"ec-select\">
";
// line 474
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 474, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 474), 474, $this->source), 'row');
echo "
";
// line 475
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 475, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 475), 475, $this->source), 'errors');
echo "
</div>
";
// line 477
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 477)) {
// line 478
echo " <div class=\"ec-select\">
";
// line 479
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 479, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 479), 479, $this->source), 'row');
echo "
";
// line 480
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 480, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 480), 480, $this->source), 'errors');
echo "
</div>
";
}
// line 483
echo " ";
}
// line 484
echo "
<div class=\"head\">
\t\t\t\t\t
<div class=\"area\">
<p class=\"formquantitytext\">最小単位10冊より、10冊単位でご入力下さい。<p>
";
// line 491
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Product/option.twig");
echo "<div class=\"ec-numberInput\">
\t\t\t\t\t\t\t\t<p class=\"heading\">お見積冊数</p>
";
// line 493
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 493, $this->source); })()), "quantity", [], "any", false, false, true, 493), 493, $this->source), 'widget');
echo "<span>冊</span>
";
// line 494
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 494, $this->source); })()), "quantity", [], "any", false, false, true, 494), 494, $this->source), 'errors');
echo "
</div>
\t\t\t\t\t\t\t\t
";
// line 504
echo "<script>
\$formquantity = document.getElementById('quantity');
\$formquantity.setAttribute('min', '10');
\$formquantity.setAttribute('step', '10');
\$formquantity.value = 10;
\$formquantity.addEventListener('change', () => {
const val = parseInt(\$formquantity.value, 10);
if (val % 10 !== 0) {
alert('10冊単位でご入力下さい');
\$formquantity.value = ''; // または、前の正しい値に戻す処理を追加も可
}
});
</script>
</div>
</div>
</div>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 524
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お見積もりはコチラ"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 528
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 530
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 534
echo "
";
// line 535
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 535, $this->source); })()), 535, $this->source), 'rest');
echo "
</form>
";
// line 537
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Product/option_description.twig");
echo "<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 540
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 541
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 544
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 545
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 551
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.', 551, $this->source); })()), "option_favorite_product", [], "any", false, false, true, 551)) {
// line 552
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.', 552, $this->source); })()), "id", [], "any", false, false, true, 552)]), "html", null, true);
echo "\" method=\"post\" style=\"display:none;\">
<div class=\"ec-productRole__btn\">
";
// line 554
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 554, $this->source); })()) == false)) {
// line 555
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 556
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html", null, true);
echo "
</button>
";
} else {
// line 559
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 560
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 563
echo " </div>
</form>
";
}
// line 566
echo "
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"box\">
\t\t\t\t<div
\t\t\t\t\tclass=\"text\">
\t\t\t\t\t";
// line 578
echo "\t\t\t\t\t";
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.', 578, $this->source); })()), "hasProductClass", [], "any", false, false, true, 578)) {
// line 579
echo "<div class=\"ec-productRole__priceRegular\">
\t\t\t\t\t\t\t";
// line 580
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.', 580, $this->source); })()), "getPrice01Min", [], "any", false, false, true, 580)) && (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.', 580, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 580) == 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.', 580, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, true, 580)))) {
// line 581
echo "\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t\t";
// line 583
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 583, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 583), 583, $this->source)), "html", null, true);
echo "(税別)</span>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 585
(isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 585, $this->source); })()), "getPrice01Min", [], "any", false, false, true, 585)) && !(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.', 585, $this->source); })()), "getPrice01Max", [], "any", false, false, true, 585)))) {
// line 586
echo "
\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t\t";
// line 589
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 589, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 589), 589, $this->source)), "html", null, true);
echo "~
\t\t\t\t\t\t\t\t\t\t";
// line 590
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 590, $this->source); })()), "getPrice01IncTaxMax", [], "any", false, false, true, 590), 590, $this->source)), "html", null, true);
echo "(税別)</span>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t";
}
// line 593
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
} else {
// line 595
echo "\t\t\t\t\t\t";
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.', 595, $this->source); })()), "getPrice01Max", [], "any", false, false, true, 595))) {
// line 596
echo "\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t";
// line 598
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 598, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 598), 598, $this->source)), "html", null, true);
echo "(税別)</span>
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t";
}
// line 601
echo "\t\t\t\t\t";
}
// line 602
echo "
";
// line 605
echo "\t\t\t\t\t<div class=\"ec-productRole__price big\">
<span class=\"red\">キャンペーン価格(100冊/税別)</span>
\t\t\t\t\t\t\t<br>
";
// line 610
echo "
";
// line 612
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.', 612, $this->source); })()), "stock_find", [], "any", false, false, true, 612)) {
// line 613
echo "
";
// line 615
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.', 615, $this->source); })()), "ViewData", [0 => 11], "method", false, false, true, 615))) {
// line 616
echo "<div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">";
// line 617
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 617, $this->source); })()), "ViewData", [0 => 11], "method", false, false, true, 617), 617, $this->source), "html", null, true);
echo "</span>
</div>
";
} else {
// line 622
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.', 622, $this->source); })()), "hasProductClass", [], "any", false, false, true, 622)) {
// line 623
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.', 623, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 623) == 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.', 623, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 623))) {
// line 624
echo "\t\t\t\t\t\t\t\t<div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price price02-default\">";
// line 625
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.', 625, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 625) == 0)) {
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/textcampaign.twig");
} else {
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 625, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 625), 625, $this->source)), "html", null, true);
echo "/100冊";
}
echo "</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
} else {
// line 628
echo "\t\t\t\t\t\t\t\t<div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price price02-default\">";
// line 629
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 629, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 629), 629, $this->source)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t";
// line 631
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 631, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 631), 631, $this->source)), "html", null, true);
echo "/100冊</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 634
echo "\t\t\t\t\t\t";
} else {
// line 635
echo " <div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price\">";
// line 636
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.', 636, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 636) == 0)) {
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/textcampaign.twig");
} else {
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 636, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 636), 636, $this->source)), "html", null, true);
echo "/100冊";
}
echo "</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 639
echo "
";
}
// line 641
echo "
";
// line 644
echo " ";
} else {
// line 645
echo "
";
// line 647
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.', 647, $this->source); })()), "ViewData", [0 => 11], "method", false, false, true, 647))) {
// line 648
echo "<div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">";
// line 649
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 649, $this->source); })()), "ViewData", [0 => 11], "method", false, false, true, 649), 649, $this->source), "html", null, true);
echo "</span>
</div>
";
} else {
// line 653
echo " <div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">";
// line 654
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/textcampaign.twig");
echo "</span>
</div>
";
}
// line 657
echo "
";
}
// line 659
echo "\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t<p>
\t\t\t\t\t\t";
// line 668
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 668, $this->source); })()), "ViewData", [0 => 10], "method", false, false, true, 668), 668, $this->source), "html", null, true);
echo "
\t\t\t\t\t</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t
\t\t\t\t\t
\t\t\t
\t\t\t<div class=\"text\">
\t\t\t<h2>";
// line 684
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.', 684, $this->source); })()), "code_min", [], "any", false, false, true, 684))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 684, $this->source); })()), "code_min", [], "any", false, false, true, 684), 684, $this->source), "html", null, true);
}
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 684, $this->source); })()), "name", [], "any", false, false, true, 684), 684, $this->source), "html", null, true);
echo "</h2>
";
// line 687
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 687, $this->source); })()), "description_detail", [], "any", false, false, true, 687), 687, $this->source));
echo "
";
// line 690
echo "\t\t\t";
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.', 690, $this->source); })()), "freearea", [], "any", false, false, true, 690)) {
// line 691
echo "\t\t\t\t";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, twig_template_from_string($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 691, $this->source); })()), "freearea", [], "any", false, false, true, 691), 691, $this->source)), array(), true, false, true);
echo "
\t\t\t\t";
}
// line 693
echo "\t\t\t</div>
";
// line 697
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($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.', 697, $this->source); })()), "ProductImage", [], "any", false, false, true, 697), 1));
foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
// line 698
echo "\t\t\t\t\t\t\t<div class=\"fullimg\">
\t\t\t\t\t\t\t<img src=\"";
// line 699
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 699, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 702
echo "
\t\t\t
\t\t\t";
// line 710
echo "\t\t\t<div class=\"tel-fax\">
\t\t\t\t<div class=\"content\">
\t\t\t\t\t<div class=\"block fax\">
\t\t\t\t\t\t<p class=\"heading\">FAXからのお問い合わせ</p>
\t\t\t\t\t\t<div class=\"center\">
\t\t\t\t\t\t\t<a href=\"fax:0532-55-7373\">
\t\t\t\t\t\t\t\t<span>TEL.</span>0532-55-7373</a>
\t\t\t\t\t\t\t<p class=\"time\">受付時間 / 24時間年中無休</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"block-btn\">
\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"https://kinkodo-calendar.com/html/template/kinkodo/assets/assets/pdf/order.pdf\">FAX注文用紙</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"block tel\">
\t\t\t\t\t\t<p class=\"heading\">お電話からのお問い合わせ</p>
\t\t\t\t\t\t<div class=\"center\">
\t\t\t\t\t\t\t<a href=\"tel:0532-52-5749\">
\t\t\t\t\t\t\t\t<span>TEL.</span>0532-52-5749</a>
\t\t\t\t\t\t\t<p class=\"time\">受付時間 / 平日・土曜日9:00~18:30</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"block-btn\">
\t\t\t\t\t\t<a href=\"/contact?contacttype=お問い合わせ\">メールフォーム</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<p class=\"time\">※FAX・メールの返信時間帯 平日・土曜日 / 9:00~19:00</p>
\t\t\t</div>
\t\t</div>
\t\t
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "__string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1265 => 710, 1256 => 702, 1247 => 699, 1244 => 698, 1240 => 697, 1235 => 693, 1229 => 691, 1226 => 690, 1221 => 687, 1212 => 684, 1193 => 668, 1182 => 659, 1178 => 657, 1172 => 654, 1169 => 653, 1163 => 649, 1160 => 648, 1158 => 647, 1155 => 645, 1152 => 644, 1148 => 641, 1144 => 639, 1133 => 636, 1130 => 635, 1127 => 634, 1121 => 631, 1116 => 629, 1113 => 628, 1102 => 625, 1099 => 624, 1097 => 623, 1095 => 622, 1088 => 617, 1085 => 616, 1083 => 615, 1080 => 613, 1078 => 612, 1075 => 610, 1069 => 605, 1065 => 602, 1062 => 601, 1056 => 598, 1052 => 596, 1049 => 595, 1045 => 593, 1039 => 590, 1035 => 589, 1030 => 586, 1028 => 585, 1023 => 583, 1019 => 581, 1017 => 580, 1014 => 579, 1011 => 578, 998 => 566, 993 => 563, 987 => 560, 984 => 559, 978 => 556, 975 => 555, 973 => 554, 967 => 552, 965 => 551, 954 => 545, 950 => 544, 944 => 541, 940 => 540, 934 => 537, 929 => 535, 926 => 534, 919 => 530, 915 => 528, 908 => 524, 886 => 504, 874 => 494, 870 => 493, 865 => 491, 856 => 484, 853 => 483, 847 => 480, 843 => 479, 840 => 478, 838 => 477, 833 => 475, 829 => 474, 826 => 473, 824 => 472, 821 => 471, 819 => 470, 815 => 469, 802 => 458, 796 => 455, 792 => 453, 790 => 452, 787 => 451, 781 => 448, 777 => 446, 775 => 445, 772 => 444, 766 => 441, 762 => 439, 760 => 438, 757 => 437, 751 => 434, 747 => 432, 745 => 431, 742 => 430, 736 => 427, 732 => 425, 730 => 424, 727 => 423, 721 => 420, 717 => 418, 715 => 417, 712 => 416, 706 => 413, 702 => 411, 699 => 410, 693 => 407, 689 => 405, 686 => 404, 680 => 401, 676 => 399, 674 => 398, 660 => 386, 651 => 384, 647 => 383, 643 => 381, 632 => 379, 610 => 377, 592 => 376, 581 => 371, 573 => 365, 569 => 363, 561 => 360, 539 => 357, 537 => 356, 520 => 355, 516 => 353, 512 => 352, 509 => 351, 506 => 350, 494 => 345, 480 => 333, 470 => 332, 455 => 326, 447 => 320, 443 => 317, 433 => 316, 381 => 269, 375 => 263, 371 => 262, 366 => 260, 362 => 259, 358 => 257, 352 => 255, 350 => 254, 345 => 253, 342 => 252, 332 => 250, 318 => 248, 313 => 246, 307 => 245, 289 => 244, 284 => 242, 263 => 224, 256 => 220, 228 => 195, 223 => 192, 214 => 186, 210 => 184, 208 => 183, 205 => 182, 196 => 176, 192 => 174, 190 => 173, 128 => 113, 121 => 112, 119 => 111, 113 => 110, 99 => 99, 96 => 98, 86 => 97, 76 => 16, 66 => 15, 55 => 11, 53 => 13, 40 => 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 %}
\t{#
\t <style>
\t
\t .slick-slider {
\t margin-bottom: 30px;
\t }
\t
\t .slick-dots {
\t position: absolute;
\t bottom: -45px;
\t display: block;
\t width: 100%;
\t padding: 0;
\t list-style: none;
\t text-align: center;
\t }
\t
\t .slick-dots li {
\t position: relative;
\t display: inline-block;
\t width: 20px;
\t height: 20px;
\t margin: 0 5px;
\t padding: 0;
\t
\t cursor: pointer;
\t }
\t
\t .slick-dots li button {
\t font-size: 0;
\t line-height: 0;
\t display: block;
\t width: 20px;
\t height: 20px;
\t padding: 5px;
\t cursor: pointer;
\t color: transparent;
\t border: 0;
\t outline: none;
\t background: transparent;
\t }
\t
\t .slick-dots li button:hover,
\t .slick-dots li button:focus {
\t outline: none;
\t }
\t
\t .slick-dots li button:hover:before,
\t .slick-dots li button:focus:before {
\t opacity: 1;
\t }
\t
\t .slick-dots li button:before {
\t content: \" \";
\t line-height: 20px;
\t position: absolute;
\t top: 0;
\t left: 0;
\t width: 12px;
\t height: 12px;
\t text-align: center;
\t opacity: .25;
\t background-color: black;
\t border-radius: 50%;
\t
\t }
\t
\t .slick-dots li.slick-active button:before {
\t opacity: .75;
\t background-color: black;
\t }
\t
\t .slick-dots li button.thumbnail img {
\t width: 0;
\t height: 0;
\t }
\t
\t </style>
\t #}
{% endblock %}
{% block javascript %}
\t<script>
\t\teccube.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 %}
\t</script>
\t<script>
\t\t\$(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);
})
});
\t</script>
\t<script>
\t\t\$(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 }}');
//\$('.ec-modal-box').addClass('nonebtns');
return true;
} else {
//\$('.ec-modal-box').removeClass('nonebtns');
\$('#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()
});
\t</script>
\t<script type=\"application/ld+json\">
\t\t{
\t\t \"@context\": \"https://schema.org/\",
\t\t \"@type\": \"Product\",
\t\t \"name\": \"{{ Product.name }}\",
\t\t \"image\": [
\t\t{% for img in Product.ProductImage %}
\t\t\t\"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"
\t\t\t{% if not loop.last %},
\t\t\t{% endif %}
\t\t{% else %}
\t\t\t\"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
\t\t{% endfor %}
\t\t],
\t\t \"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
\t\t{% if Product.code_min %}
\t\t\t\"sku\": \"{{ Product.code_min }}\",
\t\t{% endif %}
\t\t\"offers\": {
\t\t \"@type\": \"Offer\",
\t\t \"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
\t\t \"priceCurrency\": \"{{ eccube_config.currency }}\",
\t\t \"price\":
\t\t{{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
\t\t \"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
\t\t }
\t\t }
\t</script>
{#-------------------商品オプション 必須項目未入力時カート追加ボタンを押せないように--------------------#}
<script>
\$(function() {
var \$form = \$('#form1');
var \$submit = \$form.find('.add-cart');
function checkRequiredFields() {
var allValid = true;
\$('label.form-label.required').each(function () {
var targetId = \$(this).attr('for');
var \$input = \$('#' + targetId);
if (\$input.length === 0) return;
var isValid = true;
if (\$input.is('select')) {
var val = \$input.val();
var firstVal = \$input.find('option:first').val();
if (!val || val === firstVal) {
isValid = false;
}
} else if (\$input.is('input, textarea')) {
if (!\$input.val().trim()) {
isValid = false;
}
}
\$input.toggleClass('field-error', !isValid);
if (!isValid) allValid = false;
});
\$submit.prop('disabled', !allValid);
}
// 入力・変更時にチェック
\$form.on('input change', 'select, input, textarea', function() {
checkRequiredFields();
});
// 初期状態でチェック
checkRequiredFields();
});
</script>
{#---------------------------------------------------------------------------------#}
{% endblock %}
{% block pagetitlearea %}
<div class=\"main-top\">
\t\t{# ページタイトル #}
\t\t<div id=\"pagetitle\">
\t\t\t<h2>
\t\t\t\tPRODUCT
\t\t\t\t<small>商品</small>
\t\t\t</h2>
\t\t\t<div class=\"image\">
\t\t\t\t<img src=\"{{ asset('assets/assets/images/pagetitle-image-product.jpg') }}\">
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
{% block main %}
\t<div class=\"ec-productRole\">
\t\t<div class=\"carender-detail\">
\t\t\t<p class=\"title\">
\t\t\t{# 商品コード #}{% if Product.code_min is not empty %}【{{ Product.code_min }}】{% endif %}{{ Product.name }}
\t\t\t</p>
{# 関連カテゴリ #}
\t\t\t\t\t{% if Product.ProductCategories is not empty %}
\t\t\t\t\t\t<div class=\"carender-detail-category\">
\t\t\t\t\t\t\t{% for ProductCategory in Product.ProductCategories %}
\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t\t\t{% for Category in ProductCategory.Category.path %}
\t\t\t\t\t\t\t\t\t\t\t{%- if loop.last == true %}
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a>
\t\t\t\t\t\t\t\t\t\t\t{% endif -%}
\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t<div class=\"image-txt\">
<div class=\"image{% if Product.stock_find %}{% else %} souldout{% endif %}\">
<div class=\"thumbset\">
<ul class=\"main\">
\t\t {% for ProductImage in Product.ProductImage %}
<li><div class=\"mainimage\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}></div></li>
{% else %}
<li><div class=\"mainimage\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"></div></li>
{% endfor %}
</ul>
<ul class=\"thumb\">
\t\t {% for ProductImage in Product.ProductImage %}
<li><div class=\"thumbimage\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div></li>
{% endfor %}
</ul>
</div>
</div><!--image-->
\t\t\t\t<div class=\"txtbox\">
\t\t\t\t
\t\t\t\t\t<table>
\t\t\t\t\t{% if Product.ViewData(1) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>サイズ</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(1)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(2) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>用紙</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(2)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(3) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>梱包数(重量)</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(3)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(4) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れスペース</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(4)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(5) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れ印刷寸法</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(5)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(6) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>名入れ印刷方法</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(6)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(7) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>表紙名入印刷</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(7)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(8) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>製本</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(8)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if Product.ViewData(9) is not empty %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>備考</th>
\t\t\t\t\t\t\t<td>{{Product.ViewData(9)}}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</table>
<form class=\"order\" 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=\"head\">
\t\t\t\t\t
<div class=\"area\">
<p class=\"formquantitytext\">最小単位10冊より、10冊単位でご入力下さい。<p>
{{ include('Product/option.twig') }}<div class=\"ec-numberInput\">
\t\t\t\t\t\t\t\t<p class=\"heading\">お見積冊数</p>
{{ form_widget(form.quantity) }}<span>冊</span>
{{ form_errors(form.quantity) }}
</div>
\t\t\t\t\t\t\t\t
{# お見積冊数を10刻みに #}
<script>
\$formquantity = document.getElementById('quantity');
\$formquantity.setAttribute('min', '10');
\$formquantity.setAttribute('step', '10');
\$formquantity.value = 10;
\$formquantity.addEventListener('change', () => {
const val = parseInt(\$formquantity.value, 10);
if (val % 10 !== 0) {
alert('10冊単位でご入力下さい');
\$formquantity.value = ''; // または、前の正しい値に戻す処理を追加も可
}
});
</script>
</div>
</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>
{{ include('Product/option_description.twig') }}<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\" style=\"display:none;\">
<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 %}
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"box\">
\t\t\t\t<div
\t\t\t\t\tclass=\"text\">
\t\t\t\t\t{# 通常価格 #}
\t\t\t\t\t{% if Product.hasProductClass -%}
\t\t\t\t\t\t<div class=\"ec-productRole__priceRegular\">
\t\t\t\t\t\t\t{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice01IncTaxMin|price }}(税別)</span>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice01IncTaxMin|price }}~
\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice01IncTaxMax|price }}(税別)</span>
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% if Product.getPrice01Max is not null %}
\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t<span class=\"bold\">100冊時の通常価格:
\t\t\t\t\t\t\t\t\t{{ Product.getPrice01IncTaxMin|price }}(税別)</span>
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
{# 販売価格 #}
\t\t\t\t\t<div class=\"ec-productRole__price big\">
<span class=\"red\">キャンペーン価格(100冊/税別)</span>
\t\t\t\t\t\t\t<br>
{# 価格表示ここから #}
{# 在庫があるかどうか #}
{% if Product.stock_find %}
{# 販売価格にテキストがあるかどうか #}
{% if Product.ViewData(11) is not empty %}
<div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">{{Product.ViewData(11)}}</span>
</div>
{# 販売価格にテキストがない場合価格を表示 0円の場合は準備中のテキストを表示 #}
{% else %}
{% if Product.hasProductClass -%}
\t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
\t\t\t\t\t\t\t\t<div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price price02-default\">{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}{% else %}{{ Product.getPrice02IncTaxMin|price }}/100冊{% endif %}</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|price }}
\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|price }}/100冊</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% else %}
<div class=\"ec-price\">
\t\t\t\t\t\t\t\t\t<span class=\"ec-price__price\">{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}{% else %}{{ Product.getPrice02IncTaxMin|price }}/100冊{% endif %}</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
{% endif %}
{# 在庫がない場合 #}
{% else %}
{# 販売価格にテキストがあるかどうか #}
{% if Product.ViewData(11) is not empty %}
<div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">{{Product.ViewData(11)}}</span>
</div>
{# 販売価格にテキストがない場合 #}
{% else %}
<div class=\"ec-price\">
\t\t<span class=\"ec-price__price\">{{ include('Block/textcampaign.twig') }}</span>
</div>
{% endif %}
{% endif %}
{# 価格表示ここまで #}\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t<p>
\t\t\t\t\t\t{{Product.ViewData(10)}}
\t\t\t\t\t</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t
\t\t\t\t\t
\t\t\t
\t\t\t<div class=\"text\">
\t\t\t<h2>{# 商品コード #}{% if Product.code_min is not empty %}{{ Product.code_min }}{% endif %} {{ Product.name }}</h2>
{# 商品説明 #}
{{ Product.description_detail|raw|nl2br }}
{# フリーエリア #}
\t\t\t{% if Product.freearea %}
\t\t\t\t{{ include(template_from_string(Product.freearea), sandboxed = true) }}
\t\t\t\t{% endif %}
\t\t\t</div>
{# 商品画像2枚目以降から出力 #}
{% for ProductImage in Product.ProductImage|slice(1) %}
\t\t\t\t\t\t\t<div class=\"fullimg\">
\t\t\t\t\t\t\t<img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endfor %}
\t\t\t
\t\t\t{# 電話とメールフォーム #}
\t\t\t<div class=\"tel-fax\">
\t\t\t\t<div class=\"content\">
\t\t\t\t\t<div class=\"block fax\">
\t\t\t\t\t\t<p class=\"heading\">FAXからのお問い合わせ</p>
\t\t\t\t\t\t<div class=\"center\">
\t\t\t\t\t\t\t<a href=\"fax:0532-55-7373\">
\t\t\t\t\t\t\t\t<span>TEL.</span>0532-55-7373</a>
\t\t\t\t\t\t\t<p class=\"time\">受付時間 / 24時間年中無休</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"block-btn\">
\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"https://kinkodo-calendar.com/html/template/kinkodo/assets/assets/pdf/order.pdf\">FAX注文用紙</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"block tel\">
\t\t\t\t\t\t<p class=\"heading\">お電話からのお問い合わせ</p>
\t\t\t\t\t\t<div class=\"center\">
\t\t\t\t\t\t\t<a href=\"tel:0532-52-5749\">
\t\t\t\t\t\t\t\t<span>TEL.</span>0532-52-5749</a>
\t\t\t\t\t\t\t<p class=\"time\">受付時間 / 平日・土曜日9:00~18:30</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"block-btn\">
\t\t\t\t\t\t<a href=\"/contact?contacttype=お問い合わせ\">メールフォーム</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<p class=\"time\">※FAX・メールの返信時間帯 平日・土曜日 / 9:00~19:00</p>
\t\t\t</div>
\t\t</div>
\t\t
\t</div>
{% endblock %}", "__string_template__063f8b06ae51e18c749e258f0c761d90400a6cd0d60e227da64a4fb27b8988fc", "");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 110, "for" => 244);
static $filters = array("raw" => 99, "json_encode" => 110, "escape" => 112, "trans" => 176, "no_image_product" => 250, "slice" => 253, "replace" => 253, "default" => 253, "price" => 583, "nl2br" => 687);
static $functions = array("class_categories_as_json" => 99, "url" => 220, "asset" => 245, "form_row" => 474, "form_errors" => 475, "include" => 491, "form_widget" => 493, "form_rest" => 535, "template_from_string" => 691);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['raw', 'json_encode', 'escape', 'trans', 'no_image_product', 'slice', 'replace', 'default', 'price', 'nl2br'],
['class_categories_as_json', 'url', 'asset', 'form_row', 'form_errors', 'include', 'form_widget', 'form_rest', 'template_from_string']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}