Magento search box on WordPress site

I have a WP site on http://subdomain.example.com and a Magento site at http://example.com.
I was wondering what is the easiest way to add a Magento search box on the WP installation?

This is the WP search box code, but i dont know what parameter to modify since i have no idea how Magento works 🙁

Read More
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    <div>
        <label class="screen-reader-text" for="s"><?php _x( 'Search for:', 'label' ); ?></label>
        <input type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" />
        <input type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
    </div>
</form>

Any help would be greatly appreciated!

Related posts

Leave a Reply

2 comments

  1. Put the Magento catalogsearch url in the form action, and an input field with name attribute value “q” such as:

    <form method="get" action="http://example.com/catalogsearch/result/">
        <input type="text" value="" name="q" />