wasyl_sz Posted May 20, 2013 Share Posted May 20, 2013 Hi, How can I display a list of features of the goods are in the shopping cart? I tried to add to the file shopping-cart-product-line.tpl code: {foreach from=$product.features item=feature name=features} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} but the features are not displayed. Please help me. Prestashop 1.5.4.1 P.S. sorry for my english Link to comment Share on other sites More sharing options...
wasyl_sz Posted May 21, 2013 Author Share Posted May 21, 2013 I solved this problem by adding a file shopping-cart-product-line.tpl this code: {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.value|escape:'htmlall':'UTF-8'}: {$feature.name|escape:'htmlall':'UTF-8'} {/if} {/foreach} {/if} Topic can be closed. Link to comment Share on other sites More sharing options...
vekia Posted May 21, 2013 Share Posted May 21, 2013 I solved this problem by adding a file shopping-cart-product-line.tpl this code: {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.value|escape:'htmlall':'UTF-8'}: {$feature.name|escape:'htmlall':'UTF-8'} {/if} {/foreach} {/if} Topic can be closed. thanks for solution, i really appreciate i marked this thread as solved regards 1 Link to comment Share on other sites More sharing options...
lovemakersPL Posted June 15, 2015 Share Posted June 15, 2015 Not working with Prestashop 1.6.0.14 Please Help Link to comment Share on other sites More sharing options...
Recommended Posts