Jump to content

Add Attributes to product.name in category page (product-list)


nbg12

Recommended Posts

Hello Presta community!

Presta Version: 1.61.61

I simply want to add a some prod attributes (like color, length etc.) as an prefix to the product tile within

a category list view (product-list).

 

But the only thing i can find is in the product-item.tmpl this code block:

{$product.name|truncate:100:'...'|escape:'html':'UTF-8'}

 

After that I have checked the ProductController.php.

But i din't find anything which points me to the construction code section of an title of the product-listing.

Important: I only want to display the Prefixes to the product.name (title) on the product-list view (category) and NOT

on the product page itself.
 


- I also have checked the setting in the backend of my presta shop but there i can only set the length and general setting of my category page!

of my presta shop but there i can only set the length and general setting of my category page!

 

- I also have tried to find something in the product-item.tpl >> found nothing


- I also have tried to add or change something in the CategoryController.php (initContent section) >>> also no success



I would be really really happy if someone could give me any hints to fix that!

Thx
 

bye

Edit: At the moment there are already one prefix in the title of each product (in the category view), but i cant add another because i dont know which file is responsible for that.... :(

Edited by nbg12
forgot something (see edit history)
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...