Hi pixxer,
ich habe hier mal eine Schleife geschrieben.
Mit $this->product->getAttributes(),$this->product->getVariantAttributes() gibt dir Isotope Arrays aus wo nur die Attribute drin sind die der jeweilige Produkttyp hat.
PHP-Code:
<?php
foreach(array_unique(array_merge($this->product->getAttributes(),$this->product->getVariantAttributes())) as $attr){
if($this->$attr&&$this->$attr!==""){
if($attr=='published'||$attr=='type'){ continue;}
echo 'LABEL:'.$GLOBALS["TL_LANG"]["tl_iso_product"][$attr][0].'<br>';
//RAW gibt ID aus falls eine existiert, wie bei type
//entspricht auch $this->product->$attr und $this->arrData[$attr]);
echo 'RAW '.$attr.':'.$this->raw[$attr].'<br>';
if($attr=='images'){
echo $this->getGallery('images')->generateMainImage();
continue;}
if($attr=='price'){
echo $this->generatePrice();
continue;
}
echo 'GENERATE '.$attr.': '.$this->generateAttribute($attr) .'<br>';
}
}
Reicht das für dein Vorhaben oder fehlt da noch was?
Grüße
Lesezeichen