Display Seller Name Into "featured Vendors Block "

Hello i would like to tweak "Featured Vendors block" to display

  • Name
  • Logo
  • Product count

i already try differents solutions on editing "featured_vendors.tpl " or "companies_list.tpl"

like

{if $company_data}
{$company_data.company}
{elseif $company_id}
{$company_id|fn_get_company_name}
{/if}

or

{$company_id|fn_get_company_name}
{$company_id|fn_get_company_address}
{$company_id|fn_get_company_city}
{$company_id|fn_get_company_phone}

but it does not work on these .tpl

any idea ?

thx for your help

ok done !, i just needed to edit

/templates/blocks/vendor_list_templates/featured_vendors.tpl

with

{** block-description:vendor_logos_and_product_count **}

{$show_location = $block.properties.show_location|default:"N" == "Y"}
{$show_rating = $block.properties.show_rating|default:"N" == "Y"}
{$show_vendor_rating = $block.properties.show_vendor_rating|default:"N" == "Y"}
{$show_products_count = $block.properties.show_products_count|default:"N" == "Y"}

{$columns=$block.properties.number_of_columns}
{$obj_prefix="`$block.block_id`000"}

{if $items}
{split data=$items size=$columns|default:"5" assign="splitted_companies"}
{math equation="100 / x" x=$columns|default:"5" assign="cell_width"}



{strip}
{foreach from=$splitted_companies item="scompanies" name="scomp"}
{foreach from=$scompanies item="company" name="scompanies"}

{if $company}
{if $company.logos}
{$show_logo = true}
{else}
{$show_logo = false}
{/if}

{$obj_id=$company.company_id}
{$obj_id_prefix="`$obj_prefix``$company.company_id`"}
{include file="common/company_data.tpl" company=$company show_links=true show_logo=$show_logo show_name=true show_location=$show_location}



{hook name="companies:featured_vendors"}

{$logo="logo_`$obj_id`"}
{$smarty.capture.$logo nofilter}


{assign var="company_name" value="name_`$obj_id`"}
{$smarty.capture.$company_name nofilter}


{include file="views/companies/components/product_company_data.tpl" company_name=$product.company_name company_id=$product.company_id}

{$location="location_`$obj_id`"}
{if $show_location && $smarty.capture.$location|trim}

{/if}

{$rating="rating_`$obj_id`"}
{if $smarty.capture.$rating && $show_rating}

{$smarty.capture.$rating nofilter}

{/if}


{$vendor_rating="vendor_rating_`$obj_id`"}
{if $smarty.capture.$vendor_rating && $show_vendor_rating}

{$smarty.capture.$vendor_rating nofilter}

{/if}


{$products_count="products_count_`$obj_id`"}
{if $smarty.capture.$products_count && $show_products_count}
{$smarty.capture.$products_count nofilter}
{/if}


{/hook}

{/if}

{/foreach}
{/foreach}
{/strip}

{/if}

Do you know where "$smarty.capture.$location" is defined. I need to add a vendor state to featured vendors but I cannot find any way how to do it. It seems that location string is built somewhere else and it is just coming as a vendor name+,+country code.

I need to add a country state in between.