-
AuthorPosts
-
October 1, 2014 at 10:33 pm #328541
Hi,
I have Enfold V3.0, WordPress 4.0 and WooCommerce 2.2.4 on my web site. My product categories sorting’ does not change when I drag & drop them.
Could you please help me about this?
Thanks in advance,
October 2, 2014 at 10:27 am #328811Hi sevankonu!
Thank you for using Enfold.
What do you mean it doesn’t change when you “drag and drop” them? Please provide a screenshot of the issue.
Cheers!
IsmaelOctober 2, 2014 at 1:58 pm #328929Hi Ismael,
You may find the screenshots at => https://www.dropbox.com/sh/pga7546y8imvrs8/AAAZUSonyLhTsx-SMdjCcVVva?dl=0
As you may see at Backend photo, the main category “Banyo Aksesuarları” has sub categories sorted as Art De Luxe, Eiffel, Art, Natura…
But at the Frontend, the sub categories come as Art, Art De Luxe, Aynalar, Eiffel…
Hope these info and screenshots help.
Thank you for your help.
October 3, 2014 at 2:36 pm #329692Hi!
Can you please create us a WordPress administrator account? post it here as a private reply.
Cheers!
AndyOctober 5, 2014 at 8:15 am #330392This reply has been marked as private.October 6, 2014 at 1:01 pm #330836Hey!
@ambodies007 Can you post the link to your website please? And please elaborate on the issueCheers!
YigitOctober 10, 2014 at 4:13 pm #333905This reply has been marked as private.October 12, 2014 at 8:11 pm #334542Hi!
Unfortunately the customisation is not as straight forward as it appears.
To display a categories list ordered the way you require, you will need to query wordpress using
wp_list_categories
functionHere’s an example:
<?php $taxonomy = 'product_cat'; $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $title = ''; $empty = 0; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); ?> <?php $all_categories = get_categories( $args ); //print_r($all_categories); foreach ($all_categories as $cat) { //print_r($cat); if($cat->category_parent == 0) { $category_id = $cat->term_id; ?> <?php echo '<br /><a href="'. get_term_link($cat->slug, 'product_cat') .'">'. $cat->name .'</a>'; ?> <?php $args2 = array( 'taxonomy' => $taxonomy, 'child_of' => 0, 'parent' => $category_id, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $sub_cats = get_categories( $args2 ); if($sub_cats) { foreach($sub_cats as $sub_category) { echo $sub_category->name ; } } ?> <?php } } ?>
You will then need to construct a widget to add this code to. Then drag the widget to the required widget area you wish to display the category.
Unfortunately this customisation will take a while to implement and therefore falls outside the scope of our theme support. You can try http://studio.envato.com or http://www.peopleperhour.com for further customization. You can also vote for or post a feature request on our feature request page https://kriesi.at/support/enfold-feature-requests/.
If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries. Thank you for your understanding.
Regards,
ArvishOctober 14, 2014 at 6:30 pm #335700Hi,
Thank you for all the answers, but I finally managed to sort this out. The problem was a filter option. I changed the filter option from the widgets, now everything is fine.
Thank you,
-
AuthorPosts
- The topic ‘WooCommerce Product Categories’ is closed to new replies.