I'm using a child theme and have wp e-commerce installed. As you may or may not know, the normal WP search does not search for your products in wp e-commerce and the wpec *only* searches the products.
There is a plugin called Simple Unified Search for WP E-Commerce and the instructions give this bit of code to add to modify the search loop:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php if (!psp_isProduct($post)) : ?> <!-- Normal post display code goes here --> ... <?php else : ?> <!-- Here goes product display code --> <a>"> <img src="<?php psp_productImageName($post); ?>" width="56" alt="<?php psp_productName($post); ?>" title="<?php psp_productName($post); ?>" /> </a> <a>"> <?php psp_productName($post); ?></a> On product category <a>"> <?php psp_productCategory($post); ?></a> <?php psp_productData($post); ?> <?php endif; ?> <?php endwhile; ?> <?php else : ?> Not Found <?php endif; ?>
My question is, should I wrap this in a new search function and put it in the functions.php file of my child theme? How would I do this? Otherwise, how would I modify the search loop in Thematic to allow for this modification?
FYI - I've tried Search Unleashed and I got an error on index with one of the wp e-commerce dynamically generated pages...
I'm still a bit new to this so could really appreciate the help.