Jacob
Jacob

Reputation: 192

Prestashop: Add a single product attribute on the product list / product page

I'm working on a shoe store. Each shoe has some a product attributes: the brand, size, model,... However each shoe always only has 1 brand. So i want to display the brand attribute beneath the product name in the product list.

I added a screenshot for more clarity. https://i.sstatic.net/ru3C4.jpg You have the product name 'boots / enkellaarzen'. Under that you have the brand name 'baci'. This name has to be dynamicly 'retrieved'.

Is this possible? If so, how do i do this?

Tldr: what is the shortcode to retrieve a product attribute in prestashop?

Upvotes: 0

Views: 496

Answers (1)

TheDrot
TheDrot

Reputation: 4337

If it's a brand wouldn't it make more sense that the brand is manufacturer and not attribute?

You can set it in the product tab Associations at the bottom and display it in the template product-list.tpl with

{$product.manufacturer_name|escape:'htmlall':'utf8'}

Upvotes: 1

Related Questions