eporedieis Posted August 19, 2013 Share Posted August 19, 2013 Hi, how can I show only a product feature (for example, the height)? I need to show it in the product and in the cart pages... Thank you!! Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 19, 2013 Share Posted August 19, 2013 Hi, in product page view, it must be appears in the "Data sheet" tab, if not, please check product.tpl: {if isset($features) && $features} <!-- product's features --> <ul id="idTab2" class="bullet"> {foreach from=$features item=feature} {if isset($feature.value)} <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} </ul> {/if} Regards 1 Link to comment Share on other sites More sharing options...
eporedieis Posted August 19, 2013 Author Share Posted August 19, 2013 Thanks Alexander, but I need to show only ONE feature in another part of the page. What could I change in un your code to show only the "height" feature? Thank youuuu!!!! Link to comment Share on other sites More sharing options...
eporedieis Posted August 19, 2013 Author Share Posted August 19, 2013 (edited) I found this but it doesn't work... {if $product.features} {foreach from=$product.features item=feature name=features} {if $feature.id_feature == 6} <span class="feature">{$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'}</span> {/if} {/foreach} {/if} Edited August 19, 2013 by eporedieis (see edit history) Link to comment Share on other sites More sharing options...
eporedieis Posted August 19, 2013 Author Share Posted August 19, 2013 Solved!! This is the correct code: {if isset($features) && $features} {foreach from=$features item=feature name=features} {if $feature.id_feature == 6} <span class="feature">{$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'}</span> {/if} {/foreach} {/if} See also this topic if interested. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 thanks for confirmation that the problem is solved. also for your solution and additional url. im going to mark this thread as [sOLVED] best regards 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