Jump to content

Show video only if product_id == 40


JokerRoader

Recommended Posts

Hey! I am trying to write a script that will show video only on some product pages.

i have this: 

 {if $id_product = 39}<iframe width="800" height="400" src="https://www.youtube.com/embed/EXAMPLE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>{/if}

But i cant figure the right variable for product id, since it's not working. Any idea?

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