VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: old_fritz on August 28, 2012, 22:29:42 PM

Title: how to show up shipment logo in category view?
Post by: old_fritz on August 28, 2012, 22:29:42 PM
hi there,

building up a price comperison page.
in the category view i changed the add to cart button to a link button to the vendors page.
so i just want to show up a logo from linked vendor, beside the link button.

i used the shipment logo from custom fields for that case. but it is just shown up in the productdetail view.
so how to bring that logo in the category view?

any idea?

thanks in advance!


chris
Title: Re: how to show up shipment logo in category view?
Post by: old_fritz on August 28, 2012, 22:47:29 PM
sorry forget:

joomla 2.5.6
VM 2.0.10
Title: Re: how to show up shipment logo in category view?
Post by: old_fritz on September 04, 2012, 23:29:48 PM
current productdetail_view:

(http://productdetail_view.jpg)




current category_view:

(http://category_view.jpg)

[attachment cleanup by admin]
Title: Re: how to show up shipment logo in category view?
Post by: old_fritz on September 12, 2012, 23:00:02 PM
... thank you, thank you - for that great responce!!!   :(

anyway, for all who fight with the same problem, i found the solution. it was hide in an other thread:

you have to insert some code in the category_php behind:
Quote// Show Products ?>
      <div class="product floatleft<?php echo $Browsecellwidth . $show_vertical_separator ?>">
         <div class="spacer">

insert this:

Quote<?php $custom_title = null;
if (!empty($product->customfields)) {
foreach ($product->customfields as $field) {
if ($field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0
continue;
if ($field->display) { ?>
<span class="product-field-display"><?php echo $field->display ?></span>
<?php } ?> <?php } ?> <?php }  ?>



really, it works perfect!!!
8)