Komijo Posted September 9, 2014 Share Posted September 9, 2014 Hi I wonder if it possible to add data sheet to product list. I past hole code from data sheet from product.tpl to product-list.tpl but that wasnt work. Sorry for my english and ask can You help me guys? Link to comment Share on other sites More sharing options...
vekia Posted September 10, 2014 Share Posted September 10, 2014 use this code: {if isset($product.features)} <div class="features"> {foreach from=$product.features item=feature} <div>{$feature.name}: <span>{$feature.value}</span> {/foreach} </div> {/if} Link to comment Share on other sites More sharing options...
Komijo Posted September 10, 2014 Author Share Posted September 10, 2014 (edited) It's wasn't work with your code. But I changed code a little bit and now it's work. <!-- product's features --> {if $product.features} {foreach from=$product.features item=feature name=features} <span class="feture">{$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'}</span> {/foreach} {/if} <!-- product's features --> Ok, Your code working to if you change a <p class="product-desc" itemprop="description"> {$product.description_short|strip_tags:'UTF -8'|truncate:350:'...'} for <div class="product-desc" itemprop="description"> {$product.description_short|strip_tags:'UTF-8'|truncate:350:'...'} Edited September 10, 2014 by jprzezdziek (see edit history) Link to comment Share on other sites More sharing options...
امیر Posted May 8, 2017 Share Posted May 8, 2017 i can display feautry by ID Link to comment Share on other sites More sharing options...
امیر Posted May 10, 2017 Share Posted May 10, 2017 you dont know? 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