Skip to main content

Categories display

Comments

3 comments

  • KC George

    Hi Alberto,

    Please use the below shortcode to display the main product categories. You can add the Brizy Shortcode element to a page and paste this shortcode.

    [product_categories parent="0"] 

    You can read more about WooCommerce shortcodes here https://woo.com/document/woocommerce-shortcodes/

    0
  • Alberto Russo

    Hi ! Thanks ! It worked fine !

    Now I have another problem: If a user enters a top category page, in some situations it can have sub-categories in our store.

    In those cases, we want to show the user a list of subcategories for the top level category chosen, in top of the products from that category which we can show using a templates with all products from a category.

    How can we achieve that ? Thanks !

    0
  • KC George

    Hi Alberto,

    When selecting a main category, if you would like to display a list of sub categories, you will have to develop a separate Brizy Template for each such category. In the Display Conditions, you can select the category name under the heading "Any child of category'    

    In a Brizy template for a specific category, you can display the sub categories using the below shortcode where 19 is the category ID. 

    [product_categories parent="19"]

    You can find the category ID of a specific category from the URL when editing the category in your WordPress Dashboard. Here is an example of a the URL when editing a product category. 

    wp-admin/term.php?taxonomy=product_cat&tag_ID=19&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_cat%26post_type%3Dproduct 

    If you want us to make a screen recording demonstrating how to do this, please let us know. 

    0

Please sign in to leave a comment.