Jump to content

Edit History

dario68

dario68

I solved it myself.

for someone who might need it: add this code to your product list template file:

{foreach from=Product::getProductCategoriesParent($product.id_product, [add here the book authors category ID]) item=cat}
<a href="{$link->getCategoryLink({$cat.id_category})}" title="{$cat.name}">{$cat.name}{if !$cat@last},{/if}</a>
{/foreach}

{if} statement is in case if a book has more than one author

this solution works in PS 8.2

dario68

dario68

I solved it myself.

for someone who might need it: add this code to your product list template file:

{foreach from=Product::getProductCategoriesParent($product.id_product, [add here the book authors category ID]) item=cat}
<a href="{$link->getCategoryLink({$cat.id_category})}" title="{$cat.name}">{$cat.name|escape:'htmlall'|nl2br nofilter}{if !$cat@last},{/if}</a>
{/foreach}

{if} statement is in case if a book has more than one author

this solution works in PS 8.2

×
×
  • Create New...