Hi All,
I'd like to use product attributes in a mail contact form of a product page.
So it will by dynamic.
Examples:
Use title of the product as subject of the email.
Use a custom product attribute, like seller e-mail address, as recipient of the e-mail.
Thanks!
If you look at the contact form email in app/locale/en_US/template/email/contact_form.html then you'll see the variables that are defined for that template and what the subject should be:
<!--@subject Contact Form@--> <!--@vars {"var data.name":"Sender Name", "var data.email":"Sender Email", "var data.telephone":"Sender Telephone", "var data.comment":"Comment"} @-->
If you add variables, you'll have to state them there as well and add them to the vars array of Mage_Core_Model_Email_Template::sendTransactional()
Basically it seems that you want that customers can send inquiry for respected products thriugh contact form... Possible but for that you need to do littel bit code in order to get products info; Instead of that I suggest to use product inquiry/ ask question kind of extensions, few links in below:
http://www.magentocommerce.com/magento-connect/product-inquiry-1.html
http://www.magentocommerce.com/magento-connect/product-inquiry.html
Hope it helps you
Thanks for all the replies everyone; it puts me in the right direction.
I guess I'll have to do some coding and tweaking, because there is no 'out-of-the-box' extension for this example so far.
"Use a custom product attribute, like seller e-mail address, as recipient of the e-mail"
That e-mail should be hidden for the person who fills out the form.
Any other ideas or extensions how to solve this?
Hello!
The following extension for Magento 2 will allow to use product attributes in a contact form as well as customize email templates - https://www.itoris.com/magento-2-form-builder.html
Best Regards,
Alex
You can refer the Free Contact Form Extension with useful features : https://www.magesolution.com/magento-advance-contact.html
Are you seeking a super time-saving tool to build any web forms ?
Advanced Form for Magento 2 by Magesolution is the perfect one for you. This versatile tool allows administrator to create limitless types of form and place it anywhere on your website you want. This means that you can create everything like feedback, customer satisfaction surveys, contact forms, quotation form and more to gather customer information for your marketing needs.
As an administrator, you can easily design your own forms with 11 super exciting input types for each field such as : text, text area, file, image, drop-down, radio, checkbox, multiple select, date, store view, product ..etc