• Resolved urka

    (@urka)


    Hi,
    I am building on a shop and I need standard WP pages where I show products of a category because I need description for this categories.
    I use the shortcode [product_category category=”xy” per_page=”12″ colums=”4″] for example.

    Now I miss the sorting dropdown above the product lists, so the products cannot be sorted by our visitors and also there is no pagination button so I even have only the first 12 products.

    What I am doing wrong? How can I fix this?

    Sorry for my english, hope you understand my problem.
    I use woocommerce 3.2.5 and Woo germanized 1.9.6 but I think this is not a issue of germanized

Viewing 2 replies - 1 through 2 (of 2 total)
  • Shortcodes don’t produce the sorting options or pagination. That’s how they are.

    You can use your shop page. Most themes don’t have an option to show the category description on the shop page. This code might be able to add it in. It works for me but it may not work for your theme:

    // Show category description
    add_action( 'woocommerce_after_subcategory_title', 'show_cat_description', 12);
    function show_cat_description ( $category ) {
      $cat_id = $category->term_id;
      $prod_term = get_term( $cat_id, 'product_cat' );
      $description = $prod_term->description;
      echo '<div class="shop_cat_desc">'.$description.'</div>';
    }
    

    You can use the “My Custom Functions” plugin to add code snippets.

    When the customer clicks through to the category page which shows the products, usually the category description is shown at the top of the page. Again, that can depend on the theme.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. If you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sort dropdown on shortcode based product lists’ is closed to new replies.