<?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;
/* Mail/order2.twig */
class __TwigTemplate_f44c9b387506827a7904f44911308cb0 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mail/order2.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Mail/order2.twig"));
// line 1
echo "出荷お知らせメールです。
";
// line 4
echo "--------------------
";
// line 5
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 5, $this->source); })()), "name01", [], "any", false, false, true, 5), 5, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 5, $this->source); })()), "name02", [], "any", false, false, true, 5), 5, $this->source), "safe_textmail", null, true);
echo " 様
";
// line 7
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 7, $this->source); })()), "shop_name", [], "any", false, false, true, 7), 7, $this->source), "safe_textmail", null, true);
echo "でございます。
お客様が注文された以下の商品を発送いたしました。商品の到着まで、今しばらくお待ちください。
************************************************
ご請求金額
************************************************
ご注文番号:";
// line 14
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, true, 14), 14, $this->source), "safe_textmail", null, true);
echo "
お支払い合計:";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 15, $this->source); })()), "payment_total", [], "any", false, false, true, 15), 15, $this->source)), "safe_textmail", null, true);
echo "
お支払い方法:";
// line 16
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 16, $this->source); })()), "payment_method", [], "any", false, false, true, 16), 16, $this->source), "safe_textmail", null, true);
echo "
************************************************
ご注文商品明細
************************************************
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 22, $this->source); })()), "OrderItems", [], "any", false, false, true, 22));
foreach ($context['_seq'] as $context["_key"] => $context["OrderItem"]) {
// line 23
echo "商品コード: ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "product_code", [], "any", false, false, true, 23), 23, $this->source), "safe_textmail", null, true);
echo "
商品名: ";
// line 24
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "product_name", [], "any", false, false, true, 24), 24, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "classcategory_name1", [], "any", false, false, true, 24), 24, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "classcategory_name2", [], "any", false, false, true, 24), 24, $this->source), "safe_textmail", null, true);
echo "
単価: ";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "price_inctax", [], "any", false, false, true, 25), 25, $this->source)), "safe_textmail", null, true);
echo "
数量: ";
// line 26
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "quantity", [], "any", false, false, true, 26), 26, $this->source)), "safe_textmail", null, true);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['OrderItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo "
-------------------------------------------------
小 計 ";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 31, $this->source); })()), "subtotal", [], "any", false, false, true, 31), 31, $this->source)), "safe_textmail", null, true);
if ((twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 31, $this->source); })()), "tax", [], "any", false, false, true, 31) > 0)) {
echo "(うち消費税 ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 31, $this->source); })()), "tax", [], "any", false, false, true, 31), 31, $this->source)), "safe_textmail", null, true);
echo ")";
}
// line 32
echo " 送 料 ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 32, $this->source); })()), "delivery_fee_total", [], "any", false, false, true, 32), 32, $this->source)), "safe_textmail", null, true);
echo "
============================================
合 計 ";
// line 34
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 34, $this->source); })()), "payment_total", [], "any", false, false, true, 34), 34, $this->source)), "safe_textmail", null, true);
echo "
************************************************
ご注文者情報
************************************************
お名前 :";
// line 39
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 39, $this->source); })()), "name01", [], "any", false, false, true, 39), 39, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 39, $this->source); })()), "name02", [], "any", false, false, true, 39), 39, $this->source), "safe_textmail", null, true);
echo " 様
フリガナ:";
// line 40
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 40, $this->source); })()), "kana01", [], "any", false, false, true, 40), 40, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 40, $this->source); })()), "kana02", [], "any", false, false, true, 40), 40, $this->source), "safe_textmail", null, true);
echo " 様
電話番号:";
// line 41
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 41, $this->source); })()), "phone_number", [], "any", false, false, true, 41), 41, $this->source), "safe_textmail", null, true);
echo "
メールアドレス:";
// line 42
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 42, $this->source); })()), "email", [], "any", false, false, true, 42), 42, $this->source), "safe_textmail", null, true);
echo "
所属:";
// line 43
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 43, $this->source); })()), "job", [], "any", false, false, true, 43), 43, $this->source), "safe_textmail", null, true);
echo "
************************************************
配送情報
************************************************
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 49, $this->source); })()), "Shippings", [], "any", false, false, true, 49));
$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["Shipping"]) {
// line 50
echo "◎お届け先";
if (twig_get_attribute($this->env, $this->source, (isset($context["Order"]) || array_key_exists("Order", $context) ? $context["Order"] : (function () { throw new RuntimeError('Variable "Order" does not exist.', 50, $this->source); })()), "multiple", [], "any", false, false, true, 50)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 50), 50, $this->source), "safe_textmail", null, true);
}
// line 51
echo "【";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Shipping"], "shipping_delivery_name", [], "any", false, false, true, 51), 51, $this->source), "safe_textmail", null, true);
echo "】
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Shipping"], "productOrderItems", [], "any", false, false, true, 53));
foreach ($context['_seq'] as $context["_key"] => $context["OrderItem"]) {
// line 54
echo "商品名: ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "product_name", [], "any", false, false, true, 54), 54, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "classcategory_name1", [], "any", false, false, true, 54), 54, $this->source), "safe_textmail", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "classcategory_name2", [], "any", false, false, true, 54), 54, $this->source), "safe_textmail", null, true);
echo "
数量:";
// line 55
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["OrderItem"], "quantity", [], "any", false, false, true, 55), 55, $this->source)), "safe_textmail", null, true);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['OrderItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
++$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['Shipping'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo "
<商品のお届けについて>
お買い物ガイドの
【商品のお届けについて】";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage"), "safe_textmail", null, true);
echo "help/guide#guide_05
をご参照ください。
";
// line 65
echo "
================================================
本メールは自動配信メールです。
このメッセージへの返信としてご質問をお送りいただいても
内容の確認およびご返答ができませんので、ご了承ください。
ご質問やご不明な点がございましたら、下記までお願いいたします。
-------------------------------------------------
「";
// line 73
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 73, $this->source); })()), "shop_name", [], "any", false, false, true, 73), 73, $this->source), "html", null, true);
echo "」
■URL:";
// line 74
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "
■メールアドレス:";
// line 75
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 75, $this->source); })()), "email02", [], "any", false, false, true, 75), 75, $this->source), "html", null, true);
echo "
■電話番号:";
// line 76
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 76, $this->source); })()), "phone_number", [], "any", false, false, true, 76), 76, $this->source), "html", null, true);
echo "(受付:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 76, $this->source); })()), "business_hour", [], "any", false, false, true, 76), 76, $this->source), "html", null, true);
echo ")
-------------------------------------------------
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Mail/order2.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 264 => 76, 260 => 75, 256 => 74, 252 => 73, 242 => 65, 237 => 62, 232 => 59, 211 => 55, 202 => 54, 198 => 53, 192 => 51, 187 => 50, 170 => 49, 161 => 43, 157 => 42, 153 => 41, 147 => 40, 141 => 39, 133 => 34, 127 => 32, 120 => 31, 116 => 29, 107 => 26, 103 => 25, 95 => 24, 90 => 23, 86 => 22, 77 => 16, 73 => 15, 69 => 14, 59 => 7, 52 => 5, 49 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("出荷お知らせメールです。
{% autoescape 'safe_textmail' %}
--------------------
{{ Order.name01 }} {{ Order.name02 }} 様
{{ BaseInfo.shop_name }}でございます。
お客様が注文された以下の商品を発送いたしました。商品の到着まで、今しばらくお待ちください。
************************************************
ご請求金額
************************************************
ご注文番号:{{ Order.id }}
お支払い合計:{{ Order.payment_total|price}}
お支払い方法:{{ Order.payment_method }}
************************************************
ご注文商品明細
************************************************
{% for OrderItem in Order.OrderItems %}
商品コード: {{ OrderItem.product_code }}
商品名: {{ OrderItem.product_name }} {{ OrderItem.classcategory_name1 }} {{ OrderItem.classcategory_name2 }}
単価: {{ OrderItem.price_inctax|price }}
数量: {{ OrderItem.quantity|number_format }}
{% endfor %}
-------------------------------------------------
小 計 {{ Order.subtotal|price }}{% if Order.tax > 0 %}(うち消費税 {{ Order.tax|price }}){% endif %}
送 料 {{ Order.delivery_fee_total|price}}
============================================
合 計 {{ Order.payment_total|price }}
************************************************
ご注文者情報
************************************************
お名前 :{{ Order.name01 }} {{ Order.name02 }} 様
フリガナ:{{ Order.kana01 }} {{ Order.kana02 }} 様
電話番号:{{ Order.phone_number }}
メールアドレス:{{ Order.email }}
所属:{{ Order.job }}
************************************************
配送情報
************************************************
{% for Shipping in Order.Shippings %}
◎お届け先{% if Order.multiple %}{{ loop.index }}{% endif %}
【{{ Shipping.shipping_delivery_name }}】
{% for OrderItem in Shipping.productOrderItems %}
商品名: {{ OrderItem.product_name }} {{ OrderItem.classcategory_name1 }} {{ OrderItem.classcategory_name2 }}
数量:{{ OrderItem.quantity|number_format }}
{% endfor %}
{% endfor %}
<商品のお届けについて>
お買い物ガイドの
【商品のお届けについて】{{ url('homepage') }}help/guide#guide_05
をご参照ください。
{% endautoescape %}
================================================
本メールは自動配信メールです。
このメッセージへの返信としてご質問をお送りいただいても
内容の確認およびご返答ができませんので、ご了承ください。
ご質問やご不明な点がございましたら、下記までお願いいたします。
-------------------------------------------------
「{{ BaseInfo.shop_name }}」
■URL:{{ url('homepage') }}
■メールアドレス:{{ BaseInfo.email02 }}
■電話番号:{{ BaseInfo.phone_number }}(受付:{{ BaseInfo.business_hour }})
-------------------------------------------------
", "Mail/order2.twig", "/home/nmmito01/mu-ecshop.com/public_html/app/template/unishop/Mail/order2.twig");
}
public function checkSecurity()
{
static $tags = array("autoescape" => 3, "for" => 22, "if" => 31);
static $filters = array("escape" => 5, "price" => 15, "number_format" => 26);
static $functions = array("url" => 62);
try {
$this->sandbox->checkSecurity(
['autoescape', 'for', 'if'],
['escape', 'price', 'number_format'],
['url']
);
} 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;
}
}
}