The title "0 other products in the same category" appears because just above the code line that you marked, there is a check -for the title only- like this:
{if $categoryProducts|@count > 1}
{$categoryProducts|@count} {l s='other products in the same category' mod='fieldproductcates'}
{else}
{$categoryProducts|@count} {l s='other product in the same category' mod='fieldproductcates'}
{/if}
As you can see at the demo,
http://demo.fieldthemes.com/ps_vela17/default/en/fashion/2-7-blouse.html#/1-size_-s/11-color_-black
there is a section which shows "other products in the same category" using the "Field product cate" module.
Can I disable it for 0 products using a condition and, if yes, can you show me how?
Hi Louis,
#Can I disable it for 0 products using a condition
-> What did you used a condition? and Where?
Best Regards,
Criss - FieldThemes
Hi. I haven't used anything yet.
I was wondering if there could be a {condition} to add to the "Field product cate" module template to check for 0 products.
But any solution you can recommend is welcome.
Hi Louis,
In this module "Field product cate" it has helped you check that.
http://prntscr.com/fclff1
Best Regards,
Criss - FieldThemes
Thank you for showing me that.
The title "0 other products in the same category" appears because just above the code line that you marked, there is a check -for the title only- like this:
So I just need to remove the {else} part.
Problem solved. :)
Hi Louis,
That's right...
Thank you and have a nice day!
Best Regards,
Criss - FieldThemes