Как добавить производителя проблему не решил, но зато есть альтернатива этому, в самом заказе выводить картинки. Один добрый человек выложил этот хак на своем сайте.
Вдруг кому пригодится
Добавляем столбец с изображением товара на страницу order.order_print админки
Открываем файл, в котором мы будем производить почти все действия:
administrator/components/com_virtuemart/html/order.order_print.php
1. Находим, примерно на 290 строке следующий код:
<th width="*" align="left"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_NAME')?></th>
и с лёгкой руки меняем на
<th width="*" align="left"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_IMAGE')?></th>
<th width="*" align="left"><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_NAME')?></th>
2. Чуть далее, строчек через 10, находим запрос, начинающийся на:
$qt = "SELECT order_item_id,product_quantity,order_item_name,order_item_sku,product_id,product_item_price,
и ВЕСЬ ЗАПРОС (а не только то, что указано выше, он занимает где-то 3-4 строки) меняем на следующий:
$qt = "SELECT order_item_id,product_quantity,order_item_name,order_item_sku,#__{vm}_order_item.product_id,product_item_price,
#__{vm}_product.product_parent_id,#__{vm}_product.product_full_image,#__{vm}_product.product_thumb_image,product_final_price, product_attribute, order_status
FROM `#__{vm}_order_item`
LEFT JOIN `#__{vm}_product` ON `#__{vm}_order_item`.`product_id` = `#__{vm}_product`.`product_id`
WHERE #__{vm}_order_item.order_id='$order_id' ";
3. Еще чуть ниже, буквально через 10-20 строчек ищем такой код:
<?php $ps_order_change_html->html_change_delete_item($dbt->f("order_item_id"))?>
<?php $ps_order_change_html->html_change_item_quantity($dbt->f("order_item_id"), $dbt->f("product_quantity"))?>
И сразу после указанных строк добавляем это:
<td><?
$niceseofullimg = $dbt->f("product_full_image");
$niceseothumbimg = $dbt->f("product_thumb_image");
$niceseoparentid = $dbt->f("product_parent_id");
if ((strlen($niceseoparentid) > 0) && (strlen($niceseothumbimg) == 0) && (strlen($niceseofullimg) == 0)) {
$dbniceseo = new ps_DB();$dbniceseo->query('SELECT product_full_image,product_thumb_image FROM `#__{vm}_product` WHERE `product_id`='.$niceseoparentid);
$niceseofullimg = $dbniceseo->f("product_full_image");$niceseothumbimg = $dbniceseo->f("product_thumb_image"); }
$niceseop = explode('administrator',$sess->url( $url ));
echo "<a href=\"javascript:void window.open('".$niceseop[0]."components/com_virtuemart/shop_image/product/".$niceseofullimg."', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=480,height=480,directories=no,location=no');\">
<img src=\"".$niceseop[0]."components/com_virtuemart/shop_image/product/".$niceseothumbimg."\" align=\"center\" width=\"75\" border=\"0\" /></a>"; ?>
</td>
4. Ну и заключительный момент, открываем administrator/components/com_virtuemart/languages/common/russian.php
И добавляем строку
'PHPSHOP_ORDER_PRINT_IMAGE' => 'Картинка',
Версия Joomla в данном хаке - 1.5, VirtueMart ветки 1.1.4