Как Сделать Такую Страницы Товара (Вендор)?

Как сделать такую визитную карточку вендора на странице товара?

И можно ли вывести например телефон, город вендора?

Создайте HTML блок с поддержкой SMARTY и следующим кодом

{if $product.company_id}
    {$company_data = $product.product_id|fn_get_company_data}
    {$logos = $product.company_id|fn_get_logos}
    {$company_data|fn_print_r}
    {$logos|fn_print_r}
{/if}

затем посмотрите, какая информация в полученных массивах и допилите вывод под свои нужды

P.S. Скорее всего понадобится отключение кэша для блоков данного типа

http://forum.cs-cart.com/topic/43949-turn-off-cache-of-perticular-tpl/#entry244840

И как допилить не понятно :)

+ не вижу оператора для вывод company_name.

В идеале нужно вывести такие поля как:

Город Вендора

Телефон Вендора

Логотип

Название Вендора

Ссылку на товары вендора

Дата регистрации вендооа

Отлично подходит блок "Информация о продавце" на странице "Магазин продавца". Только на странице "Товар" этот блок не работает.

Пардон, в это строке ошибка

{$company_data = $product.product_id|fn_get_company_data}

должно быть

{$company_data = $product.company_id|fn_get_company_data}

Супер!

f1wZsgk.png

Поделитесь информацией как это все привести в нужный вид. Не буду Вас просить расписывать, и так хорошо помогли.

Например обрамить

[company]

[phone]

И при этом отключить вывод ненужных полей.

например, вместо строки

{$company_data|fn_print_r}

укажите

{$company_data.company}

{$company_data.phone}

И при этом отключить вывод ненужных полей.


Закомментировать? Но для роботов все ровно текст будет видим.
И как вставить путь логотипа компании?

{$logos_image.relative_path}

Не подходит.

Все, с выводом разобрался, просто убрал строку и все.

Логотип под вопросом :)

Попробуйте

{include file="common/image.tpl" images=$logos.theme.image image_width="120" class="ty-company-image"}

Благодарен! Все здорово.

Здравствуйте!

Мы рады представить вам наш новый модуль Vendor Background Image. Он позволяет добавлять фоновое изображение для страниц профиля и каталога вендора.

Menya tozhe nado potestirowat eto, spasibo fsem!

Ya tozhe zdelal, no kokta ne smog takzhe v izobrazhenie. navernoye trebuetsya css kodi. sravno spasibo!

{if $product.company_id}
    {$company_data = $product.company_id|fn_get_company_data}
    {$logos = $product.company_id|fn_get_logos}
	

{$company_data.company}

{include file="common/image.tpl" images=$logos.theme.image image_width="120" class="ty-company-image"}
{$company_data.phone}
{/if}

Ya tozhe zdelal, no kokta ne smog takzhe v izobrazhenie. navernoye trebuetsya css kodi. sravno spasibo!

{if $product.company_id}
    {$company_data = $product.company_id|fn_get_company_data}
    {$logos = $product.company_id|fn_get_logos}
	

{$company_data.company}

{include file="common/image.tpl" images=$logos.theme.image image_width="120" class="ty-company-image"}
{$company_data.phone}
{/if}

It works on my local installation

http://prntscr.com/ii58ae

http://prntscr.com/ii58fy

Yes, it works on my localhost too.

but what I am saying is, I couldn't got the result view like on the first post on this topic. probably there will need to add extra css code. for example they put it in side the box. on the same time, the "free shipping" text also changed it's spaces.

Thanks!

Yes, it works on my localhost too.

but what I am saying is, I couldn't got the result view like on the first post on this topic. probably there will need to add extra css code. for example they put it in side the box. on the same time, the "free shipping" text also changed it's spaces.

Thanks!

Of course, additional CSS changes are required.