Jump to content

[solved] Features in the cart Prestashop 1.5


Recommended Posts

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

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

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

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...