テーマ仕様書 更新履歴
2026年
2026/03/18更新

2026/03/18更新

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

レビュー投稿フォームの改善

レビュー登録時にユーザーログインが必要な場合、ログイン画面へ遷移します。
この際、ユーザーログイン後はレビュー入力フォームに戻り、入力済みの投稿者名・評価・タイトル・コメントが保持されるようになりました。

product > 商品詳細画面

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

     <!-- レビュー投稿フォーム -->
     {% assign is_writable = product.id | check_review_writing_rule %}
     {% if is_writable %}
+      <div id="review-form">
 
         <!-- フラッシュメッセージ -->
         {{ 'notice' | flash: 'alert alert-success', 'text' }}
         {{ 'alert' | flash: 'alert alert-danger', 'text' }}
         {{ 'error' | flash: 'alert alert-danger', 'text' }}
 
         <form action="/shop/products/{{ product.id }}/review" method="post">
 
           <!-- 投稿者名 -->
           <label for="review_name">投稿者名</label>
-          <input class="validate[required]" type="text" name="review[name]" id="review_name">
+          <input class="validate[required]" type="text" name="review[name]" id="review_name" value="{{ review.name }}">
 
           <!-- メールアドレス -->
           <label for="review_email">メールアドレス</label>
           <input class="validate[required,custom[email]]" type="text" {% if customer_signed_in %}disabled{% endif %} name="email" value="{{ current_customer.email }}" id="review_email">
 
           <!-- 評価 -->
           <label for="review_star">おすすめレベル</label>
           <select class="validate[required,custom[number]]" name="review[star]" id="review_star">
-            <option value="5">★★★★★</option>
+            <option value="5" {% if review.star == 5 %}selected{% endif %}>★★★★★</option>
-            <option value="4">★★★★</option>
+            <option value="4" {% if review.star == 4 %}selected{% endif %}>★★★★</option>
-            <option value="3">★★★</option>
+            <option value="3" {% if review.star == 3 %}selected{% endif %}>★★★</option>
-            <option value="2">★★</option>
+            <option value="2" {% if review.star == 2 %}selected{% endif %}>★★</option>
-            <option value="1">★</option>
+            <option value="1" {% if review.star == 1 %}selected{% endif %}>★</option>
           </select>
 
           <!-- タイトル -->
           <label for="review_title">タイトル</label>
-          <input class="validate[required,maxSize[20]]" type="text" name="review[title]" id="review_title">
+          <input class="validate[required,maxSize[20]]" type="text" name="review[title]" id="review_title" value="{{ review.title }}">
 
           <!-- コメント -->
           <label for="review_comment">コメント</label>
-          <textarea class="validate[required,maxSize[400]]" name="review[comment]" id="review_comment"></textarea>
+          <textarea class="validate[required,maxSize[400]]" name="review[comment]" id="review_comment">{{ review.comment }}</textarea>
 
           <!-- 投稿ボタン -->
           <button name="button" type="submit">投稿する</button>
 
         </form>
+      </div>
     {% endif %}

変数追加

注文情報(注文確認画面やマイページ注文履歴など)において、従来の {{ order.subtotal10 }} は税率10%対象商品のみの小計として表示されていました。
税率10%対象商品とその他税率10%の手数料・送料などを含む小計として {{ order.target10 }} を追加しました。

cart > 注文情報確認画面

ec_force/shop/orders/confirm.html.liquid
ec_force/shop/orders/confirm.html+smartphone.liquid

-     <!-- 10%対象小計 -->
+     <!-- 10%対象小計 ※10%商品小計とその他税率10%の手数料・送料などを含む -->
+     {% if order.target10 != 0 %}
+       {{ order.target10 | number_to_currency: format: '%n %u' }}
+     {% endif %}
 
+     <!-- 10%対象商品小計(任意) -->
      {% if order.subtotal10 != 0 %}
        {{ order.subtotal10 | number_to_currency: format: '%n %u' }}
      {% endif %}

cart > サンクスオファー確認画面

ec_force/shop/orders/cv_confirm.html.liquid
ec_force/shop/orders/cv_confirm.html+smartphone.liquid

-      <!-- 10%対象小計 -->
+      <!-- 10%対象小計 ※10%商品小計とその他税率10%の手数料・送料などを含む -->
+      {% if order.target10 != 0 %}
+        {{ order.target10 | number_to_currency: format: '%n %u' }}
+      {% endif %}
 
+      <!-- 10%対象商品小計(任意) -->
       {% if order.subtotal10 != 0 %}
         {{ order.subtotal10 | number_to_currency: format: '%n %u' }}
       {% endif %}

cart > 注文情報確認プレビュー(部分テンプレート)

ec_force/shop/orders/_view_payment_preview.html.liquid
ec_force/shop/orders/_view_payment_preview.html+smartphone.liquid

     <div id="subtotal10_row">
       <label>10%対象</label>
       <label>小計</label>
-      <span id="subtotal10"></span>
+      <span id="target10"></span>
       <label class="discount_area">割引</label>
       <span class="discount_area" id="discount10"></span>
       <label>消費税</label>

mypage > 購入履歴詳細画面

ec_force/shop/customer/orders/show.html.liquid
ec_force/shop/customer/orders/show.html+smartphone.liquid

-     <!-- 10%対象小計(任意) -->
+     <!-- 10%対象小計(任意) ※10%商品小計とその他税率10%の手数料・送料などを含む -->
+     {{ order.target10 | number_to_currency: format: '%n %u' }}
 
+     <!-- 10%対象商品小計(任意) -->
      {{ order.subtotal10 | number_to_currency: format: '%n %u' }}