Thank you again Pro
I tried
<?php
//Pro Hack PDF to position
if (!empty($product->images_name) and count ($product->images_name)>1) {
?>
<div class="additional-images">
<?php
// List all Images
if (count($product->images_name) > 0) {
foreach ($product->images_name as $image) {
// Displays ONLY pdf files
if ($image->file_extension ==pdf) {
echo '<div class="floatleft"><strong> Télécharger la brochure : </strong> <br>' . $image->displayMediaThumb('class="product-image"', true, 'class="modal"', true, true) . '</div>'; //'class="modal"'
}}
// PRO DONE, added the close tag
}
?>
<div class="clear"></div>
</div>
<?php
} ?>
Also tried this :
<?php
//Pro Hack PDF to position
if (!empty($images->product_name) and count ($images->product_name)>1) {
?>
<div class="additional-images">
<?php
// List all Images
if (count($images->product_name) > 0) {
foreach ($images->product_name as $image) {
// Displays ONLY pdf files
if ($image->file_extension ==pdf) {
echo '<div class="floatleft"><strong> Télécharger la brochure : </strong> <br>' . $image->displayMediaThumb('class="product-image"', true, 'class="modal"', true, true) . '</div>'; //'class="modal"'
}}
// PRO DONE, added the close tag
}
?>
<div class="clear"></div>
</div>
<?php
} ?>
also tried this :
<?php
//Pro Hack PDF to position
if (!empty($product->images) and count ($product->images)>1) {
?>
<div class="additional-images">
<?php
// List all Images
if (count($product->images) > 0) {
foreach ($product->images as $image) {
// Displays ONLY pdf files
if ($image->file_extension ==pdf) {
echo '<div class="floatleft"><strong> Télécharger la brochure : </strong> <br>' . $image->displayMediaThumb('class="product-image"', true, 'class="modal"', true, true) . '</div>'; //'class="modal"'
}}
// PRO DONE, added the close tag
}
?>
but always nothing to display
Best regards
Amorino