Quote:
Originally Posted by qrichou
Hi,
Does anyone know if you can use like with smarty?
We want to say {if $products[product].productcode like "C-"}do this{else}dothis{/if}
Thanks
|
Like?
Here are the smarty functions rules:
http://www.smarty.net/manual/en/language.function.if.php
If you use numerical productID as your var, then you can easily constrain an if to give you the correct results. Why not use the numerical ID? Am I missing what you're trying to do here?