<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: wpsc</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 06:02:09 +0000</pubDate>

<item>
<title>jonnycj on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-19499</link>
<pubDate>Fri, 04 Mar 2011 10:44:47 +0000</pubDate>
<dc:creator>jonnycj</dc:creator>
<guid isPermaLink="false">19499@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;did this get resolved ?
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-10502</link>
<pubDate>Sat, 06 Mar 2010 04:51:56 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">10502@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Gene - you are awesome. Unfortunately, the Unified Search Plugin is not working...&#60;/p&#62;
&#60;p&#62;With this function, and without the plugin activated the search works as it did before but as soon as I activated the Unified Search for WP E- Commerce plugin (which is not really a full fledged plugin) the search is hosed. I just get blank images with a question mark and the urls don't point to anything.&#60;/p&#62;
&#60;p&#62;Since I've created a page structure that augments the dynamically created pages in wp e-commerce the normal WP search (without the plugin activated) is still grabbing those page titles so it kind of gets people to the products. I can live with this for the time being.&#60;/p&#62;
&#60;p&#62;I just feel like having two search boxes (one for products and one for posts) is a wholly inelegant solution. Hopefully Instinct (the developers of wp e-commerce) will build a unified search into a future version.&#60;/p&#62;
&#60;p&#62;That said, if I could get Search Unleashed working that would solve my problem as well, I get an error related to one of the wp e-commerce functions on index and then the index fails...no one on the getshopped.org forums can figure it out...&#60;/p&#62;
&#60;p&#62;Anyway, thanks for your help!&#60;/p&#62;
&#60;p&#62;J
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-10495</link>
<pubDate>Sat, 06 Mar 2010 02:12:51 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">10495@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function child_remove_searchloop() {
     remove_action(&#38;#39;thematic_searchloop&#38;#39;,&#38;#39;thematic_search_loop&#38;#39;);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;child_remove_searchloop&#38;#39;);

function child_create_searchloop() {
	// add your modified loop here

	if (have_posts()) : while (have_posts()) : the_post(); ?&#38;gt;
		&#38;lt;?php if (function_exists(psp_isProduct) &#38;#38;&#38;#38; (psp_isProduct($post)) ) { ?&#38;gt;
			&#38;lt;!-- Here goes product display code --&#38;gt;
			&#38;lt;a href=&#38;quot;#&#38;quot;&#38;gt;
      			&#38;lt;img src=&#38;quot;&#38;lt;?php psp_productImageName($post); ?&#38;gt;&#38;quot; width=&#38;quot;56&#38;quot;
      				alt=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot;
      				title=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot; /&#38;gt;
  			&#38;lt;/a&#38;gt;
		&#38;lt;?php } else { ?&#38;gt;
			&#38;lt;!-- Normal post display code goes here --&#38;gt;
			&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class() ?&#38;gt;&#38;quot;&#38;gt;
				&#38;lt;?php thematic_postheader(); ?&#38;gt;
				&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
					&#38;lt;?php thematic_content(); ?&#38;gt;
				&#38;lt;/div&#38;gt;
				&#38;lt;?php thematic_postfooter(); ?&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;
		&#38;lt;?php } ?&#38;gt;
	  &#38;lt;?php endwhile;?&#38;gt;
	&#38;lt;?php endif;
}
add_action(&#38;#39;thematic_searchloop&#38;#39;,&#38;#39;child_create_searchloop&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think this addresses what you're trying to do.&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-10494</link>
<pubDate>Sat, 06 Mar 2010 01:21:53 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">10494@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Gene...&#60;/p&#62;
&#60;p&#62;I added the function to remove the thematic search loop and then added the function to create my search loop but I'm getting a syntax error...I just copied and pasted what was in the plugin documentation but I don't know enough to figure out what's wrong with the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function child_create_searchloop() {
     // add your modified loop here

     &#38;lt;?php if (have_posts()) : ?&#38;gt;
     &#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;
         &#38;lt;?php if (!psp_isProduct($post)) : ?&#38;gt;
             &#38;lt;!-- Normal post display code goes here --&#38;gt;

         &#38;lt;?php else : ?&#38;gt;
             &#38;lt;!-- Here goes product display code --&#38;gt;
             &#38;lt;a&#38;gt;&#38;quot;&#38;gt;
      &#38;lt;img src=&#38;quot;&#38;lt;?php psp_productImageName($post); ?&#38;gt;&#38;quot; width=&#38;quot;56&#38;quot;
           alt=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot;
           title=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot; /&#38;gt;
  &#38;lt;/a&#38;gt;
         &#38;lt;?php endif; ?&#38;gt;
     &#38;lt;?php endwhile; ?&#38;gt;
 &#38;lt;?php else : ?&#38;gt;
     Not Found
 &#38;lt;?php endif; ?&#38;gt;

}
add_action(&#38;#39;thematic_searchloop&#38;#39;,&#38;#39;child_create_searchloop&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm also not sure what goes into the 'Normal post display code' area...would I just insert the code that's in the thematic searchloop  in content-extensions.php?&#60;/p&#62;
&#60;p&#62;This is the only bit I'm having a lot of trouble with on the site I'm working on. If I can get this unified search working, I'm golden.&#60;br /&#62;
J
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-10469</link>
<pubDate>Fri, 05 Mar 2010 04:51:38 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">10469@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi joshuaiz,&#60;/p&#62;
&#60;p&#62;Look into thematic/library/extensions/content-extensions.php for the contents of &#60;code&#62;thematic_search_loop&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;You'll want to remove it in your child theme's functions.php with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function child_remove_searchloop() {
     remove_action(&#38;#39;thematic_searchloop&#38;#39;,&#38;#39;thematic_search_loop&#38;#39;);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;child_remove_searchloop&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Next you'll want to rebuild you're version of it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function child_create_searchloop() {
     // add your modified loop here
}
add_action(&#38;#39;thematic_searchloop&#38;#39;,&#38;#39;child_create_searchloop&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Unified Search and WP E-Commerce"</title>
<link>http://themeshaper.com/forums/topic/unified-search-and-wp-e-commerce#post-10451</link>
<pubDate>Thu, 04 Mar 2010 22:01:01 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">10451@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;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:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (have_posts()) : ?&#38;gt;
      &#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;
          &#38;lt;?php if (!psp_isProduct($post)) : ?&#38;gt;
              &#38;lt;!-- Normal post display code goes here --&#38;gt;
              ...
          &#38;lt;?php else : ?&#38;gt;
              &#38;lt;!-- Here goes product display code --&#38;gt;
              &#38;lt;a&#38;gt;&#38;quot;&#38;gt;
                  &#38;lt;img src=&#38;quot;&#38;lt;?php psp_productImageName($post); ?&#38;gt;&#38;quot; width=&#38;quot;56&#38;quot;
                       alt=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot;
                       title=&#38;quot;&#38;lt;?php psp_productName($post); ?&#38;gt;&#38;quot; /&#38;gt;
              &#38;lt;/a&#38;gt;
              &#38;lt;a&#38;gt;&#38;quot;&#38;gt;
                  &#38;lt;?php psp_productName($post); ?&#38;gt;&#38;lt;/a&#38;gt;
                  On product category
                  &#38;lt;a&#38;gt;&#38;quot;&#38;gt;
                      &#38;lt;?php psp_productCategory($post); ?&#38;gt;&#38;lt;/a&#38;gt;
              &#38;lt;?php psp_productData($post); ?&#38;gt;
          &#38;lt;?php endif; ?&#38;gt;
      &#38;lt;?php endwhile; ?&#38;gt;
  &#38;lt;?php else : ?&#38;gt;
      Not Found
  &#38;lt;?php endif; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;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?&#60;/p&#62;
&#60;p&#62;FYI - I've tried Search Unleashed and I got an error on index with one of the wp e-commerce dynamically generated pages...&#60;/p&#62;
&#60;p&#62;I'm still a bit new to this so could really appreciate the help.&#60;/p&#62;
&#60;p&#62;J
&#60;/p&#62;</description>
</item>

</channel>
</rss>
