Search code examples
prestashop

Multiple condition in tpl prestashop file


I have this situation in product page I check the url and condition in this case: {$string = $product.url} {$char = $string|strstr:"incisione-si"} {if !$configuration.is_catalog && $char} this run very good, but how can i add a second condition? example: "incisione_40-si" or "incisione_20-si"

thanks


Solution

  • Try:

    {if !$configuration.is_catalog && ($string|strstr:"incisione_20-si" || $string|strstr:"incisione_40-si")}