質問

「テキスト」から「HTML」までお問い合わせページのメールテンプレートタイプを変更する必要があります。 config.xmlにあることがわかりました

 <email>
    <contacts_email_email_template translate="label" module="contacts">
       <label>Contact Form</label>
       <file>contact_form.html</file>
       <type>text</type>
    </contacts_email_email_template>
 </email>

config.xmlを上書きする方法

編集]これはファイルアプリ/Code/Core/Mage/Contact/etc/config.xml用です。

役に立ちましたか?

解決

独自のモジュールを作成します([Namespace]_[Module]).
このためには、次のことが必要です。
app/etc/modules/[Namespace]_[Module].xml - 宣言ファイル

<?xml version="1.0"?>
<config>
    <modules>
        <[Namespace]_[Module]>
            <codePool>local</codePool>
            <active>true</active>
            <depends>
                <Mage_Contacts /><!-- so the config is loaded after the one from Mage_Contacts -->
            </depends>
        </[Namespace]_[Module]>
    </modules>
</config>

app/code/local/[Namespace]/[Module]/etc/config.xml - 構成ファイル

<?xml version="1.0"?>
<config>
    <modules>
        <[Namespace]_[Module]>
            <version>1.0.0</version>
        </[Namespace]_[Module]>
    </modules>
    <global>
        <template>
            <email>
                <contacts_email_email_template>
                    <type>html</type><!-- same xpath as in the original config file -->
                </contacts_email_email_template>
            </email>
        </template>
    </global>
</config>

キャッシュをクリアすると、行く予定です。
基本的にこれは、任意のノードをから上書きする方法です config.xml. 。モジュールを作成するだけです config.xml ファイル元のノードパスを複製し、値を追加します。

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top