<?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;
/* @user_data/tel_service_product.twig */
class __TwigTemplate_91572b0b80a6c6ef26fc1ba3610e27a3ae485679f53d8638319a384bdf802e3f extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/tel_service_product.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/tel_service_product.twig"));
// line 3
$context["body_class"] = "product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/tel_service_product.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_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 6
echo " <script>
(function(d) {
var config = {
kitId: 'pki8bzh',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\\bwf-loading\\b/g,\"\")+\" wf-inactive\";},config.scriptTimeout),tk=d.createElement(\"script\"),f=false,s=d.getElementsByTagName(\"script\")[0],a;h.className+=\" wf-loading\";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!=\"complete\"&&a!=\"loaded\")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
</script>
<script>
eccube.productsClassCategories = {
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 19, $this->source); })()));
$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["Product"]) {
// line 20
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 20), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 20) == false)) {
echo ", ";
}
// line 21
echo " ";
++$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['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " };
\$(function() {
// 検索条件を追加
\$('.btn-condition').click(function() {
\$('#active_idx').val(\$(this).index());
});
\$('.form-check-input').change(function() {
\$(\"#form1\").submit();
});
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 規格1フォームの必須チェック
var \$form_select = \$form.parent().find('.form-select');
if (\$form_select.val() == '__unselected' || \$form_select.val() == '') {
\$form_select[0].setCustomValidity('";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$form_select[0].setCustomValidity('');
}
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.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 95
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 102
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);
});
});
\$('.favorite').click(function(event) {
if (\$(this).attr('disabled') != 'disabled') {
\$(this).closest('li.product').find('.list-add-favorite').submit();
}
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script>
\$(document).ready(function(){
\$(\".left .list-btn .btn-condition\").eq(\$('#active_idx').val()).addClass('active');
\$(\".right .item\").eq(\$('#active_idx').val()).addClass('active');
\$(\".left .list-btn .btn-condition\").click(function(e){
if (!\$(this).hasClass(\"active\")) {
var tabNum = \$(this).index();
var nthChild = tabNum+1;
\$(\".left .list-btn .btn-condition.active\").removeClass(\"active\");
\$(this).addClass(\"active\");
\$(\".right .item.active\").removeClass(\"active\");
\$(\".right .item:nth-child(\"+nthChild+\")\").addClass(\"active\");
}
});
\$(\".reset\").click(function(e){
\$(\".right .item input[type='checkbox']:checked\").prop('checked', false);
\$(\"#form1\").submit();
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 149
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 150
echo " <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 151
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 151, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 152
echo " ";
if ( !twig_test_iterable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 152), "value", [], "any", false, false, false, 152))) {
// line 153
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 153), "id", [], "any", false, false, false, 153), "html", null, true);
echo "\"
name=\"";
// line 154
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 154), "full_name", [], "any", false, false, false, 154), "html", null, true);
echo "\"
";
// line 155
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 155), "value", [], "any", false, false, false, 155))) {
echo "value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 155), "value", [], "any", false, false, false, 155), "html", null, true);
echo "\" ";
}
echo "/>
";
}
// line 157
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 158
echo " </form>
<div class=\"ec-featured-product-page\">
<div class=\"ec-banner\">
<div class=\"ec-banner__inner\">
<div class=\"inner\">
<h2>
電話完結型サービス
</h2>
</div>
</div>
<div class=\"ec-breadcrumb\">
<ul class=\"ec-breadcrumb__menu\">
<li class=\"ec-breadcrumb__item\"><a href=\"";
// line 171
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">TOP</a></li>
<li class=\"ec-breadcrumb__item\"><span>></span></li>
<li class=\"ec-breadcrumb__item\"><p>電話完結型サービス</p></li>
</ul>
</div>
</div>
<div class=\"ec-product-main\">
<div class=\"ec-product__inner\">
<div class=\"inner\">
";
// line 189
echo " <div class=\"ec-reCommended\">
<div class=\"message\">
<div class=\"group\">
<img src=\"";
// line 192
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/kuma-student.png"), "html", null, true);
echo "\" alt=\"\">
</div>
<div class=\"mess\">
<p>ネット購入が苦手・心配な方でも安心!<br />
下記の商品はお電話での購入が可能です。お気軽にお問い合わせください!</p>
</div>
</div>
</div>
";
// line 201
echo " ";
$context["is_first"] = true;
// line 202
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["recommendCats"]) || array_key_exists("recommendCats", $context) ? $context["recommendCats"] : (function () { throw new RuntimeError('Variable "recommendCats" does not exist.', 202, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["recommendCatId"]) {
// line 203
echo "
";
// line 204
if (($context["recommendCatId"] == 30)) {
// line 205
echo " ";
if (((isset($context["is_first"]) || array_key_exists("is_first", $context) ? $context["is_first"] : (function () { throw new RuntimeError('Variable "is_first" does not exist.', 205, $this->source); })()) == true)) {
// line 206
echo " ";
$context["is_first"] = false;
// line 207
echo " <div class=\"ec-product__group first\">
";
} else {
// line 209
echo " <div class=\"ec-product__group\">
";
}
// line 211
echo " <div class=\"ec-product__poster\">
<img src=\"";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/recomment-"), "html", null, true);
echo twig_escape_filter($this->env, $context["recommendCatId"], "html", null, true);
echo ".png\">
</div>
";
// line 215
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 215, $this->source); })()), "totalItemCount", [], "any", false, false, false, 215) > 0)) {
// line 216
echo " <ul class=\"list-product-v2\">
";
// line 217
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 217, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 218
echo " ";
$context["in_cat"] = false;
// line 219
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 219));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 220
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 220), "id", [], "any", false, false, false, 220) == $context["recommendCatId"])) {
// line 221
echo " ";
$context["in_cat"] = true;
// line 222
echo " ";
}
// line 223
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 224
echo "
";
// line 225
if ((((isset($context["in_cat"]) || array_key_exists("in_cat", $context) ? $context["in_cat"] : (function () { throw new RuntimeError('Variable "in_cat" does not exist.', 225, $this->source); })()) == true) && (twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 225) <= 106))) {
// line 226
echo " ";
$context["num_1"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 226) / 1000);
// line 227
echo " ";
$context["num_2"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 227) % 1000);
// line 228
echo " ";
$context["num_2_formatted"] = (isset($context["num_2"]) || array_key_exists("num_2", $context) ? $context["num_2"] : (function () { throw new RuntimeError('Variable "num_2" does not exist.', 228, $this->source); })());
// line 229
echo "
";
// line 230
if (((isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 230, $this->source); })()) < 100)) {
// line 231
echo " ";
$context["num_2_formatted"] = ("0" . (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 231, $this->source); })()));
// line 232
echo " ";
}
// line 233
echo " <li class=\"product-v2\">
<a href=\"";
// line 234
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 234)]), "html", null, true);
echo "\">
<span class=\"circle\">
<img src=\"";
// line 236
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ic-arrow-blue.png"), "html", null, true);
echo "\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
";
// line 240
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 240))) {
// line 241
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 241));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 242
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 242), "Parent", [], "any", false, false, false, 242))) {
// line 243
echo " ";
$context["parentCat"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 243), "Parent", [], "any", false, false, false, 243);
// line 244
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["parentCat"]) || array_key_exists("parentCat", $context) ? $context["parentCat"] : (function () { throw new RuntimeError('Variable "parentCat" does not exist.', 244, $this->source); })()), "id", [], "any", false, false, false, 244) == 19)) {
// line 245
echo " <span>主に";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 245), "name", [], "any", false, false, false, 245), "html", null, true);
echo "</span>
";
}
// line 247
echo " ";
}
// line 248
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 249
echo " ";
}
// line 250
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 250), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 250) != twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 250))) {
echo " ~ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 250), "html", null, true);
}
echo "</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"";
// line 255
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 255, $this->source); })()), 0, "floor"), "html", null, true);
echo ",\">";
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 255, $this->source); })()), 0, "floor"), "html", null, true);
echo ",</span><span class=\"num-2\" title=\"";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 255, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 255, $this->source); })()), "html", null, true);
echo "</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
";
}
// line 263
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 264
echo " </ul>
";
}
// line 266
echo " </div>
<div class=\"ec-product__group\">
<div class=\"ec-product__poster\">
<img src=\"";
// line 270
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/recomment-"), "html", null, true);
echo twig_escape_filter($this->env, $context["recommendCatId"], "html", null, true);
echo "-2.png\">
</div>
";
// line 273
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 273, $this->source); })()), "totalItemCount", [], "any", false, false, false, 273) > 0)) {
// line 274
echo " <ul class=\"list-product-v2\">
";
// line 275
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 275, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 276
echo " ";
$context["in_cat"] = false;
// line 277
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 277));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 278
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 278), "id", [], "any", false, false, false, 278) == $context["recommendCatId"])) {
// line 279
echo " ";
$context["in_cat"] = true;
// line 280
echo " ";
}
// line 281
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 282
echo "
";
// line 283
if ((((isset($context["in_cat"]) || array_key_exists("in_cat", $context) ? $context["in_cat"] : (function () { throw new RuntimeError('Variable "in_cat" does not exist.', 283, $this->source); })()) == true) && (twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 283) > 106))) {
// line 284
echo " ";
$context["num_1"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 284) / 1000);
// line 285
echo " ";
$context["num_2"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 285) % 1000);
// line 286
echo " ";
$context["num_2_formatted"] = (isset($context["num_2"]) || array_key_exists("num_2", $context) ? $context["num_2"] : (function () { throw new RuntimeError('Variable "num_2" does not exist.', 286, $this->source); })());
// line 287
echo "
";
// line 288
if (((isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 288, $this->source); })()) < 100)) {
// line 289
echo " ";
$context["num_2_formatted"] = ("0" . (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 289, $this->source); })()));
// line 290
echo " ";
}
// line 291
echo " <li class=\"product-v2\">
<a href=\"";
// line 292
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 292)]), "html", null, true);
echo "\">
<span class=\"circle\">
<img src=\"";
// line 294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ic-arrow-blue.png"), "html", null, true);
echo "\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
";
// line 298
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 298))) {
// line 299
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 299));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 300
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 300), "Parent", [], "any", false, false, false, 300))) {
// line 301
echo " ";
$context["parentCat"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 301), "Parent", [], "any", false, false, false, 301);
// line 302
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["parentCat"]) || array_key_exists("parentCat", $context) ? $context["parentCat"] : (function () { throw new RuntimeError('Variable "parentCat" does not exist.', 302, $this->source); })()), "id", [], "any", false, false, false, 302) == 19)) {
// line 303
echo " <span>主に";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 303), "name", [], "any", false, false, false, 303), "html", null, true);
echo "</span>
";
}
// line 305
echo " ";
}
// line 306
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 307
echo " ";
}
// line 308
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 308), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 308) != twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 308))) {
echo " ~ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 308), "html", null, true);
}
echo "</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"";
// line 313
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 313, $this->source); })()), 0, "floor"), "html", null, true);
echo ",\">";
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 313, $this->source); })()), 0, "floor"), "html", null, true);
echo ",</span><span class=\"num-2\" title=\"";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 313, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 313, $this->source); })()), "html", null, true);
echo "</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
";
}
// line 321
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 322
echo " </ul>
";
}
// line 324
echo " </div>
";
} else {
// line 327
echo " ";
if (((isset($context["is_first"]) || array_key_exists("is_first", $context) ? $context["is_first"] : (function () { throw new RuntimeError('Variable "is_first" does not exist.', 327, $this->source); })()) == true)) {
// line 328
echo " ";
$context["is_first"] = false;
// line 329
echo " <div class=\"ec-product__group first\">
";
} else {
// line 331
echo " <div class=\"ec-product__group\">
";
}
// line 333
echo "
<div class=\"ec-product__poster\">
<img src=\"";
// line 335
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/product/recomment-"), "html", null, true);
echo twig_escape_filter($this->env, $context["recommendCatId"], "html", null, true);
echo ".png\">
</div>
";
// line 338
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 338, $this->source); })()), "totalItemCount", [], "any", false, false, false, 338) > 0)) {
// line 339
echo " <ul class=\"list-product-v2\">
";
// line 340
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 340, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 341
echo " ";
$context["in_cat"] = false;
// line 342
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 342));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 343
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 343), "id", [], "any", false, false, false, 343) == $context["recommendCatId"])) {
// line 344
echo " ";
$context["in_cat"] = true;
// line 345
echo " ";
}
// line 346
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 347
echo "
";
// line 348
if (((isset($context["in_cat"]) || array_key_exists("in_cat", $context) ? $context["in_cat"] : (function () { throw new RuntimeError('Variable "in_cat" does not exist.', 348, $this->source); })()) == true)) {
// line 349
echo " ";
$context["num_1"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 349) / 1000);
// line 350
echo " ";
$context["num_2"] = (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 350) % 1000);
// line 351
echo " ";
$context["num_2_formatted"] = (isset($context["num_2"]) || array_key_exists("num_2", $context) ? $context["num_2"] : (function () { throw new RuntimeError('Variable "num_2" does not exist.', 351, $this->source); })());
// line 352
echo "
";
// line 353
if (((isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 353, $this->source); })()) < 100)) {
// line 354
echo " ";
$context["num_2_formatted"] = ("0" . (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 354, $this->source); })()));
// line 355
echo " ";
}
// line 356
echo " <li class=\"product-v2\">
<a href=\"";
// line 357
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 357)]), "html", null, true);
echo "\">
<span class=\"circle\">
<img src=\"";
// line 359
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ic-arrow-blue.png"), "html", null, true);
echo "\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
";
// line 363
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 363))) {
// line 364
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 364));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 365
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 365), "Parent", [], "any", false, false, false, 365))) {
// line 366
echo " ";
$context["parentCat"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 366), "Parent", [], "any", false, false, false, 366);
// line 367
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["parentCat"]) || array_key_exists("parentCat", $context) ? $context["parentCat"] : (function () { throw new RuntimeError('Variable "parentCat" does not exist.', 367, $this->source); })()), "id", [], "any", false, false, false, 367) == 19)) {
// line 368
echo " <span>主に";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 368), "name", [], "any", false, false, false, 368), "html", null, true);
echo "</span>
";
}
// line 370
echo " ";
}
// line 371
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 372
echo " ";
}
// line 373
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 373), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "code_min", [], "any", false, false, false, 373) != twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 373))) {
echo " ~ ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "code_max", [], "any", false, false, false, 373), "html", null, true);
}
echo "</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"";
// line 378
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 378, $this->source); })()), 0, "floor"), "html", null, true);
echo ",\">";
echo twig_escape_filter($this->env, twig_round((isset($context["num_1"]) || array_key_exists("num_1", $context) ? $context["num_1"] : (function () { throw new RuntimeError('Variable "num_1" does not exist.', 378, $this->source); })()), 0, "floor"), "html", null, true);
echo ",</span><span class=\"num-2\" title=\"";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 378, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["num_2_formatted"]) || array_key_exists("num_2_formatted", $context) ? $context["num_2_formatted"] : (function () { throw new RuntimeError('Variable "num_2_formatted" does not exist.', 378, $this->source); })()), "html", null, true);
echo "</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
";
}
// line 386
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 387
echo " </ul>
";
}
// line 389
echo "
</div>
";
}
// line 392
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recommendCatId'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 395
echo "
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@user_data/tel_service_product.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 891 => 395, 883 => 392, 878 => 389, 874 => 387, 868 => 386, 851 => 378, 838 => 373, 835 => 372, 829 => 371, 826 => 370, 820 => 368, 817 => 367, 814 => 366, 811 => 365, 806 => 364, 804 => 363, 797 => 359, 792 => 357, 789 => 356, 786 => 355, 783 => 354, 781 => 353, 778 => 352, 775 => 351, 772 => 350, 769 => 349, 767 => 348, 764 => 347, 758 => 346, 755 => 345, 752 => 344, 749 => 343, 744 => 342, 741 => 341, 737 => 340, 734 => 339, 732 => 338, 725 => 335, 721 => 333, 717 => 331, 713 => 329, 710 => 328, 707 => 327, 702 => 324, 698 => 322, 692 => 321, 675 => 313, 662 => 308, 659 => 307, 653 => 306, 650 => 305, 644 => 303, 641 => 302, 638 => 301, 635 => 300, 630 => 299, 628 => 298, 621 => 294, 616 => 292, 613 => 291, 610 => 290, 607 => 289, 605 => 288, 602 => 287, 599 => 286, 596 => 285, 593 => 284, 591 => 283, 588 => 282, 582 => 281, 579 => 280, 576 => 279, 573 => 278, 568 => 277, 565 => 276, 561 => 275, 558 => 274, 556 => 273, 549 => 270, 543 => 266, 539 => 264, 533 => 263, 516 => 255, 503 => 250, 500 => 249, 494 => 248, 491 => 247, 485 => 245, 482 => 244, 479 => 243, 476 => 242, 471 => 241, 469 => 240, 462 => 236, 457 => 234, 454 => 233, 451 => 232, 448 => 231, 446 => 230, 443 => 229, 440 => 228, 437 => 227, 434 => 226, 432 => 225, 429 => 224, 423 => 223, 420 => 222, 417 => 221, 414 => 220, 409 => 219, 406 => 218, 402 => 217, 399 => 216, 397 => 215, 390 => 212, 387 => 211, 383 => 209, 379 => 207, 376 => 206, 373 => 205, 371 => 204, 368 => 203, 363 => 202, 360 => 201, 349 => 192, 344 => 189, 332 => 171, 317 => 158, 311 => 157, 302 => 155, 298 => 154, 293 => 153, 290 => 152, 286 => 151, 283 => 150, 273 => 149, 217 => 102, 207 => 95, 176 => 67, 161 => 55, 126 => 22, 112 => 21, 104 => 20, 87 => 19, 72 => 6, 62 => 5, 51 => 1, 49 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
(function(d) {
var config = {
kitId: 'pki8bzh',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\\bwf-loading\\b/g,\"\")+\" wf-inactive\";},config.scriptTimeout),tk=d.createElement(\"script\"),f=false,s=d.getElementsByTagName(\"script\")[0],a;h.className+=\" wf-loading\";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!=\"complete\"&&a!=\"loaded\")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
</script>
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 検索条件を追加
\$('.btn-condition').click(function() {
\$('#active_idx').val(\$(this).index());
});
\$('.form-check-input').change(function() {
\$(\"#form1\").submit();
});
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 規格1フォームの必須チェック
var \$form_select = \$form.parent().find('.form-select');
if (\$form_select.val() == '__unselected' || \$form_select.val() == '') {
\$form_select[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$form_select[0].setCustomValidity('');
}
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.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);
});
});
\$('.favorite').click(function(event) {
if (\$(this).attr('disabled') != 'disabled') {
\$(this).closest('li.product').find('.list-add-favorite').submit();
}
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
<script>
\$(document).ready(function(){
\$(\".left .list-btn .btn-condition\").eq(\$('#active_idx').val()).addClass('active');
\$(\".right .item\").eq(\$('#active_idx').val()).addClass('active');
\$(\".left .list-btn .btn-condition\").click(function(e){
if (!\$(this).hasClass(\"active\")) {
var tabNum = \$(this).index();
var nthChild = tabNum+1;
\$(\".left .list-btn .btn-condition.active\").removeClass(\"active\");
\$(this).addClass(\"active\");
\$(\".right .item.active\").removeClass(\"active\");
\$(\".right .item:nth-child(\"+nthChild+\")\").addClass(\"active\");
}
});
\$(\".reset\").click(function(e){
\$(\".right .item input[type='checkbox']:checked\").prop('checked', false);
\$(\"#form1\").submit();
});
});
</script>
{% endblock %}
{% block main %}
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
{% if item.vars.value is not iterable %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endif %}
{% endfor %}
</form>
<div class=\"ec-featured-product-page\">
<div class=\"ec-banner\">
<div class=\"ec-banner__inner\">
<div class=\"inner\">
<h2>
電話完結型サービス
</h2>
</div>
</div>
<div class=\"ec-breadcrumb\">
<ul class=\"ec-breadcrumb__menu\">
<li class=\"ec-breadcrumb__item\"><a href=\"{{ url('homepage') }}\">TOP</a></li>
<li class=\"ec-breadcrumb__item\"><span>></span></li>
<li class=\"ec-breadcrumb__item\"><p>電話完結型サービス</p></li>
</ul>
</div>
</div>
<div class=\"ec-product-main\">
<div class=\"ec-product__inner\">
<div class=\"inner\">
{# <div class=\"group-text\">
<p>
標準設置工事費は、配管テープ巻き(化粧カバーなし)、配管の長さ4メートル以内となります。<br />
詳細な工事費用をお見積り希望の方は<a href=\"{{ url('contact') }}?type=1\">こちら</a>からお問合せください。
</p>
<p class=\"v2\">
グランドオープン記念!今ならエアコン本体の購入がお得です!エアコン本体のご予算、おすすめ順、機能などから、お好みのエアコンをお選びください。そのほか、エアコンの工事や取り付けや交換もエアココにお任せくださいませ。
</p>
</div> #}
<div class=\"ec-reCommended\">
<div class=\"message\">
<div class=\"group\">
<img src=\"{{ asset('assets/img/common/kuma-student.png')}}\" alt=\"\">
</div>
<div class=\"mess\">
<p>ネット購入が苦手・心配な方でも安心!<br />
下記の商品はお電話での購入が可能です。お気軽にお問い合わせください!</p>
</div>
</div>
</div>
{# TODO: category product #}
{% set is_first = true %}
{% for recommendCatId in recommendCats %}
{% if recommendCatId == 30 %}
{% if is_first == true %}
{% set is_first = false %}
<div class=\"ec-product__group first\">
{% else %}
<div class=\"ec-product__group\">
{% endif %}
<div class=\"ec-product__poster\">
<img src=\"{{ asset('assets/img/product/recomment-') }}{{ recommendCatId }}.png\">
</div>
{% if pagination.totalItemCount > 0 %}
<ul class=\"list-product-v2\">
{% for Product in pagination %}
{% set in_cat = false %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.id == recommendCatId %}
{% set in_cat = true %}
{% endif %}
{% endfor %}
{% if in_cat == true and Product.id <= 106 %}
{% set num_1 = (Product.getPrice02IncTaxMin / 1000) %}
{% set num_2 = Product.getPrice02IncTaxMin % 1000 %}
{% set num_2_formatted = num_2 %}
{% if num_2_formatted < 100 %}
{% set num_2_formatted = \"0\" ~ num_2_formatted %}
{% endif %}
<li class=\"product-v2\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<span class=\"circle\">
<img src=\"{{ asset('assets/img/common/ic-arrow-blue.png') }}\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.Parent is not empty %}
{% set parentCat = ProductCategory.Category.Parent %}
{% if parentCat.id == 19 %}
<span>主に{{ ProductCategory.Category.name }}</span>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<p>{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"{{ num_1|round(0, 'floor') }},\">{{ num_1|round(0, 'floor') }},</span><span class=\"num-2\" title=\"{{ num_2_formatted }}\">{{ num_2_formatted }}</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
<div class=\"ec-product__group\">
<div class=\"ec-product__poster\">
<img src=\"{{ asset('assets/img/product/recomment-') }}{{ recommendCatId }}-2.png\">
</div>
{% if pagination.totalItemCount > 0 %}
<ul class=\"list-product-v2\">
{% for Product in pagination %}
{% set in_cat = false %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.id == recommendCatId %}
{% set in_cat = true %}
{% endif %}
{% endfor %}
{% if in_cat == true and Product.id > 106 %}
{% set num_1 = Product.getPrice02IncTaxMin / 1000 %}
{% set num_2 = Product.getPrice02IncTaxMin % 1000 %}
{% set num_2_formatted = num_2 %}
{% if num_2_formatted < 100 %}
{% set num_2_formatted = \"0\" ~ num_2_formatted %}
{% endif %}
<li class=\"product-v2\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<span class=\"circle\">
<img src=\"{{ asset('assets/img/common/ic-arrow-blue.png') }}\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.Parent is not empty %}
{% set parentCat = ProductCategory.Category.Parent %}
{% if parentCat.id == 19 %}
<span>主に{{ ProductCategory.Category.name }}</span>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<p>{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"{{ num_1|round(0, 'floor') }},\">{{ num_1|round(0, 'floor') }},</span><span class=\"num-2\" title=\"{{ num_2_formatted }}\">{{ num_2_formatted }}</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
{% else %}
{% if is_first == true %}
{% set is_first = false %}
<div class=\"ec-product__group first\">
{% else %}
<div class=\"ec-product__group\">
{% endif %}
<div class=\"ec-product__poster\">
<img src=\"{{ asset('assets/img/product/recomment-') }}{{ recommendCatId }}.png\">
</div>
{% if pagination.totalItemCount > 0 %}
<ul class=\"list-product-v2\">
{% for Product in pagination %}
{% set in_cat = false %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.id == recommendCatId %}
{% set in_cat = true %}
{% endif %}
{% endfor %}
{% if in_cat == true %}
{% set num_1 = Product.getPrice02IncTaxMin / 1000 %}
{% set num_2 = Product.getPrice02IncTaxMin % 1000 %}
{% set num_2_formatted = num_2 %}
{% if num_2_formatted < 100 %}
{% set num_2_formatted = \"0\" ~ num_2_formatted %}
{% endif %}
<li class=\"product-v2\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<span class=\"circle\">
<img src=\"{{ asset('assets/img/common/ic-arrow-blue.png') }}\" alt=\"\">
</span>
<div class=\"group\">
<div class=\"code\">
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.Parent is not empty %}
{% set parentCat = ProductCategory.Category.Parent %}
{% if parentCat.id == 19 %}
<span>主に{{ ProductCategory.Category.name }}</span>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<p>{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</p>
</div>
<span class=\"text\">標準工事費込み</span>
<div class=\"price\">
<p class=\"price__val\">
<span class=\"yen\" title=\"¥\">¥</span><span class=\"num-1\" title=\"{{ num_1|round(0, 'floor') }},\">{{ num_1|round(0, 'floor') }},</span><span class=\"num-2\" title=\"{{ num_2_formatted }}\">{{ num_2_formatted }}</span>
</p>
<span class=\"price__tax\">(税込)</span>
</div>
</div>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}
", "@user_data/tel_service_product.twig", "/home/gogo002/gogo002.xbiz.jp/public_html/rintec/app/template/user_data/tel_service_product.twig");
}
}