テーマ仕様書 更新履歴
2023年
2023/12/19更新

2023/12/19更新

+ 更新した行
- 削除した行

商品検索結果のソート順に「人気順」を追加

product > 商品一覧画面

ec_force/shop/products/index.html.liquid
ec_force/shop/products/index.html+smartphone.liquid

   {{ 'released_at desc' | ransack_sort_link: '発売日降順' }}
   {{ 'released_at asc' | ransack_sort_link: '発売日昇順' }}
   {{ 'product_reviews_average_score desc' | ransack_sort_link: 'レビュー評価順' }}
+  {{ 'product_sale_summaries_total_sale desc' | ransack_sort_link: '人気順' }}

product > キーワード検索結果商品一覧画面

ec_force/shop/searches/show.html.liquid
ec_force/shop/searches/show.html+smartphone.liquid

   {{ 'released_at desc' | ransack_sort_link: '発売日降順' }}
   {{ 'released_at asc' | ransack_sort_link: '発売日昇順' }}
   {{ 'product_reviews_average_score desc' | ransack_sort_link: 'レビュー評価順' }}
+  {{ 'product_sale_summaries_total_sale desc' | ransack_sort_link: '人気順' }}

product > 商品カテゴリー詳細画面

ec_force/shop/product_categories/show.html.liquid
ec_force/shop/product_categories/show.html+smartphone.liquid

   {{ 'released_at desc' | ransack_sort_link: '発売日降順' }}
   {{ 'released_at asc' | ransack_sort_link: '発売日昇順' }}
   {{ 'product_reviews_average_score desc' | ransack_sort_link: 'レビュー評価順' }}
+  {{ 'product_sale_summaries_total_sale desc' | ransack_sort_link: '人気順' }}

selection > セレクションページ

ec_force/shop/selections/show.html.liquid
ec_force/shop/selections/show.html+smartphone.liquid

   {{ 'released_at desc' | ransack_sort_link: '発売日降順' }}
   {{ 'released_at asc' | ransack_sort_link: '発売日昇順' }}
   {{ 'product_reviews_average_score desc' | ransack_sort_link: 'レビュー評価順' }}
+  {{ 'product_sale_summaries_total_sale desc' | ransack_sort_link: '人気順' }}

軽微な修正

shared_partial > sidebar

ec_force/shop/shared/_sidebar.html.liquid
ec_force/shop/shared/_sidebar.html+smartphone.liquid

       <!-- 商品名 -->
       <label>商品名</label>
-      <input placeholder="商品名" type="search" name="q[name_cont]" id="q_name_cont">
+      <input placeholder="商品名" type="search" name="q[name_cont]" id="q_name_cont" value="{{ params["q"]["name_cont"] }}">
       
       <!-- フリーワード検索 -->
       <label>フリーワード検索</label>
-      <input placeholder="商品情報" type="search" name="q[freeword]" id="q_freeword">
+      <input placeholder="商品情報" type="search" name="q[freeword]" id="q_freeword" value="{{ params["q"]["freeword"] }}">

shared_partial > head_google_tag_manager

ec_force/shop/shared/_head_google_tag_manager.html.liquid
ec_force/shop/shared/_head_google_tag_manager.html+smartphone.liquid

   <script>
     window.dataLayer = window.dataLayer || [];
-    dataLayer.push({ user_id: {{current_customer&.id}} });
+    dataLayer.push({ user_id: '{{current_customer&.id}}' });