[Plugin: TheCartPress, E-Commerce for WordPress Stores] Sorting products
-
It would be nice if you could mention somewhere that you take over the sorting of the posts using Session variables.
I wanted to sort my products and didn’t realize that the “Order Panel” widget was for sorting. (I would rename it to use the word Sort because an order in a shopping cart is something else.) So I tried to use a different plugin to sort but they don’t sort!
I had to dig through the code to find that you override the sorting for all post queries, not just products. I don’t have a lot of other content on my test blog to try it out, but it seems like it would not be a good thing to sort them by price…And speaking of sorting by price, it doesn’t work correctly. It is sorting as text instead of a number. (not sure what it does with a grouped product) I fixed my local copy by putting “+0” in line 274 of TheCartPress.class.php
$orderby = "tcp_postmeta_price.meta_value+0 {$_SESSION['tcp_order_desc']}, {$wpdb->posts}.post_title";
There is one sort type that is called “order”, which I assume means I can set the order of the products myself. Where do I do that?
- The topic ‘[Plugin: TheCartPress, E-Commerce for WordPress Stores] Sorting products’ is closed to new replies.