I'm currently using
{assign var="var1" value=false}
{assign var="idCategory" value=37}
{foreach from=$cart.products item=product}
{if $product.id_category_default == $idCategory}
{assign var="var1" value=true}
{/if}
{/foreach}
with all of the products using said category as their main category. I however would like to use their final, aka. the deepest of the category tree, as their default category. Which in that case would force me to turn it into an array with all the different category ideas.
Thus, I much rather would just that the if statement would be true if any of the products categories equals the value.