I would like to add conditions for specific category in order-confirmation.tpl
I can show only the default category like this :
{if $product.id_category_default == 374} Yippee-ki-yay {/if}
But i must to do with associated categories like this :
{if in_array(374,Product::getProductCategories($product.id|intval))}Yippee-ki-yay{/if}
Thx for everything
Generate a new module and implement the orderConfirmation hook:
And you can use the 'myCustomFlag' variable in the order-confirmation.tpl