Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1353560

    Hi Team,
    I need a view of the product archive, which shows only all products of the upper and lower categories,
    but not the subcategories themselves. I have tried the Customizer and set it to “Subcategory & Products”,
    both for Enfold and for WooCommerce, both have no effect?! What can I do? Thank you and regards
    Mike

    #1353752

    Hey Mike61,

    Thank you for the inquiry.

    This should be possible with the default Woocommerce shortcode.

    [product_categories parent="0"]
    

    Setting the parent attribute to 0 should display the top level category only. Please check the documentation below for more info about the shortcode.

    // https://woocommerce.com/document/woocommerce-shortcodes/#section-13

    Best regards,
    Ismael

    #1353758

    Hi Ismael,
    this shortcode works with any page / post, but I nedd the org. achive because the filter plugin works with this only.
    Any other ideas?
    Best regards
    Mike

    #1353863

    Hi,

    but I nedd the org. achive

    Would you mind explaining it a bit? Are you trying to display the parent categories to a page? The shortcode that we suggested above should help.

    If you are using another plugin, asking the plugin authors will help.

    Best regards,
    Ismael

    #1353873

    Hi,
    what i mean is that i use the archive template for products. There no shortcuts can be used, because they can not be edited with an editor?
    The shortcut I could use if I use a page and in it with your editor used an element for product listing. But this is not possible, because your elements are not coded so that they support filter functions properly – as the archive template does. I hope that was now more understandable? Link to the page see below. Here only the categories are displayed, but not the products that are in them.
    Best Regards
    Michael

    #1354099

    Hi,

    This is possible but it will require modifications that are beyond the scope of support. You will have to directly modify or override the plugins/woocommerce/templates/content-product-cat.php file in order to display the actual products of a parent category instead of the subcategory thumbnails.

    This documentation might help.

    // https://woocommerce.com/document/template-structure/

    Thank you for your patience.

    Best regards,
    Ismael

    #1354100

    Hi,

    UPDATE: This might be possible without editing the file. Please go to the Appearance > Customize panel, look for the Woocommerce > Product Catalog tab, then select the first or third option in the Category display settings.

    Best regards,
    Ismael

    #1354361

    Hi Ismael,

    I wrote at my first post “… I have tried the Customizer and set it to “Subcategory & Products”,
    both for Enfold and for WooCommerce, both have no effect?! …” Why do I have the feeling that my question was not really read?
    Because this is exactly my question! Why do these settings of the Customizer not take effect when using the Enfold theme?

    Best regards
    Mikew

    #1355006

    Hi,

    Sorry for the confusion and the delay. Please provide the login details in the private field so that we can check the product settings. Did you modify any of the product templates?

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.