Jump to content

Product features in cart summary - Prestashop 1.7.6.4


Recommended Posts

Hey guys,

any idea how to display product features in cart summary?

	{foreach from=$product.grouped_features item=feature}
            <dt class="name {$feature.name}"><span>{$feature.name}</span></dt>
            <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>
	{/foreach}

Above code works only in product lists. In cart summary it returns nothing.

I would like to add features here: /themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

Anyone can help?

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 4 months later...
  • 3 weeks later...
On 1/19/2021 at 7:49 PM, Jonathan Goetz said:

Hi, Same Here,
did you find an answer ?

Try this:

	{assign var=features value=Product::getFrontFeaturesStatic($language.id,$product.id)}
   {foreach from=$features item=feat}
    {$feat.name} : {$feat.value} <br>
   {/foreach}

 

Share this post


Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More