<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Sorting Catalog Product Order By Price</title>
		<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price</link>
		<description>Support Forum - Topic: Sorting Catalog Product Order By Price</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 06:36:12 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/sorting-catalog-product-order-by-price" rel="self" type="application/rss+xml" />

		<item>
			<title>Kriesi on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-105973</link>
			<pubDate>Wed, 17 Apr 2013 16:46:05 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">105973@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have found an issue in the theme that made pricing behave a little strange. might be that this was the problem you are encountering but I am not sure yet. I will upload the patch in the next few days, so once you got your hands on it elt me know if it fixed your problem ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-102279</link>
			<pubDate>Wed, 20 Mar 2013 15:32:10 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">102279@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey SixStar281,&#60;/p&#62;
&#60;p&#62;I'm fairly sure this is an issue that needs to be fixed within WooCommerce. I know the code snippet I posted came from the lead developer for the plugin for the very same question. When Kriesi is able to take a look maybe he will have a better solution. I'll take a look through the reported bugs as well to see if this has been posted to them yet.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-102074</link>
			<pubDate>Tue, 19 Mar 2013 15:09:06 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">102074@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Waited for WC2 and installed, also installed the updates for the theme that came out since I created the site, still no luck.. would you like ftp credentials? and wordpress?  Please tell me where to mail them to.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-97370</link>
			<pubDate>Tue, 19 Feb 2013 06:17:53 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">97370@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Marked this thread for Kriesi. Tbh I think it's a Woocommerce bug and we'll probably need to wait for WC2.0 but maybe he can provide a solution. &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-97266</link>
			<pubDate>Mon, 18 Feb 2013 16:05:56 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">97266@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It seems like that one didn't work either ;/ &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://dreamroomshouston.com/beta/?product_cat=accent-chairs&#34; rel=&#34;nofollow&#34;&#62;https://dreamroomshouston.com/beta/?product_cat=accent-chairs&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96386</link>
			<pubDate>Tue, 12 Feb 2013 16:20:40 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">96386@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;In Dude's code above, please try replacing&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;else
{
  $meta_key = &#38;#39;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;else
{
  $orderBy = &#38;#39;meta_value_num&#38;#39;;
  $meta_key = &#38;#39;_price&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and also try changing in the same block above&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;orderby&#38;#39; =&#38;gt; $orderBY,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;orderby&#38;#39; =&#38;gt; $orderBy,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96384</link>
			<pubDate>Tue, 12 Feb 2013 16:16:32 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96384@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Tried it with all the plug-ins disabled. :(  they still not ordered by price. If i click on &#34;order by price&#34; on the front end, it will order them by price..  But it wont do it as a default..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96294</link>
			<pubDate>Tue, 12 Feb 2013 06:50:37 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">96294@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It seems like you're using the template builder on the front page. In this case try to change the default sorting (WooCommerce &#38;gt; Settings &#38;gt; Catalog) and if this doesn't solve the problem open up wp-content\themes\replete\includes\helper-template-dynamic.php and replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!isset($shop_slider)) $shop_slider = &#38;quot;no&#38;quot;;
		$page_nr = $shop_slider != &#38;quot;yes&#38;quot; ? get_query_var( &#38;#39;paged&#38;#39; ) : 1;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!isset($shop_slider)) $shop_slider = &#38;quot;no&#38;quot;;
	$page_nr = $shop_slider != &#38;quot;yes&#38;quot; ? get_query_var( &#38;#39;paged&#38;#39; ) : 1;

       if($orderBY == &#38;#39;price&#38;#39;){
            $orderBy = &#38;#39;meta_value_num&#38;#39;;
            $meta_key = &#38;#39;_price&#38;#39;;
        }
        else
        {
            $meta_key = &#38;#39;&#38;#39;;
        }

		$avia_config[&#38;#39;new_query&#38;#39;] = array(
			&#38;#39;post_type&#38;#39;	=&#38;gt; &#38;#39;product&#38;#39;,
			&#38;#39;post_status&#38;#39; =&#38;gt; &#38;#39;publish&#38;#39;,
			&#38;#39;ignore_sticky_posts&#38;#39;	=&#38;gt; 1,
			&#38;quot;paged&#38;quot; =&#38;gt; $page_nr,
			&#38;#39;posts_per_page&#38;#39; =&#38;gt; $shop_item_count,
			&#38;#39;orderby&#38;#39; =&#38;gt; $orderBY,
			&#38;#39;order&#38;#39; =&#38;gt; $order,
            &#38;#39;meta_key&#38;#39; =&#38;gt; $meta_key,
			&#38;#39;meta_query&#38;#39; =&#38;gt; array(
				array(
					&#38;#39;key&#38;#39; =&#38;gt; &#38;#39;_visibility&#38;#39;,
					&#38;#39;value&#38;#39; =&#38;gt; array(&#38;#39;catalog&#38;#39;, &#38;#39;visible&#38;#39;),
					&#38;#39;compare&#38;#39; =&#38;gt; &#38;#39;IN&#38;#39;
				)
			)
		);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'd also try to deactivate all third party plugins except woocommerce - maybe one causes the issue.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96187</link>
			<pubDate>Mon, 11 Feb 2013 15:23:44 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96187@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks Devin,&#60;br /&#62;
Tried it and It didn't work, like i said title, or date filter will work but not price. :/
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96146</link>
			<pubDate>Mon, 11 Feb 2013 12:05:31 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">96146@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi SixStar281,&#60;/p&#62;
&#60;p&#62;Try to add the following to the bottom of your functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
 * This code should be added to functions.php of your theme
 **/
add_filter(&#38;#39;woocommerce_default_catalog_orderby&#38;#39;, &#38;#39;my_custom_default_catalog_orderby&#38;#39;);

function my_custom_default_catalog_orderby() {
     return &#38;#39;price&#38;#39;; // Can also use title and date
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96107</link>
			<pubDate>Mon, 11 Feb 2013 05:58:26 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">96107@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi SixStar281,&#60;/p&#62;
&#60;p&#62;I am still finding a solution for this. Let me tag the rest of the support as they might already have a solution for this issue.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96103</link>
			<pubDate>Mon, 11 Feb 2013 05:26:03 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96103@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I tried installing from scratch, lates theme, latest woocommerce.. Before the theme it worked, but after theme, it stop working.. but this is only for &#34;price&#34;   I noticed that alphabetical order works.. &#60;/p&#62;
&#60;p&#62;&#34;price order does work in a weird way&#34; it arranges the items in price groups. not &#34;ascending or descending&#34;  &#60;/p&#62;
&#60;p&#62;example:  &#60;/p&#62;
&#60;p&#62;1item for $10 then&#60;br /&#62;
3items for $30 followed by&#60;br /&#62;
2 items for $15 next to&#60;br /&#62;
1item for $20&#60;/p&#62;
&#60;p&#62;So it does have a grouping function working, but not in the right way. Please help me!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96093</link>
			<pubDate>Mon, 11 Feb 2013 03:06:45 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96093@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Never mind, this is not solved.. that didn't help..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96086</link>
			<pubDate>Sun, 10 Feb 2013 22:26:48 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96086@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;After hours. and hours.. and a few more hours.. I found the solution.. i feel a little dumb about it.. &#60;/p&#62;
&#60;p&#62;on the config.php line 931 &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$po_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_order&#38;#39;]) ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_order&#38;#39;] : &#38;#39;default&#38;#39;;
		$ps_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_sort&#38;#39;])  ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_sort&#38;#39;] : &#38;#39;asc&#38;#39;;
		$pc_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_count&#38;#39;]) ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_count&#38;#39;] : $per_page;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;change to&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$po_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_order&#38;#39;]) ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_order&#38;#39;] : &#38;#39;price&#38;#39;;
		$ps_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_sort&#38;#39;])  ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_sort&#38;#39;] : &#38;#39;asc&#38;#39;;
		$pc_key = !empty($avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_count&#38;#39;]) ? $avia_config[&#38;#39;woocommerce&#38;#39;][&#38;#39;product_count&#38;#39;] : $per_page;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96061</link>
			<pubDate>Sun, 10 Feb 2013 16:22:51 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96061@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you Ismael, &#60;/p&#62;
&#60;p&#62;The only thing is that i have over 600 products ordering manually is not an option.Is there a way to automatically sort them by price?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96025</link>
			<pubDate>Sun, 10 Feb 2013 06:56:03 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">96025@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi SixStar281,&#60;/p&#62;
&#60;p&#62;Try to check this thread: &#60;a href=&#34;http://www.kriesi.at/support/topic/what-determines-order-of-displayed-products&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/what-determines-order-of-displayed-products&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SixStar281 on "Sorting Catalog Product Order By Price"</title>
			<link>http://www.kriesi.at/support/topic/sorting-catalog-product-order-by-price#post-96015</link>
			<pubDate>Sun, 10 Feb 2013 04:44:35 +0000</pubDate>
			<dc:creator>SixStar281</dc:creator>
			<guid isPermaLink="false">96015@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Is there a way to change the default sorting to Price? I have already change in the woocommercer settings under the catalog tab, but this dont work, I have search and research for days and I tried this filter,&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;woocommerce_get_catalog_ordering_args&#38;#39;, &#38;#39;am_woocommerce_catalog_orderby&#38;#39;);
function am_woocommerce_catalog_orderby( $args ) {
    $args[&#38;#39;meta_key&#38;#39;] = &#38;#39;_price&#38;#39;;
    $args[&#38;#39;orderby&#38;#39;] = &#38;#39;meta_value_num&#38;#39;;
    $args[&#38;#39;order&#38;#39;] = &#38;#39;desc&#38;#39;;
    return $args;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but it didn't work. &#60;/p&#62;
&#60;p&#62;website &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://dreamroomshouston.com/beta&#34; rel=&#34;nofollow&#34;&#62;https://dreamroomshouston.com/beta&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
