ags Posted July 20, 2015 Share Posted July 20, 2015 (edited) I want to modify the file configureproduct.tpl for the dropdown configurable option only to add a description directly under the dropdown menu on certain products. Is there a smarty else if statement I can use with product IDs to do this? I have 10 products total and want to add the description to only 3 of them. I was thinking something like: {if $filename eq "cart.php?a=confproduct&i=4"}<h2>text here</h2> {else} <h2></h2> {/if} I have some experience with smarty and php. Thank you for any help. Edited July 20, 2015 by ags 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 20, 2015 Share Posted July 20, 2015 you could use... {if $productinfo.pid eq "45"}<h2>text here</h2>{/if} or as you have 3 products to check for... {if $productinfo.pid eq "45" or $productinfo.pid eq "46" or $productinfo.pid eq "47"}<h2>text here</h2>{/if} you can get the pid value for each product from the "Links" tab in Products/Services. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.