Jump to content

[SOLVED] if Statement with Specific Product ID


Guest

Recommended Posts

Hey guys,

 

I don't want to show the price on product-list for a specific few products, is it possible to use use a specific product id for an if statement using smarty? I played around a bit but didn't have any luck. :(

 

Thanks in advance,

 

eggo

Edited by Guest (see edit history)
Link to comment
Share on other sites

Ah! I had it before but I made a syntax error.

 

The code is

 

$product.id_product == 298

 

I did not realize two equal signs were needed.

 

Hope this helps someone else!

 

Best,

 

eggo

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...