WooCommerce – Sort Products which belong to multiple categories
Probably the best choice for e-commerce under a Wordpress environment, WooCommerce deliver all the juice you need for a successfully e-commerce business. WooCommerce is built using WordPress best practices both on the front and the back end. This results in an efficient, robust and intuitive plugin.
Product Sorting has been introduced reticently, as an easy method of order customization, this can be done using a drag and drop interface which is similar to default WordPress admin Products archive. This is a great way for keeping the best selling products on top of the list, which will give a boost to sales . Any decent shop will always use categories to keep the products in one place and make easier access to a certain type of goods. The product sorting can be done for each category using the filter that the admin sort interface display in the first part.
Using other plugins, why my order list broke for a category while i was doing another sorting for a different one?
For all other plugins, the product sorting rely on the default menu_order property, which unfortunate can keep only a value at a time. Giving that if a product belong to multiple categories, only the very last sorting order value will be held, everything else will be overwrite. In other words, if you set a sorting for the products which belong to a category, going to the next one will remove the order you set previously. Obliviously we don’t want that, as every category is required to use a very specific order to achieve planned results. Advanced Post Types Order is a specialized application, the perfect tool for managing the product sorting while keeping the order applied for other categories. No matter the number of categories which belong to a product, the number of categories need to be sorted, all order lists are saved and kept as defined!
First you can select the category for which you want to apply an order:
The order can be also set for other taxonomies defined like Product Tags, Tags etc, everything while keeping the sorts for the other places.
Re-order can be done using a simple drag and drop interface, then using Update to save.
A huge bonus for this plugin is the fact that it can be used also along with all other custom post types within your site (i.e. posts, pages, reviews, movies etc), practically you can sort the order for any content / post type / product.
The usage is very simple, once deployed the plugin will take care of the order update within the front side, no coding updates are necessarily.
Related Posts
- Optimize Your WooCommerce Store products sorting with Advanced Post Types Order Plugin
- Automatically order WooCommerce products based on attributes
- Easy WooCommerce order by Total Sales
- Sort WooCommerce Products while automatically put the Out of Stock items at the end of list
- How to apply WooCommerce category order while using visual attributes filtering
- Turn off visibility for WooCommerce Hidden products within sort list
- Display the SKU for WooCommerce products within re-order interface
- Sorting WooCommerce Products within Attributes
- WooCommerce Up-sells Sort
- Advanced Post Types Order
- WooCommerce - Sort Grouped Products, Easily manage Grouped Products
This is so cool.. glad i had found that article !!
Afraid I don’t really understand if this is the right article for me. I have 2 main categories where some of my products are relevant to both categories. I’m trying to work out how to order these products so that they appear regardless of which of the 2 main categories is selected.
I don’t want to have to duplicate products, so can anyone tell me simply how best to do it within Woo?
Making a sort for a product within a category will not make you lose the previous sort set for other category. All order indexes are saved so any sort will be kept and will be used on the right area accordingly to your sorts.
The default next / previous_post_link WordPress functions are very limited and can’t use any sorting. I suggest so you change with next / previous_post_type_link() which provide full support for sort lists. Additional details and code examples can be fond at:
https://www.nsp-code.com/advanced-post-types-order-api/previous-post-link/
https://www.nsp-code.com/advanced-post-types-order-api/next-post-link/
https://www.nsp-code.com/advanced-post-types-order-api/get-adjacent-post/
Sorry for the issue, please send a message through contact and someone will help in no time.