# アカウント新規登録のカスタマイズ

**URL:** <https://community.shopify.com/t/topic/43374>\
**Category:** 技術的なQ＆A\
**Created:** [April 16, 2021, 3:18am UTC](https://community.shopify.com/t/topic/43374 "2021-04-16T03:18:42Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

Prestigeテーマの新規会員登録ページで、「名」と「姓」の表示順を上下逆にしたいという相談。添付画像は、登録フォームの現在の表示順を示すものとして使われている。

- 回答では、Shopifyテーマのコード編集から `customers/register` を探し、`FirstName` と `LastName` の該当部分を入れ替える方法が案内された。Prestige未所持のため、Debutテーマを例にした説明だった。
- 途中、投稿されたコードでは実際には順番が入れ替わっていないとの指摘があり、編集内容の確認が行われた。
- その後、再度コードを編集したところ希望どおり逆順にできたと報告があり、問題は解決している。

結論として、登録フォームの表示順変更はテーマ側の `customers/register` テンプレート修正で対応可能という内容。

<div class="post-metadata">

**Author:** ![masa4](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@masa4](https://community.shopify.com/u/masa4)\
**Post date:** [April 16, 2021, 3:18am UTC](https://community.shopify.com/t/topic/43374/1 "2021-04-16T03:18:42Z")

</div>

現在、Prestigeのテーマを使っています。

アカウントの新規登録のページで、「名」と「姓」を上下、逆にしたいのですが、どのようにすればよろしいでしょうか。

お手数をおかけしますが、お力お貸しください。  
よろしくお願いいたします。

 ![sss.JPG](https://canada1.discourse-cdn.com/shopifyforum/original/3X/0/3/0342d2590c1e7a72eead8c41094e0c8748a3ba4a.jpeg)

---

<div class="post-metadata">

**Author:** ![KOICHI\_KAMIZURU](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/koichi_kamizuru/32/120990_2.png) [@KOICHI\_KAMIZURU](https://community.shopify.com/u/KOICHI_KAMIZURU)\
**Post date:** [April 16, 2021, 8:05am UTC](https://community.shopify.com/t/topic/43374/2 "2021-04-16T08:05:46Z")

</div>

Prestigeのテーマを所持しておりませんのでDebutテーマを例に、以下のように実現可能です。

1. テーマのコード編集画面で以下のliquidファイルを検索

customers/register

1. ファイル内のFirstNameとLastNameを入れ替える

```markup

          

          
          

```

↓

```markup

          
        
          
          

```

1. 保存する

テーマが違うので一部異なっている可能性がありますが、ご確認を宜しくお願いします。

---

<div class="post-metadata">

**Author:** ![masa4](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@masa4](https://community.shopify.com/u/masa4)\
**Post date:** [April 19, 2021, 1:57am UTC](https://community.shopify.com/t/topic/43374/3 "2021-04-19T01:57:07Z")

</div>

ご教授ありがとうございます。

下記のように first name と last name を逆にしたのですが、フォームはそのままでした。  
やる方法が間違っているのでしょうか。。

よろしくお願いいたします。

```markup
{%- if request.locale.iso_code == 'ja' -%}
          
            
            
          

          
            
            
          

        {%- else -%}

          
            
            
          

          
            
            
          

        {%- endif -%}

```

---

<div class="post-metadata">

**Author:** ![\_osamu\_iwasaki](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/_osamu_iwasaki/32/272617_2.png) [@\_osamu\_iwasaki](https://community.shopify.com/u/_osamu_iwasaki)\
**Post date:** [April 19, 2021, 2:00am UTC](https://community.shopify.com/t/topic/43374/4 "2021-04-19T02:00:24Z")

</div>

逆になってないです

---

<div class="post-metadata">

**Author:** ![masa4](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@masa4](https://community.shopify.com/u/masa4)\
**Post date:** [April 19, 2021, 2:55am UTC](https://community.shopify.com/t/topic/43374/5 "2021-04-19T02:55:33Z")

</div>

改めて、コード編集したら逆にできました。  
ありがとうございます。
