Speedsta Posted December 4, 2022 Share Posted December 4, 2022 (edited) 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 December 4, 2022 by Speedsta (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted December 6, 2022 Share Posted December 6, 2022 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 More sharing options...
Speedsta Posted December 6, 2022 Author Share Posted December 6, 2022 Thanks JBW. I'll give that a try. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now