Jump to content

Display features in the product listing page 1.5.4.x


ornusweb

Recommended Posts

hello,

 

My shop is setup on Prestashop version 1.5.4.1.

I am trying to display the feature and values in the product listing page.

 

I have till now tried this:

 

added the below code to the product-list.tpl

{if isset($features) && $features}
  {foreach from=$features item=feature}
    {if isset($feature.value)}
	<span>{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}</span>
    {/if}
  {/foreach}
{/if}

within the <div class="content_price">

 

However it doesn't work!

 

After reading similar topics I believe that this should work.

 

I checked the product.php class file and found that in the getProductProperties the below line of code is already present, which should allow me to make the above hack in product-list.tpl.

$row['features'] = Product::getFrontFeaturesStatic((int)$id_lang, $row['id_product']);

Any help would be appreciated by this noob!

Edited by ornusweb (see edit history)
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...