Problem: I’ve developed a site using the Shopp ecommerce WordPress Plugin and product ordering is set to ‘Price – Low to High’ at the Client’s request. Splendid. But now – for one category only – he want’s the Products to be give a custom order. In the Shopp presentation settings, ‘Product Order’ is set site-wide.
Solution: I created a custom template for the category in question, then in that template loaded the specific category with the ‘order’ option set to ‘custom’. Here are some steps.
1) Create the category specific template in the ‘Shopp’ theme templates directory in your WordPress theme. In my case the file was called category-truss.php as ‘truss’ is the slug of the category, and it’s a copy of my main category.php template file.
2) At the top of category-truss.php add the API function shopp(‘storefront.category’) like so:
<?php shopp('storefront','category','slug=truss&load=true&order=custom'); ?> // load=true is needed to stop the functioning spitting out the category directly. // slug is whatever your category's slug is. See the docs for more 'order' options.
3) In the Shopp Admin area, edit the category you want to custom order, then use the ‘Arrange Products’ button/link. Then drag the products into the order you want and test.
It might be that there’s an easier or better way to do this, if so please let me know in the comments!
Please let me know if this tiny snippet was useful, just one click!