mrio1212 Posted August 31, 2015 Share Posted August 31, 2015 Hello is it possible to add product features in the table in history order details? I managed to add them in cart summary but the same code doesn't work for history page. Thank in advance Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2015 Share Posted August 31, 2015 what is your prestashop version? it is 1.6.x with default-bootstrap theme? Link to comment Share on other sites More sharing options...
mrio1212 Posted August 31, 2015 Author Share Posted August 31, 2015 yes it's 1.6.x default-bootstrap theme Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2015 Share Posted August 31, 2015 try with code below :-) {foreach from=Product::getFeaturesStatic($product.id) item=feature} <div> {$feature.name}: <span>{$feature.value}</span> </div> {/foreach} Link to comment Share on other sites More sharing options...
mrio1212 Posted August 31, 2015 Author Share Posted August 31, 2015 OK thank you but I took this code, however. {assign var='features' value=Product::getFrontFeaturesStatic($cookie->id_lang, $product.id_product)} {if isset($features) && $features} {foreach from=$features item=feature} {if isset($feature.value)} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} <br> {/if} {/foreach} {/if} I didn't notice that I was pasting between wrong IF clause Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2015 Share Posted August 31, 2015 so the code above works? function getFrontFeaturesStatic is wrong probably, getFeaturesStatic is proper one Link to comment Share on other sites More sharing options...
mrio1212 Posted August 31, 2015 Author Share Posted August 31, 2015 The code that I've pasted works in order-details.tpl file. When I tried getFeaturesStatic with id as an argument it didn't work. Thank you 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