Получить бренд по ID:
{shopBrandViewHelper::getBrand($brand_id)}
Вывод брендов продукта:
{shopBrandViewHelper::getProductBrand($product)}
Вывод всех брендов:
{shopBrandViewHelper::getAllBrands()}
Вывод всех брендов с изображениями (с версии 1.1):
{shopBrandViewHelper::getAllBrandsWithImages()}
Получить картинки бренда определенного размера
{$brand->getImageUrl('970')}
Примеры использования:
1. Вывод ссылки на бренд в карточке товара
1. Вывод картинки-ссылки на бренд в карточке товара
{$product_brand = shopBrandViewHelper::getProductBrand($product)} {if $product_brand} <a href="{$product_brand.frontend_url}"> {if $product_brand.image_url} <img src="{$product_brand.image_url}" alt="{$product_brand.name|escape}"> {else} <span>{$product_brand.name|escape}</span> {/if} </a> {/if}
2. Вывод ссылок на все бренды
{foreach shopBrandViewHelper::getAllBrands() as $brand} <a href="{$brand.frontend_url}">{$brand.name|escape}</a> {/foreach}