Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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,

    #328811

    Hi 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!
    Ismael

    #328929

    Hi 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.

    #329692

    Hi!

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Cheers!
    Andy

    #330392
    This reply has been marked as private.
    #330836

    Hey!


    @ambodies007
    Can you post the link to your website please? And please elaborate on the issue

    Cheers!
    Yigit

    #333905
    This reply has been marked as private.
    #334542

    Hi!

    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 function

    Here’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,
    Arvish

    #335700

    Hi,

    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,

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘WooCommerce Product Categories’ is closed to new replies.