Cosmi Posted August 6, 2010 Share Posted August 6, 2010 Hello folks,I'm developing a new theme for Prestashop and I want to customize it a little bit more.So, what I'm trying to do is to display a specific feature value in the product pageFor example:I have this list of feature/values on my product:Type: CarMake: AudiModel: A4And in my page I want to display this:Page titleAudiType: CarMake: AudiModel: A4As you can see, I need to display the value of the feature "Make" in a .How can I display just a single feature value in the product page (not all features)?Thank you!Cosmi Link to comment Share on other sites More sharing options...
rocky Posted August 7, 2010 Share Posted August 7, 2010 Add code like the following to product.tpl in your theme's directory to add a span with the value of the "Make" feature: {foreach from=$features item=feature} {if $feature.name|escape:'htmlall':'UTF-8' == 'Make'} {$feature.value|escape:'htmlall':'UTF-8'} {/if} {/foreach} Link to comment Share on other sites More sharing options...
Cosmi Posted August 7, 2010 Author Share Posted August 7, 2010 Thank you! That's very useful. Link to comment Share on other sites More sharing options...
klixseo Posted March 3, 2012 Share Posted March 3, 2012 Its useful when we have one value of the feature. Please tell what should i do when one feature have multiple values in drop down and I want to display one of them which is selected. Like--- I have different painting technics and I have a feature "technics" and it have almsot 8 technics. When I enter a new product then I selected one technic from the features. So now I want to display that selected technic in product page. Please help me. Link to comment Share on other sites More sharing options...
LukeyB Posted March 19, 2012 Share Posted March 19, 2012 Brilliant Rocky, exactly what I was after! Expanding on this idea a bit I have a quick question if you wouldn't mind. Is there a way I am able to remove/exclude a specific feature from a list? The goal is to move a field named "Artist" from the products features list and up beside the product title. Please let me know if you'd like to see exactly what I mean please let me know and I'll PM you a link. First post! Booyah! 1 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