문제

do you have any reference that can share, how to create a CMS page that has a newsletter subscription form in it? I don't need an extra column for the data. Once the user subscribes there, it will automatically create a record at the newsletter subscription page, and also send a confirmation email to the subscriber, just like filling out the newsletter subscription box at all the pages.

enter image description here

도움이 되었습니까?

해결책

You can create new CMS page from

Admin->Content->Pages->Add New Page

Page Title = Newsletter /*As you want*/
Content Heading = Subscribe to our Newsletter /*As you want*/

Then add the below content in Body

{{block class="Magento\Newsletter\Block\Subscribe" name="static.newsletter" template="Magento_Newsletter::subscribe.phtml"}}

It will create a page with a Newsletter subscription form and save the data.

Check the below screenshots.

CMS page.

enter image description here

Saved Data.

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top