Perch Shop - Show Only Products from Top Level of Current Category (not sub categories)

  • Hello,


    I would like Perch Shop to show only the products from the current category (excluding products within it's sub categories)


    I have the following code:


    PHP
    1. <?php
    2.      perch_shop_products([
    3.      'category' => $fullcatPath,
    4.     'template' => 'products/views/product_list_categorised.html',
    5.     ]);
    6. ?>

    $fullcatPath provides a path such as: 'products/access-flood-protection/'

    My issue is that it is showing all of the products within the sub categories of 'access-flood-protection' as well - I essentially only want it one flat level.


    I have a template giving me the id of the current category, and I can see from the showall that there is a category array assigned to the product, I can't work out how to filter the results using the two pieces of information.

  • Hello Hussein,


    Any ideas why re-ordering the products using pipit catalog would initially break the product category filtering.


    Following a re-order in product catalog, all the products disappear, and only show again once each product is saved?


    Even a basic category declaration does not show the products:


    Code
    1. perch_shop_products([
    2. 'category' => $fullcatPath,
    3. ]);


    Yet a unfiltered, uncategorised product call will show them.