Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Order Product Categories and sub NOT alphabetically
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Order Product Categories and sub NOT alphabetically
- This topic has 8 replies, 2 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
May 19, 2014 at 6:03 pm #76067
Hi,
I’ve noticed that the theme inserts automatically product cat & relatives subs after the product image, and this is fine for me.
The problem is that the sequence is ordered by alphabet ASC and doesn’t consider the hierarchy between cat and his sub(s).In the screen attached, you can find a typical situation. It displays “Microalbuminuria, Nefrologia” (ordered alphabetically). The correct sequence should be: “Nefrologia, Microalbuminuria” because Nefrologia is the main category and Microalbuminuria one of their sub.
How can manage it in order to display category first and then sub?
Thanks,
FrancescoMay 20, 2014 at 10:22 am #76188Hi,
Please provide always specific page URL so i can check and resolve the issue easily .
Thanks ๐
With Best Regards
Swift IdeasMay 20, 2014 at 11:18 am #76203May 20, 2014 at 11:19 am #76204May 20, 2014 at 11:41 am #76208Hi,
Please try to put this code at functions.php under theme directoryfunction wptt_cat_order( $args ){ $args['orderby'] = 'slug'; $args['order'] = 'ASC'; return $args; } // wptt_cat_order add_filter( 'woocommerce_product_subcategories_args', 'wptt_cat_order' );
Thanks ๐
With Best Regards
Swift IdeasMay 20, 2014 at 12:56 pm #76230Unfortunately doesn’t work.
I’ve putted it in functions.php in my child theme but nothing changes. I’ve also emptied the cache.
I’m assuming I’ve made a wrong description of my problem.
With this method you probably order alphabetically only the subs. The main problem for me is that the theme displays all the terms in alphabetic ASC mode (cat & sub). I’d love to order with this hierarchy:C (MAIN CATEGORY), A (FIRST SUB OF C), B (SECOND SUB OF C)
Thanks in advance
May 21, 2014 at 9:20 am #76483Hi,
Please try also this code and let me know your feedbackadd_filter('woocommerce_get_catalog_ordering_args', 'woocommerce_catalog_orderby'); function woocommerce_catalog_orderby( $args ) { $args['order'] = 'asc'; return $args; }
Thanks ๐
With Best Regards
Swift IdeasMay 21, 2014 at 9:28 am #76485Hi,
unfortunately nothing changed. The situation in the same.
Any ideas?May 21, 2014 at 9:36 am #76490Hi there,
Unfortunately that is not part of the current theme functionality, and it’s not within the scope of our support to be able to provide that functionality as it is more work than a small customisation. While we’d love to be able to support every customisation request, we simply don’t have the time. We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:Thanks
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.