ECCUBE3で商品リストを日付順(最新)で表示したいです。
これだとなぜか、1ページ目に過去の商品が表示されます。
解決案をお願いします。
既存の商品表示部分
twig
1{% for Product in pagination | sort %} 2 <li class="archive-list list-unstyled"> 3 <a href="{{ url('product_detail', {'id': Product.id}) }}"> 4 <span class="archive-span">{{ Product.name }}</span> 5 <img class="archive-img" src="{{ app.config.image_save_urlpath }}/{{ Product.main_list_image|no_image_product }}"> 6 </a> 7 </li> 8{% endfor %} 9 10{% if pagination.totalItemCount > 0 %} 11 {% include "pagination.twig" with { 'pages' : pagination.paginationData } %} 12{% endif %} 13{% else %} 14 <p class="errormsg text-danger">ご指定のカテゴリは存在しません。</p> 15{% endif %} 16
これって公式リポジトリ(https://github.com/EC-CUBE/ec-cube)のどのソースファイルになりますか?
( https://www.shiro8.net/blog/templates/813.html ) このようなテンプレートのファイルなので公式リポジトリにはないと思います。商品アーカイブを表示する際に必要となる list.twigというファイルになります。
回答1件
あなたの回答
tips
プレビュー