Need to display 'no products found for subcategory (child) of Parent
-
Wow! This plugin is amazing. I have come a long way since first trying it two weeks ago. I really like it.
I tried to find something in the forum and also looked in the documentation and tried a few things, but can not seem to find a solution.
I want to display the message ‘No products for this subcategory (child)’ when there are no products for a specific child category.
I tried the following code but it did not work. I am not sure what to do. Any help would be much appreciated.
‘[for each=”product_cat” parents=”true” term=”brands”]
[if children]
[-for each=”child”]
<font color=”214B63″><b>[-each]</b></font> [loop type=”product” columns=”1″ orderby=title] <b>[field title]</b> [field thumbnail-link] [/loop] [/-for]
[else]
No products
[/if] [/for]’Thank you.
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Need to display 'no products found for subcategory (child) of Parent’ is closed to new replies.