Linking means that a "buy now button" click action should auto-complete the contact_form message part (ID=3), using admin\templates\mailform\checkoutitem.html template form?
I can't get it work. Contact_Form dedicated popup is opening but contact form fields are empty... Unfortunately I couldn't find any help to solve this issue, using this new feature.
Am I missing something while configuring "buy now button" or "contact form" ?
This is the normal behavior. All the needed information is transfered automatically. All the contact form fields that appear in the popup and that should be manually filled by users are the additional fields. They will be included in the email along with the main product information.
I still can't get it work... BuyNowButton informations are not transfered automatically into mail body...
So, I configured the "BuyNowButton" as it should (I think): Payment Method:Using Email Form Template Name:checkoutitem Contact Form Location:Open Popup -> buynowpopup (that is a simple popup with a working Contact Form widget on it (simple form widget, with 3 fields, not advanced one).
I have made no changes to /contact.php or /admin/templates/mailform/checkoutitem.html.php ...
Testing: After one click on BuyNowButton, popup is opening, all contact form fields are empty. Filling the contact form fields and sending works fine and, finally, the mail I receive contains only information from those 3 fields (name, email address and message).
There is no "checkoutitem template" order concatenated there, only those 3 contact form fields manually filled by me...
" They will be included in the email along with the main product information. " - this part don't work, and I don't know how to fix this... I don't understand where inclusion/linking take place?
Should I change something in Server procesor (/contact.php) ?
I noticed that contact.php is starting with: <?php
$mail_body = '';
...
$message = '<html><body>'.$mail_body.'</body></html>';
...
and ending with: if (!$error && @mail($to, $subject, $message, $headers))
{
print('<response><mail>1</mail></response>');
}
...
Thank you very much for helping with my request!
PS. I use Chrome in incognito mode, so I think there is no cache pb.
Are you using the Advanced Contact Form? The contact.php is used by the regular contact form that can not send the product information. The Advanced Contact Form uses widget_contact.php.