質問 > その他 > EC-CUBE3でランディングページ内に購入フォーム |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
umebius |
投稿日時: 2018/6/11 17:35
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: EC-CUBE3でランディングページ内に購入フォーム yusuke0911様
可能な限りはお話いたしますが、容易にできるものではなく、おそらく非常に長く複雑になると思います。 まず、前提なのですがLPはコンテンツ管理のページ管理から 作成されたページでしょうか? すみません、Topページですね。 ではTopControllerでProductControllerのdetailメソッド内にある $Product = ~~~// 事前に取得しておく /* @var $builder \Symfony\Component\Form\FormBuilderInterface */ $builder = $app['form.factory']->createNamedBuilder('', 'add_cart', null, array( 'product' => $Product, 'id_add_product_id' => false, )); $event = new EventArgs( array( 'builder' => $builder, 'Product' => $Product, ), $request ); $app['eccube.event.dispatcher']->dispatch(EccubeEvents::FRONT_PRODUCT_DETAIL_INITIALIZE, $event); /* @var $form \Symfony\Component\Form\FormInterface */ $form = $builder->getForm(); を追加して、twigへ渡してみてください。
|
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
EC-CUBE3でランディングページ内に購入フォーム | yusuke0911 | 2018/6/11 15:30 |
Re: EC-CUBE3でランディングページ内に購入フォーム | umebius | 2018/6/11 15:45 |
Re: EC-CUBE3でランディングページ内に購入フォーム | yusuke0911 | 2018/6/11 17:28 |
» Re: EC-CUBE3でランディングページ内に購入フォーム | umebius | 2018/6/11 17:35 |
Re: EC-CUBE3でランディングページ内に購入フォーム | umebius | 2018/6/11 17:39 |
Re: EC-CUBE3でランディングページ内に購入フォーム | yusuke0911 | 2018/6/12 9:27 |