I am going to edit the .tpl that generate delivery slips in prestashop.
I want to check if one product in the order contains a particular word in title. If the title contains that word, then I will generate a table in html
After a simple research, I've find that some users used strpos
to do that, but my edit doesn't work:
{if strpos($order_detail.product_name, 'word') !== false}
...
{/if}
Where I'm wrong?