Привет!
Мне нужно вывести в карточке товара (product) информацию о продавце (vendor info)
Телефон и Logo.
В www.mysite\components\com_jshopping\templates\default\product\product_default.php я добавил код из
www.mysite\components\com_jshopping\templates\default\vendor\info.php
<div id="agent">
<div id="agent_name">
<?php if ($this->product->vendor_info){?>
<div class="vendorinfo">
<?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->f_name;?>
</div>
<?php }?>
</div>
<div id="agent_photo">
<div class = "span6 vendor_logo">
<?php if ($this->product->vendor_info->logo!="") : ?>
<img src="<?php print $this->product->vendor_info->logo?>" alt="<?php print htmlspecialchars($this->product->vendor->shop_name);?>" />
<?php endif; ?>
</div>
</div>
<div id="agent_phone">
<table class="vendor_info">
<tr>
<td class="name">
<?php print _JSHOP_TELEFON ?>:
</td>
<td>
<?php print $this->product->vendor_info->phone ?>
</td>
</tr>
</table>
</div>
<div class="agent_other_product">
<?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?> <a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a>
</div>
<div id="agent_name">
<?php if ($this->product->vendor_info){?>
<div class="vendorinfo">
<?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->f_name;?>
</div>
<?php }?>
</div>
<div id="agent_photo">
<div class = "span6 vendor_logo">
<?php if ($this->product->vendor_info->logo!="") : ?>
<img src="<?php print $this->product->vendor_info->logo?>" alt="<?php print htmlspecialchars($this->product->vendor->shop_name);?>" />
<?php endif; ?>
</div>
</div>
<div id="agent_phone">
<table class="vendor_info">
<tr>
<td class="name">
<?php print _JSHOP_TELEFON ?>:
</td>
<td>
<?php print $this->product->vendor_info->phone ?>
</td>
</tr>
</table>
</div>
<div class="agent_other_product">
<?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?> <a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a>
</div>
Данные продавца (phone, logo) который назначен по-умолчанию - показывает. Создаю другого продавца - данные не показывает. помогите решить эту проблему?
agent__no.jpg
Joomla: Joomla! 3.5.1
JoomShopping: Version 4.12.2
JoomShopping: Version 4.12.2