# アカウント作成で任意の項目を追加したい。

**URL:** <https://community.shopify.com/t/topic/16023>\
**Category:** 技術的なQ＆A\
**Created:** [July 16, 2020, 7:31am UTC](https://community.shopify.com/t/topic/16023 "2020-07-16T07:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

アカウント登録フォームに住所や電話番号などの任意項目を追加しても、`customer[phone]` のように送信しただけでは Shopify の標準顧客項目やCSV出力には自動反映されない、という課題が扱われています。

主な回答は次の内容です。
- `customers/register.liquid` で入力欄の表示自体は追加可能。
- ただし標準の顧客プロパティとして保存できる項目は限られるため、任意項目は `note`（顧客メモ）配下に保存する方法が案内されています。
- その場合、登録後は管理画面の「お客様のメモ」に、入力内容がキー付きで表示される想定です。

補足として、テーマ編集による「顧客情報への独自項目追加」を解説した Shopify のブログ記事も共有されています。

結論として、コードのみでの対応方法は示されており、任意項目を標準顧客データとして直接追加するのではなく、メモ欄に保存する形が現実的な解決策として提示されています。

<div class="post-metadata">

**Author:** ![ogayuu](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@ogayuu](https://community.shopify.com/u/ogayuu)\
**Post date:** [July 16, 2020, 7:31am UTC](https://community.shopify.com/t/topic/16023/1 "2020-07-16T07:31:40Z")

</div>

アカウント作成のページを編集しています。

元々「姓」、「名」、「メールアドレス」の項目がありましたが、

住所や電話番号などを追加予定です。

customers/register.liquidを編集することでアカウント登録画面に項目の追加はできたのですが、

実際に入力して登録するとShopifyの顧客管理を見ても追加分の項目は追加されておらず、

csvで出力しても内容が反映されていません。

元の名前取得コードは下記です

{{ ‘customer.register.last\_name’ | t }}  
\<input type=“text” name=“customer[last\_name]” id=“LastName” placeholder=“{{ ‘customer.register.last\_name’ | t }}”  
{% if form.last\_name %}value=“{{ form.last\_name }}” {% endif %} autocapitalize=“words”\>

{{ ‘customer.register.first\_name’ | t }}  
\<input type=“text” name=“customer[first\_name]” id=“FirstName” placeholder=“{{ ‘customer.register.first\_name’ | t }}”  
{% if form.first\_name %}value=“{{ form.first\_name }}” {% endif %} autocapitalize=“words” autofocus\>

下記は追加分の一部です

{{ ‘customer.register.phone’ | t }}  
\<input type=“text” name=“customer[phone]” id=“Phone”  
class=“{% if form.errors contains ‘email’ %} input–error{% endif %}”  
placeholder=“電話番号” {% if form.phone %} value=“{{ form.phone }}” {% endif %}  
autocorrect=“off” autocapitalize=“off”\>

コード作成は初心者となります。

しかし、別途アプリを使用するのではなくコードで解決をしたいです。

すみませんがご教授お願いいたします。

---

<div class="post-metadata">

**Author:** ![Propero](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/propero/32/369419_2.png) [@Propero](https://community.shopify.com/u/Propero)\
**Post date:** [July 20, 2020, 5:26pm UTC](https://community.shopify.com/t/topic/16023/2 "2020-07-20T17:26:41Z")

</div>

@ogayuu san,

```auto
これを成し遂げたいなら、私がお手伝いします

```

[email removed]

---

<div class="post-metadata">

**Author:** ![Toru](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Toru](https://community.shopify.com/u/Toru)\
**Post date:** [July 22, 2020, 12:18am UTC](https://community.shopify.com/t/topic/16023/3 "2020-07-22T00:18:42Z")

</div>

```markup

```

例えば上記のようなHTMLをform内に記述すると、ユーザー登録がされた際にnote配下の情報も登録されます。

顧客登録がされると、顧客管理ページの「お客様のメモ」のところに、入力された内容がキー別に表示されるはずです。

---

<div class="post-metadata">

**Author:** ![junichiokamura](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/junichiokamura/32/299737_2.png) [@junichiokamura](https://community.shopify.com/u/junichiokamura)\
**Post date:** [July 28, 2020, 3:27am UTC](https://community.shopify.com/t/topic/16023/4 "2020-07-28T03:27:52Z")

</div>

上記の方がお答えいただいている内容で、動作するかと思いますが、以下のブログの「テーマを使ったストアフロントの編集」の、「顧客（会員）情報への独自項目の追加」というリンクに詳細が乗っていますので、ご確認ください。

[https://www.shopify.jp/blog/partner-shopify-app-development](https://www.shopify.jp/blog/partner-shopify-app-development)
