WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] paypal and search buttons conflict (3 posts)

  1. photocurio
    Member
    Posted 2 years ago #

    I can't figure out how to troubleshoot this one.
    This page has a sidebar with a paypal button and a search widget:
    http://equitytrust.org.customers.tigertech.net/wordpress/category/resources/clt-resources/

    The problem is that when you search, the search submit goes to paypal. It does not search.

    The paypal button is an iframe, the code is from Paypal. The search widget is wordpress' built in widget.

  2. photocurio
    Member
    Posted 2 years ago #

    correction.. the paypal button is not an iframe, its just a plain form like this:

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center;margin-top:5px">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="xxxxxxxxxxxxxxxx">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"
    border="0" name="submit" alt="Donate to Equity Trust by Paypal">
    <img alt="credit cards" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1"  height="1">
  3. photocurio
    Member
    Posted 2 years ago #

    I found a solution, if anyone has a similar problem. I installed the plugin Nice Paypal Button Lite (I'll suggest to the client he upgrade to the full version for $15).

    Then I enabled shortcodes in textwidgets but adding this line to my functions.php:
    add_filter('widget_text', 'do_shortcode');
    No more conflict: the search button searches, the paypal button goes to paypal.

Topic Closed

This topic has been closed to new replies.

About this Topic