Jump to content

Show Product name as a combination with an indiviual product attribute


Recommended Posts

Hi there,

I ran into a problem when setting up my articles.

I want to setup the products in a way that the product name includes a position number (which is stored in the Articles Details)

So instead of showing only the product name I want to show (Position Number - Product name)

I also know where the defintion for the name is in the tpl files, but I don't understand how to get the "article.position" nor do I know

how to combine the name properly.

So it really would help if someone could tell me how to access the article values and how to combine 2 values to the shown name.

Thanks in advance.

Sam

I am using prestahop 1.7.8

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

  • Speedsta changed the title to Show Product name as a combination with an indiviual product attribute

If the position number is stored in a product feature you need to loop it and add at the position of the product name e.g.

          {foreach from=$product.grouped_features item=feature}
            {if $feature.name == 'position'}
                $feature.name
            {/if}
          {/foreach}

Link to comment
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...