質問 > 管理機能 > タグIDで条件分岐 |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
nanase |
投稿日時: 2021/4/19 23:20
対応状況: −−−
|
新米 登録日: 2021/4/18 居住地: 投稿: 3 |
Re: タグIDで条件分岐 tsuji様
ご回答ありがとうございます。 仰る通り「限定品ではありません」が表示されています。 (キャッシュは管理画面からクリアしており、sshでもコマンドでクリアしてあります。) デバッグモードで開いてみましたが申し訳ありませんが見方が分からないです。 hasTagというプロパティのメソッドが存在しないと書いてあるのは分かるのですがどこを直せば良いのかが分かりません。 内容を記載するのでご助言頂けると大変助かります。 よろしくお願いいたします。 ▼RuntimeError(line 389) 389行目 {% if Product.hasTag(3) %} // line 389 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.', 389, $this->source); })()), "hasTag", [0 => 3], "method", false, false, false, 389)) { Twig\Error\RuntimeError: Neither the property "hasTag" nor one of the methods "hasTag()", "gethasTag()"/"ishasTag()"/"hashasTag()" or "__call()" exist and have public access in class "Eccube\Entity\Product". ▼Logsのページ INFO php User Deprecated: The "base_template_class" option on Twig\Environment is deprecated since Twig 2.7.0. INFO php User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0. INFO php User Deprecated: The type "datetime" was implicitly marked as commented due to the configuration. This is deprecated and will be removed in DoctrineBundle 2.0. Either set the "commented" attribute in the configuration to "false" or mark the type as commented in "Eccube\Doctrine\DBAL\Types\UTCDateTimeType::requiresSQLCommentHint()." INFO php User Deprecated: The type "datetimetz" was implicitly marked as commented due to the configuration. This is deprecated and will be removed in DoctrineBundle 2.0. Either set the "commented" attribute in the configuration to "false" or mark the type as commented in "Eccube\Doctrine\DBAL\Types\UTCDateTimeTzType::requiresSQLCommentHint()." |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
タグIDで条件分岐 | nanase | 2021/4/18 7:29 |
Re: タグIDで条件分岐 | tsuji | 2021/4/19 9:35 |
» Re: タグIDで条件分岐 | nanase | 2021/4/19 23:20 |
Re: タグIDで条件分岐 | tsuji | 2021/4/21 9:29 |
Re: タグIDで条件分岐 | nanase | 2021/4/21 10:36 |