• Hi there,

    My wordpress search form doesn`t work on wp-ecommerce, I try to search for every exact tag and nothing.

    My search.php code is this:

    <?php get_header(); ?>
    
    	<div class="large">
    	<?php if (have_posts()) : ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="post-title">
    			<h2>Search Results for <i>'<?php the_search_query(); ?>'</i></h2>
    			</div>
    		</div>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="post-title">
    			<h3 style="padding-bottom:3px"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    			<p style="padding-bottom:3px"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_permalink() ?></a></p>
    			</div>
    
    			<div class="post-content">
    			<?php the_excerpt("&hellip;"); ?>
    			</div>
    		</div>
    
    		<?php endwhile; ?>
    
    		<div class="post-nav">
    			<div class="previous"><?php previous_posts_link('&lsaquo; Previous Page') ?></div>
    			<div class="next"><?php next_posts_link('Next Page &rsaquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<div class="post">
    			<div class="post-title">
    			<h2>Nothing Found</h2>
    			</div>
    
    			<div class="post-content">
    			<p>Sorry, no posts matched your search for <i>'<?php the_search_query(); ?>'</i></p>
    			</div>
    		</div>
    
    	<?php endif; ?>
    	</div>
    
    <?php get_sidebar(); ?>		
    
    <?php get_footer(); ?>

    and my searchform.php is:

    <div id="searchWrapper">
    	<form method="get" id="search-form" action="<?php bloginfo('url'); ?>/">
    			<input class="textInput" type="text" name="search" id="search" maxlength="50" value="<?php if(is_search()){the_search_query();} ?>" />
    	</form>
    </div>

    What could the problem be?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • wp-ecommerece does not store data as normal pages or posts, so the regular WP search can’t find it. People have been complaining about this for a looooong time. If you use a page/post-based ecommerce plugin (like eshop) you can use the regular search box.

    Thread Starter Gesp

    (@gesp)

    What should the search be like then?

    I believe it comes with its own search capability. I haven’t tested that plugin in a long time.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-ecommerce search doesnt work’ is closed to new replies.