その他 > その他 > 注文手続き画面に項目追加したい |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
eccbeginer |
投稿日時: 2019/7/26 18:27
対応状況: −−−
|
半人前 ![]() ![]() 登録日: 2019/5/14 居住地: 投稿: 11 |
Re: 注文手続き画面に項目追加したい 田中様
ご回答を頂戴し、ありがとうございます。 Controller や Repositoryは特に何も更新しておりません。 \Customize\EntityにOrderTrait.phpを作成し、 bin/console eccube:generate:proxies コマンドで Proxy クラスを生成し、Entityの拡張を行っており、プラグインの作成を行っていないのですが、画面項目追加のやり方としてそもそも合っておりますでしょうか? また、OrderTrait.phpの内容は以下の内容としております。 お気づきの点などございましたら、ご教示お願いいたします。 namespace Customize\Entity; use Doctrine\ORM\Mapping as ORM; use Eccube\Annotation\EntityExtension; /** * @EntityExtension("Eccube\Entity\Order") */ trait OrderTrait { /** * @ORM\Column(type="string",nullable=true) * @Eccube\Annotation\FormAppend( * auto_render=true, * type="\Symfony\Component\Form\Extension\Core\Type\TextType", * options={ * "required": false, * "label": "領収書宛名" * }) */ public $receipt_address; /** * @ORM\Column(type="string",nullable=true) * @Eccube\Annotation\FormAppend( * auto_render=false, * type="\Symfony\Component\Form\Extension\Core\Type\TextType", * options={ * "required": false, * "label": "領収書但し書き" * }) */ public $receipt_proviso; } どうぞよろしくお願いいたします。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
![]() |
eccbeginer | 2019/7/26 12:36 |
![]() |
h_tanaka | 2019/7/26 12:41 |
![]() |
eccbeginer | 2019/7/26 13:53 |
![]() |
h_tanaka | 2019/7/26 17:31 |
» ![]() |
eccbeginer | 2019/7/26 18:27 |
![]() |
h_tanaka | 2019/7/29 21:42 |
![]() |
eccbeginer | 2019/8/4 6:34 |
![]() |
aposto | 2019/9/25 1:44 |
![]() |
iwanaga | 2021/2/12 11:39 |
![]() |
ゲスト | 2019/9/16 20:56 |
![]() |
PDanny | 2019/10/11 23:59 |
