質問 > フロント機能 > おすすめ商品管理プラグインでの商品のカテゴリ表示 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
kagami |
投稿日時: 2021/7/6 12:37
対応状況: −−−
|
半人前 登録日: 2021/5/25 居住地: 投稿: 19 |
Re: おすすめ商品管理プラグインでの商品のカテゴリ表示 {% set recommend_products = repository('Plugin\\Recommend4\\Entity\\RecommendProduct').getRecommendProduct %} {% for RecommendProduct in recommend_products %} {% set ProductCategories = repository('Eccube\\Entity\\ProductCategory').findBy({ product_id: RecommendProduct.Product.id }) %} {% set hasCategory = false %} {% for ProductCategory in ProductCategories %} {% if ProductCategory.category_id == ○○ %} {% set hasCategory = true %} {% endif %} {% endfor %} ○○の部分に取得したいIDを記入してください |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
おすすめ商品管理プラグインでの商品のカテゴリ表示 | movedoor | 2021/7/5 15:44 |
» Re: おすすめ商品管理プラグインでの商品のカテゴリ表示 | kagami | 2021/7/6 12:37 |
Re: おすすめ商品管理プラグインでの商品のカテゴリ表示 | movedoor | 2021/7/6 12:54 |