1

Tell me how to implement the functionality of such a sample. On a separate page there is a form with any fields 2 or more and a submit button. I will use this example to implement. https://magento.stackexchange.com/a/201816/83080

But here is the difficulty. There are also elements with checkboxes on the page, they need to be selected and sent along with the form by 2 email. Customer and Administrator.

Tell me how to implement this or Mb someone was see examples of such an implementation, at least partial, I will be grateful for any help

enter image description here

  • You need to send mail to customer and administration with given field name, email and selected element right?? – Naresh Rupareliya Dec 21 '19 at 2:21
  • @NareshRupareliya yes – ann karsksya Dec 21 '19 at 6:10
  • Code posted. can u please check and let me know it's working for you or not – Naresh Rupareliya Dec 22 '19 at 7:55
3

Download module from here and install it.

I have created example module i.e Warranty and there is a form with name, email and elements

Elements contain 5 options : Element A, Element B, Element C, Element D, Element E(you can set option as per your requirement)

please type in url : yoursitepath/warranty/registration/index to open below form(you can change this path by URL Rewrite)

enter image description here

You need to set some back-end configuration :

Go to Stores >> Settings >> Configuration >> General >> Contacts

  • Send Emails To = admin@gmail.com(here you can set your admin mail where your administrator can get mail)
  • Email Sender = General Contact(Here you can set Sender Email Identity that means customer and admin will get mail from this mail id)

enter image description here

Getting mail looks like :

enter image description here

Note :

  • Install module
  • You can change form name and maessages title as per your module and as per your requirement. I have set dummy titles in this example.
  • Make sure your mail sending functionality should be configured

Hope this will help you!

| improve this answer | |
  • Naresh, sorry for the long answer, thanks for the example, it is very useful, I can’t test it now, but I wonder if the checkboxes are part of the form? This is a small condition by which I separately looked for a solution. I will have 3 sliders in which there will be elements with checkboxes, this will be implemented by separate cms blocks. Is it possible to somehow get data from checkboxes that are not part of the form? – ann karsksya Dec 22 '19 at 14:03
  • You need to call all the blocks inside one single form after that you can get value – Naresh Rupareliya Dec 22 '19 at 14:06
  • Is this the right way to call 4 sliders in a form? – ann karsksya Dec 22 '19 at 14:20
  • Yes it's right way to call 4 sliders in a single form. – Naresh Rupareliya Dec 22 '19 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.