Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
関連製品エリアに製品のサムネイルのみを表示する方法、現在のコードではリンクも表示されています。つまりimage、製品名の href タイトルのタグです。サムネイルだけ表示したい
image
<?php foreach($this->product->customfieldsRelatedProducts as $field) { echo $field->display; } ?>
コードが役立つと思います。
<?php $image_dir = JURI::root()."images/"; foreach($this->product->customfieldsRelatedProducts as $field) { echo $field->display; ?> <img src="<?php echo $image_dir.$field->image; ?>" alt="<?php echo $field->title ?>" /> <?php } ?>