Conversation
supportHi, I’m using “ Category Order and Taxonomy Terms Order ” to arrange the order of brands in WooCommerce. When I add a list of brands using the WooCommerce shortcode [product_brand_list show_top_links=”false”], the items are displayed in alphabetical order . How do I force the plugin to control the display in WooCommerce and use the sequence I have prepared? Thanks, Phil, The page I need help with: [ log in to see the link]
Hi, The plugin mentioned is not a default WooCommerce plugin but is implemented by a third piece of code. Given that, I’m not sure how it queries the terms. Can you check if the Auto Sort option is active ? That ensure the customised order is applied for the terms query. Or you can manually add the 'orderby' => 'term_order' within the queries where the custom order is required to apply https://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/ Thanks
Thanks. With effect from v9.6, WooCommerce now incorporates the product_brand taxonomy and associated functionality. The downside with this is that it only offers limited capability. For instance, the shortcode for listing of product_brand is set to alphabetical order. I’m unsure where to go to modify this. Perhaps there is a hook I can access to modify the WooCommerce behaviour? I have checked and Autosort is definitely enabled. I think it is being ignored, though. Hope you are able to help, Phil.
Hi, When the Settings > Taxonomy Terms Order > Auto Sort -> is set to ON the customized order should apply on the outputted content for the product_brand shortcode content. Make sure you also clear the site caches. I tested that on our environment and working fine. Thanks
Thanks. I have confirmed Auto Sort is on and cleared all caches. The only shortcode I can find in the documentation is [product_brand_list] which seems to force alphabetical order. I have tried adding the snippet at https://woocommerce.com/document/woocommerce-brands/#how-do-i-order-the-brands-on-the-front-end-as-showcased-on-the-admin-panel which is supposed to force the order, but it continues to be alphabetical. Very glad to hear you can get it working at your end. Which shortcode are you using?
OK, we may as well close this one. I have had a custom shortcode developed that displays the brands in the order they’re stored on the back-end. I’ll open a new thread to see how to deactivate ” Category Order and Taxonomy Terms Order ” for brands only. Thanks.
Hi, The plugin mentioned is not a default WooCommerce plugin but is implemented by a third piece of code. Given that, I’m not sure how it queries the terms. Can you check if the Auto Sort option is active ? That ensure the customised order is applied for the terms query. Or you can manually add the 'orderby' => 'term_order' within the queries where the custom order is required to apply https://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/ Thanks
Thanks. With effect from v9.6, WooCommerce now incorporates the product_brand taxonomy and associated functionality. The downside with this is that it only offers limited capability. For instance, the shortcode for listing of product_brand is set to alphabetical order. I’m unsure where to go to modify this. Perhaps there is a hook I can access to modify the WooCommerce behaviour? I have checked and Autosort is definitely enabled. I think it is being ignored, though. Hope you are able to help, Phil.
Hi, When the Settings > Taxonomy Terms Order > Auto Sort -> is set to ON the customized order should apply on the outputted content for the product_brand shortcode content. Make sure you also clear the site caches. I tested that on our environment and working fine. Thanks
Thanks. I have confirmed Auto Sort is on and cleared all caches. The only shortcode I can find in the documentation is [product_brand_list] which seems to force alphabetical order. I have tried adding the snippet at https://woocommerce.com/document/woocommerce-brands/#how-do-i-order-the-brands-on-the-front-end-as-showcased-on-the-admin-panel which is supposed to force the order, but it continues to be alphabetical. Very glad to hear you can get it working at your end. Which shortcode are you using?
OK, we may as well close this one. I have had a custom shortcode developed that displays the brands in the order they’re stored on the back-end. I’ll open a new thread to see how to deactivate ” Category Order and Taxonomy Terms Order ” for brands only. Thanks.