質問 > その他 > 親カテゴリーの取得 |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
ranran0923 |
投稿日時: 2017/4/24 15:03
対応状況: −−−
|
新米 登録日: 2014/1/30 居住地: 投稿: 8 |
Re: 親カテゴリーの取得 早速の対応有難うございます。
お教えいただいたコードではエラーが出ましたので、下記のように変更したところ無事に取得できました。(&&をandに変更) {% set counter = 0 %} {% for ProductCategory in Product.ProductCategories %} {% for Category in ProductCategory.Category.path %} {% if counter == 0 and loop.first %} {{ Category.name }} {% set counter = 1 %} {% endif %} {% endfor %} {% endfor %} 有難うございました。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
親カテゴリーの取得 | ranran0923 | 2017/4/22 20:06 |
Re: 親カテゴリーの取得 | hmorita_j | 2017/4/22 20:24 |
Re: 親カテゴリーの取得 | umebius | 2017/4/23 10:27 |
Re: 親カテゴリーの取得 | hmorita_j | 2017/4/23 10:49 |
Re: 親カテゴリーの取得 | ranran0923 | 2017/4/23 16:56 |
Re: 親カテゴリーの取得 | h_tanaka | 2017/4/24 11:28 |
» Re: 親カテゴリーの取得 | ranran0923 | 2017/4/24 15:03 |
Re: 親カテゴリーの取得 | h_tanaka | 2017/4/24 15:10 |
Re: 親カテゴリーの取得 | ranran0923 | 2017/4/24 17:06 |
Re: 親カテゴリーの取得 | h_tanaka | 2017/4/24 17:09 |
Re: 親カテゴリーの取得 | ranran0923 | 2017/4/24 18:11 |