how display producer logo in "category" view

hi,

How I display producer logo in category view (when I see all products)? I think the producter's logo for each product, for example next to the product name.

thx for help
Tagged:

Answers

  • ok, I have a partical solution (not nice)

    file: com-djcatalog2/items/default_items.php (joomla overide)

    after string:



    paste this:

    imageproducer;?>-logo" alt="<?php echo $item->producer;?>-logo" src="/media/djcatalog2/images/<?php
    $articleId = JRequest::getInt('item_id');
    $db =& JFactory::getDBO();
    $sql = "SELECT fullpath FROM #__djc2_images WHERE type='producer' AND item_id = ".intval($item->producer_id);
    $db->setQuery($sql);
    $fullpath = $db->loadResult();
    echo $fullpath; ?>" />
Sign In or Register to comment.