WordPress以外で作成されたフォームにおいて、Digimaへ連携する以下の項目へ、項目コードの設定のほか、フィールドと入れ子の設定が必要です。
■基本項目
基本項目を指定する場合のフィールド・入れ子は以下の通りです。
項目の種類 |
フィールド |
入れ子 |
---|---|---|
基本項目 | staticFields | 不要 |
// 基本項目
$form-contact()-staticFields()-setMany(array(
'email' => $_POST['email'],
基本項目の項目コードは以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
項目コード |
---|---|---|---|
姓 | staticFields | 不要 | last_name |
姓(カナ) | staticFields | 不要 | last_name_kana |
名 | staticFields | 不要 | first_name |
名(カナ) | staticFields | 不要 | first_name_kana |
メールアドレス | staticFields | 不要 | |
年齢 | staticFields | 不要 | age |
性別 ※1 | staticFields | 不要 | gender |
ウェブサイトURL | staticFields | 不要 | personal_website_url |
自宅固定電話番号 ※2 | staticFields | 不要 | personal_landline_number |
個人携帯電話番号 ※2 | staticFields | 不要 | personal_mobile_number |
自宅ファックス番号 ※2 | staticFields | 不要 | personal_fax_number |
自宅国 | staticFields | 不要 | personal_country |
自宅都道府県 | staticFields | 不要 | personal_region |
自宅市区町村 | staticFields | 不要 | personal_city |
自宅郵便番号 | staticFields | 不要 | personal_postal_code |
自宅住所1 | staticFields | 不要 | personal_address_1 |
自宅住所2 | staticFields | 不要 | personal_address_2 |
勤務先会社名 | staticFields | 不要 | work_company_name |
勤務先会社ウェブサイトURL | staticFields | 不要 | work_website_url |
勤務先部署名 | staticFields | 不要 | work_department |
勤務先役職名 | staticFields | 不要 | work_job_title |
勤務先固定電話番号 ※2 | staticFields | 不要 | work_landline_number |
勤務先携帯電話番号 ※2 | staticFields | 不要 | work_mobile_number |
勤務先国 | staticFields | 不要 | work_country |
勤務先都道府県 | staticFields | 不要 | work_region |
勤務先市区町村 | staticFields | 不要 | work_city |
勤務先郵便番号 | staticFields | 不要 | work_postal_code |
勤務先住所1 | staticFields | 不要 | work_address_1 |
勤務先住所2 | staticFields | 不要 | work_address_2 |
メモ | staticFields | 不要 | notes |
※1 性別項目について
Digimaへ取り込む際は、項目コードgenderを指定した上で、'female' または 'male' の情報を送信してください。'女性' など 'female' または 'male' 以外の値では取込みできません。
※2 電話番号項目について
電話番号項目に該当する項目は、ハイフンを除いた値を送信してください。
<ハイフン除去のサンプルソース>
$tel = '090-1234-5678';
$tel_replace = str_replace( array( '-', 'ー', '−', '―', '‐' ), '', $tel );
echo $tel_replace; // ハイフンを削除し、09012345678と表示されます。
■問い合わせ共通項目
問い合わせ共通項目を指定する場合のフィールド・入れ子は以下の通りです。
項目の種類 |
フィールド |
入れ子 |
---|---|---|
問い合わせ共通項目 | staticFields | real_estate_inquiry |
// 基本項目(入れ子)
$form-contact()-staticFields()-set('real_estate_inquiry', array(
‘content’ => $_POST['real_estate_inquiry_content'],
));
問い合わせ共通項目の項目コードは以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
項目コード |
---|---|---|---|
問い合わせ企画 | staticFields | real_estate_inquiry | client_selected_plan |
希望連絡方法 | staticFields | real_estate_inquiry | preferred_mode_of_communication |
希望曜日時間帯 | staticFields | real_estate_inquiry | preferred_time_of_communication |
問い合わせ内容 | staticFields | real_estate_inquiry | content |
年収 | staticFields | real_estate_inquiry | yearly_income |
■注文住宅問い合わせ項目
注文住宅問い合わせ項目を指定する場合のフィールド・入れ子は以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
---|---|---|
注文住宅問い合わせ項目 | staticFields | real_estate_construction_inquiry |
// 基本項目(入れ子)
$form-contact()-staticFields()-set('real_estate_construction_inquiry', array(
‘budget’ => $_POST['real_estate_construction_inquiry_budget'],
));
注文住宅問い合わせ項目の項目コードは以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
項目コード |
---|---|---|---|
建築予定地・土地の有無 | staticFields | real_estate_construction_inquiry | location_details |
建築予定時期 | staticFields | real_estate_construction_inquiry | planned_timing |
建築予算 | staticFields | real_estate_construction_inquiry | budget |
建築要望 | staticFields | real_estate_construction_inquiry | requirements |
問い合わせ種別 | staticFields | real_estate_construction_inquiry | type |
問い合わせモデルハウス名 | staticFields | real_estate_construction_inquiry | model_house_name |
予約希望日時 | staticFields | real_estate_construction_inquiry | reservation_timing |
問い合わせイベント名 | staticFields | real_estate_construction_inquiry | event_name |
問い合わせイベント開催日時 | staticFields | real_estate_construction_inquiry | event_timing |
請求カタログ名 | staticFields | real_estate_construction_inquiry | preferred_catalog_name |
問い合わせ展示場名 | staticFields | real_estate_construction_inquiry | exhibition_venue_name |
■売却問い合わせ項目
売却問い合わせ項目を指定する場合のフィールド・入れ子は以下の通りです。
項目の種類 |
フィールド |
入れ子 |
---|---|---|
売却問い合わせ項目 | staticFields | real_estate_sale_inquiry |
// 基本項目(入れ子)
$form-contact()-staticFields()-set('real_estate_sale_inquiry', array(
‘property_address’ => $_POST['real_estate_sale_inquiry_property_address'],
));
売却問い合わせ項目の項目コードは以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
項目コード |
---|---|---|---|
売却物件種別 | staticFields | real_estate_sale_inquiry | property_type |
売却物件住所 | staticFields | real_estate_sale_inquiry | property_address |
売却土地面積 | staticFields | real_estate_sale_inquiry | property_land_area |
売却建物面積 | staticFields | real_estate_sale_inquiry | property_building_area |
売却物件間取り | staticFields | real_estate_sale_inquiry | property_floor_plan |
売却物件築年 | staticFields | real_estate_sale_inquiry | property_age |
現況 | staticFields | real_estate_sale_inquiry | property_vacancy_status |
名義 | staticFields | real_estate_sale_inquiry | property_owner_name |
売却希望時期 | staticFields | real_estate_sale_inquiry | preferred_sale_time |
売却理由 | staticFields | real_estate_sale_inquiry | sale_reason |
査定方法 | staticFields | real_estate_sale_inquiry | preferred_assessment_method |
売却希望価格 | staticFields | real_estate_sale_inquiry | offer_price |
売却要望 | staticFields | real_estate_sale_inquiry | requests |
■不動産購入問い合わせ項目
不動産購入問い合わせ項目を指定する場合のフィールド・入れ子は以下の通りです。
項目の種類 |
フィールド |
入れ子 |
---|---|---|
不動産購入問い合わせ項目 | staticFields | real_estate_purchase_inquiry |
// 基本項目(入れ子)
$form-contact()-staticFields()-set('real_estate_purchase_inquiry', array(
‘preferred_move_in_date’ => $_POST['real_estate_purchase_inquiry_preferred_move_in_date'],
));
不動産購入問い合わせ項目の項目コードは以下の通りです。
Digima項目名 |
フィールド |
入れ子 |
項目コード |
---|---|---|---|
購入物件種別 | staticFields | real_estate_purchase_inquiry | property_type |
購入物件名 | staticFields | real_estate_purchase_inquiry | property_name |
入居希望時期 | staticFields | real_estate_purchase_inquiry | preferred_move_in_date |
購入物件詳細画面 | staticFields | real_estate_purchase_inquiry | property_image_url |
購入希望詳細 | staticFields | real_estate_purchase_inquiry | preferred_property_specification |
購入希望エリア | staticFields | real_estate_purchase_inquiry | preferred_area |
■カスタム項目
カスタム項目を指定する場合のフィールド・入れ子は以下の通りです。
項目の種類 |
フィールド |
入れ子 |
---|---|---|
カスタム項目 | customFields | 不要 |
// カスタム項目
$form-contact()-customFields()-set('interest', $_POST['interest']);
カスタム項目の項目コードは、項目作成時に設定いただくため固定ではございません。
作成したカスタム項目はこちらの画面から確認できます。