JokerRoader Posted December 28, 2018 Share Posted December 28, 2018 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 More sharing options...
olkuznw Posted December 29, 2018 Share Posted December 29, 2018 If you are updating product.tpl try to use this $product->id Link to comment Share on other sites More sharing options...
El Patron Posted December 30, 2018 Share Posted December 30, 2018 there are 'plenty' of existing modules that have video by product/category etc. probably some free ones as well.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now