Jump to content

Edit History

FL45H

FL45H

{foreach from=Product::getProductCategories($product.id) item=cat}
	{if $cat > 2}
		{assign var='current_cat' value=Category::getCategoryInformations(array($cat))}
		<li><b><a href="{$link->getCategoryLink({$cat})}" title="{$current_cat[{$cat}]['name']}">{$current_cat[{$cat}]['name']}</a></b></li>
	{/if}
{/foreach}

Product categories in the Product Details

Ive been using the above code on v1.7.x however I am upgrading to v9 now, unfortunately getCategoryInformations() has been removed now. https://devdocs.prestashop-project.org/9/modules/core-updates/8.0/#removed-methods

Whats the replacement function/code?

FL45H

FL45H

				{if $cat > 2}
					{assign var='current_cat' value=Category::getCategoryInformations(array($cat))}
					<li><b><a href="{$link->getCategoryLink({$cat})}" title="{$current_cat[{$cat}]['name']}">{$current_cat[{$cat}]['name']}</a></b></li>
				{/if}
			  {/foreach}

Product categories in the Product Details

Ive been using the above code on v1.7.x however I am upgrading to v9 now, unfortunately getCategoryInformations() has been removed now. https://devdocs.prestashop-project.org/9/modules/core-updates/8.0/#removed-methods

Whats the replacement function/code?

×
×
  • Create New...