Hi zusammen,
wie kann ich denn erreichen, dass in der Artikelliste das Bild der ersten
Variante angezeigt wird, wenn der Vaterartikel kein Bild enthält?
Hab mal folgendes versucht, leider hat das nicht zum gewünschten Ergebnis
geführt:
[{if $product->getPictureUrl(1) == "/out/pictures/0/nopic.jpg"}][{$product->getPictureUrl(2)}][{else}][{$product->getPictureUrl(1)}][{/if}]
Vielen Dank und allerbeste Grüße vom Chris
Hi nochmal,
zumindest funktioniert jetzt schon mal folgende Abfrage:
[{if $product->oxarticles__oxpic1 == "1/nopic.jpg"}]
<img src="/out/pictures/[{$product->oxarticles__oxthumb1->value|substr:0:-4}]_th.jpg" alt="">
[{/if}]
Allerdings komme ich nicht an das Thumb der ersten Variante ran.
Da gibts doch bestimmt irgendwas, oder?
Allerbeste Grüße vom Chris
Sodalla,
schön wärs gewesen, wenn die Funktion getThumbnailUrl() in oxarticle.php
Parameter nehmen würde, die es erlauben ein Thumbnail einer Variante zu selektieren.
public function getThumbnailUrl()
{
if ( $this->_isFieldEmpty( "oxarticles__oxthumb" ) ) {
//generating new images if needed
if ( !$this->_hasGeneratedImage( 1 ) ) {
$this->_generateImages( 1 );
}
}
$sPic = "0/" . $this->_getThumbnailName();
return $this->getConfig()->getPictureUrl( $sPic, $this->isAdmin() );
}
Hat das von Euch schon mal jemand gebraucht?
Allerbeste Grüße vom Chris