| Virtuemart Beispielprodukt Darstellung |
|
|
|
Für VM gibt es ein Modul, das ein oder mehrere Produkte zufällig darstellt. Leider passt die Positionierung nicht so, wie man es haben will. Zuerst dachte ich es wären folgende dateien verantwortlich: joomlapfad\modules\mod_virtuemart_randomprod\mod_virtuemart_randomprod.php Das sind auch die dateien des Moduls. Jedoch sind sie nicht für die komische Formatierung verantwortlich. Es ist diese Dateien, die schon etwas vorformatiert haben: joomlapfad\components\com_virtuemart\themes\default\templates\common\productsnapshot.tpl.php ------------------------------------------------- <!-- The product name DIV. --><?php if( $show_product_name ) : ?> <div style="height:77px; float:left; width: 100%;line-height:14px;"> <a title="<?php echo $product_name ?>" href="/an/<?php echo $product_link ?>"><?php echo $product_name; ?></a> <br /> </div> <?php endif;?> <!-- The product image DIV. --> <div style="height:90px;width: 100%;float:left;margin-top:-15px;"> <a title="<?php echo $product_name ?>" href="/an/<?php echo $product_link ?>"> <?php // Print the product image or the "no image available" image echo ps_product::image_tag( $product_thumb_image, "alt=\"".$product_name."\""); ?> </a> </div> <!-- The product price DIV. --> <div style="width: 100%;float:left;text-align:center;"> <?php if( !empty($price) ) { echo $price; } ?> </div> ----------------------------------------------- So gefällt es mir besser: --------------------------- <!-- The product name DIV. --> ---------------------------------- |



