[Magento] お問い合わせ(Contact us)を編集する

フロントエンドの編集

Magentoでお問い合わせフォームを編集する場合は下記のファイルを変更します。
app/design/frontend/base/default/template/contacts

例えば問い合わせフォームに「題名」という要素を追加したい場合は、下記のように書きます。
contactus_cmd

見た目の変更はこのようにしてできます。次はインプットデータをメールのテンプレートに載せる方法です。

バックエンドの編集

Magentoはこの辺がよく出来ていて、追加したフィールドの値を取得するのは管理者画面からできます。

まず、「システム」-「取り引きメール」に行き、「新規テンプレートの追加」をクリック

テンプレートで「コンタクトフォーム」を選択し、「テンプレートを読み込む」ボタンをクリックします。

すると下記のようにデフォルトの変数マッピングが読み込まれます。
contact_default

ここで他の項目に習って新しいフィールドを追加します。例えば「題名」を追加するには、下記のように一行追記します。
contact_default2

その後で「テンプレートを保存」ボタンを押します。

次に「システム」-「設定」-「コンタクト」に行き、メールテンプレートで先ほど保存したテンプレートを保存して完了です。

日本語の編集

EC技研さんの日本語化プラグインを使用している方は日本語を変えたい場合があると思います。そんな時はこちらを参照ください。
Magentoを日本語化する


  1. Bzttff より:

    lipitor 40mg price order lipitor generic buy atorvastatin 40mg generic

  2. Wmehnz より:

    order cipro generic - order cephalexin 500mg generic cheap augmentin

  3. Tjnxyw より:

    buy cheap baycip - purchase septra online generic clavulanate

  4. Ydbzgd より:

    oral ciprofloxacin 500 mg - order trimox 500mg online
    order erythromycin 500mg generic

  5. Qpqtuq より:

    how to buy flagyl - brand cefaclor 500mg order zithromax

  6. Mhkjzr より:

    ivermectin and covid - order tetracycline sumycin pill

  7. Lswvlv より:

    purchase valtrex online cheap - order generic vermox zovirax 800mg cheap

  8. Eqsaod より:

    order flagyl without prescription - cost azithromycin zithromax 250mg generic

  9. Lnhczj より:

    lasix brand - buy furosemide generic diuretic captopril 25 mg for sale

  10. Jwqbru より:

    order glucophage 500mg pills - glycomet drug lincomycin 500 mg us

  11. Qqyhxn より:

    retrovir 300mg ca - buy zyloprim 100mg for sale order allopurinol 100mg pill

  12. Cpdlcb より:

    clozaril 50mg without prescription - purchase frumil without prescription famotidine 20mg pill

comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

© 2024 みる米技術部 Powered by AFFINGER5