Results 1 to 5 of 5
  1. #1
    Member Vulf's Avatar
    Join Date
    Nov 2011
    Location
    Germany
    Posts
    9

    Question Using BUY NOW BUTTON, Using Email ...

    "It is possible to link the Buy now button to this contact form by mentioning contact form location in the buttons settings." - MotoCMS Blog http://www.motocms.com/blog/project-...on-1-6-future/

    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" ?

    Thank you!
    vu.

  2. #2
    Hello,

    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.

    Best regards,

    Paul

  3. #3
    Member Vulf's Avatar
    Join Date
    Nov 2011
    Location
    Germany
    Posts
    9

    Question Using BUY NOW BUTTON

    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.

    vu.

  4. #4
    Hello,

    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.

    Best regards,

    Paul

  5. #5
    Member Vulf's Avatar
    Join Date
    Nov 2011
    Location
    Germany
    Posts
    9

    Wink It works!

    I was using regular (simple) contact form and that was my mistake.
    Now it's OK !

    Thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •