2

MagentoCE1.7で会社名を必須にしようとしています。変更を加えるフロントエンドの場所をたくさん見つけましたが、バックエンドの管理パネルで変更する関連ファイルを見つけることができません。

管理コンソールのリンク:/ admin / customer / edit / id / 68 / .. ..

これが私が変更のために特定した関連するフロントエンドファイルです。

 \app\design\frontend\base\default\template\checkout\onepage\billing.phtml
 \app\design\frontend\base\default\template\persistent\checkout\onepage\billing.phtml
 \app\design\frontend\base\default\template\customer\form\address.phtml
 \app\design\frontend\base\default\template\customer\address\edit.phtml
 \app\design\frontend\base\default\template\customer\form\register.phtml
 \app\design\frontend\base\default\template\persistent\customer\form\register.phtml
 \app\design\frontend\base\default\template\checkout\onepage\shipping.phtml

関連リンク-フロントエンド用...ttp://stackoverflow.com/questions/5456794/magento-make-the-field-company-required

4

1 に答える 1

2

バックエンド、特にデータベースを通じてこれを行う必要があります。

[管理] -> [顧客] -> [属性] -> [顧客住所属性の管理]に移動すると、会社フィールドが表示されます。クリックすると、必須フィールドが表示されますが、これはシステム属性であるため、[必要な値]フィールドは無効になっています。

開発者ツールバーを使用して select タグからdisabeld="disabled"属性を削除する、データベースに直接移動してテーブルeav_attributeに移動することで、これをオーバーライドできます。次に、 attribute_codeで会社を探し、is_requiredを 0 から 1 に変更します。

于 2013-02-25T05:10:05.673 に答える