WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] paypal dropdown menu (7 posts)

  1. mussen
    Member
    Posted 7 months ago #

    I can't get paypal to work with WordPress. Specifically, it's the drop down menu that I really can't avoid having...there are 4 different subscription rates. Short of making 4 different buttons using the email code only (which is a bit of a mess and I worry is confusing), I'm at a loss.

    Has anyone got this to work without resorting to a paid plugin? (Although I'd accept recommendations for any paid plugins that have worked with customized paypal buttons as well).

    Thanks!

    http://wordpress.org/plugins/contact-form-7/

  2. mussen
    Member
    Posted 7 months ago #

    Sorry...I probably shouldn't have posted this in the Contact Form 7 forum, as the drop down menu in question pertains to the Paypal button not Contact Form 7.

    However, I'm using a Contact Form 7 form and pasting the Paypal button in the "# Sender's message was sent successfully" message after someone finishes the form correctly and clicks submit, so that the payment option appears only after the form is submitted. This works well if I don't have a customized Paypal button with the drop down menu for price selection (if you make a simple button you get the option to copy an email code rather than the html, which is what works on WordPress sites.)

    So as more relevant question to this forum: can drop down menus in Contact Form 7 trigger the appearance of new fields depending on the selection? Or maybe if the first question is membership type (which would indicate the particular cost of membership) could a new page automatically load where the form could be completed and the appropriate paypal button (without price options) would appear at the bottom?

    Thanks for any help anyone can offer.

  3. buzztone
    Member
    Posted 7 months ago #

    RE: can drop down menus in Contact Form 7 trigger the appearance of new fields depending on the selection?

    Looks like you are looking for Conditional Logic which is not available directly in Contact Form 7. It can be done via custom programing but you would need to be rather skilled at WordPress development using PHP.

    Some of the premium Form plugins do offer Conditional Logic including Gravity Forms, Quform and Ninja Forms.

  4. mussen
    Member
    Posted 7 months ago #

    Thanks for your reply.

    I ultimately just put links to the 4 different price options depending on subscription type and did 4 different forms so the right paypal button could appear in the message sent correctly box. This has the added benefit of creating 4 databases for the forms for easier tracking. (I installed the Contact Form to DB Extension).

    WordPress should really make their own workaround for paypal buttons with drop down menus.....

  5. buzztone
    Member
    Posted 7 months ago #

    If this resolves your question, it helps others contributing here, if you can flag your post as [resolved]

  6. mussen
    Member
    Posted 7 months ago #

    Thanks again.

  7. leclaeli
    Member
    Posted 3 weeks ago #

    I'm trying to do a similar thing. I have four items that I setup in a PayPal drop-down menu. I want to submit the selected item to PayPal after my contact 7 form is submitted. I'm putting the following code in the additional settings area in Contact Form 7, but I get errors when it takes me to PayPal. I'm obviously missing something, but I don't know what.

    on_sent_ok: "location = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4EJBT5ZVKBGC8';"

    Here's some additional links concerning the topic:

    PayPal Developer

    http://runastartup.com/integrate-paypal-button-with-contact-form-in-wordpress/

    http://stackoverflow.com/questions/19482099/html-select-statement-and-button-not-working-with-paypal

    http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect?replies=15#post-1683148

    Any ideas?

Reply

You must log in to post.

About this Plugin

About this Topic