Nathalie W Posted June 10, 2015 Share Posted June 10, 2015 Hi I've been searching around for an answer but can't find any. So you're my last hope:) I'd like to show an image anywhere in my product.tpl based on a certain feature value. Example: I have this "Feature name1" -> "Feature value1" If a product have "Feature value1" show image Is there any solution for this? Thanks a lot! // Link to comment Share on other sites More sharing options...
pishkus Posted June 10, 2015 Share Posted June 10, 2015 Try this: {foreach from=$features item=feature} {if $feature.value eq 'your-value'} <img src="/path/to/your/image/" /> {/if} {/foreach} 1 Link to comment Share on other sites More sharing options...
Nathalie W Posted June 10, 2015 Author Share Posted June 10, 2015 Thanks mate! I can gladly confirm that it works perfectly 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