Jump to content

[SOLVED] Product.tpl Product if Statement Smarty?


Guest

Recommended Posts

Hey guys,

 

Hope you are all doing well. :)

 

{if $product.id_product != 118}
Text1
{else}
Text2
{/if}
 
Could anyone shine some light onto what I am I doing wrong with this statement? 
 
Thanks in advance,
eggo
 
Edited by Guest (see edit history)
Link to comment
Share on other sites

Hey vekia,

 

I have made those changes but if I add that to product.tpl it still gives me blank page. Any ideas? 

 

{if $product->id_product != 118}
<p> text1 </p>
{else}
<p> text2 </p>
{/if}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...