Woocommerce_before_shop_loop related
Briefly

To display products by category on the shop page, I modified the archive-product.php file in my child theme, looping through product categories and showing products in separate sections.
The current issue is that while the shop page displays products by categories, clicking a category in the navigation does not filter products accordingly, showing all products instead.
I want to implement an if condition that checks whether a category is selected. If a category is clicked, the default template code should execute instead of the modified code.
The challenge is crafting the logic within the custom code to seamlessly switch between the modified display of products by category and the default behavior for category-specific views.
Read at SitePoint Forums | Web Development & Design Community
[
|
]