THELIA Forum

Welcome to the THELIA support and discusssion forum

Offline


Bonjour,

Pour certains produits, il peut n'y avoir qu'une image.
Comment ne pas afficher le carousel dans c ecas ?
-> https://www.lapoteriefrancaise.com/tass … out-6.html

Voici mon code :
         

          <div class="single-zoom-thumb">
            <ul class="bxslider" id="gallery_01">
              {loop type="image" name="product.image.thumb" product=$product_id width=70 height=83 resize_mode="borders" limit=1}
              {loop type="image" name="product.image.thumbBig" width=450 height=450 resize_mode="borders" id=$ID source_id=$OBJECT_ID	source=$OBJECT_TYPE limit=1}
              {assign 'thumbBig' $IMAGE_URL}
              {/loop}              
              {loop type="image" name="product.image.thumbFull" width=1200 height=1200 resize_mode="borders" id=$ID source_id=$OBJECT_ID	source=$OBJECT_TYPE limit=1}
              {assign 'thumbFull' $IMAGE_URL}
              {/loop}                              
              <li>
                <a href="#" class="elevatezoom-gallery {if $LOOP_COUNT == 1}active{/if}" {if $LOOP_COUNT == 1}data-update=""{/if} data-image="{$thumbBig}" data-zoom-image="{$thumbFull}"><img src="{$IMAGE_URL}" alt="zo-th-1" /></a>
              </li>
              {/loop}
            </ul>
          </div>
          

Merci par avance.

Gil


Gil - Formation - Webdesign - Maintenance à distance - Vente

Offline


Trouvé :

{if $pse_count == 1}

<div class="single-zoom-thumb">
<ul class="bxslider" id="gallery_01">
{loop type="image" name="product.image.thumb" product=$product_id width=70 height=83 resize_mode="borders" }
{loop type="image" name="product.image.thumbBig" width=450 height=450 resize_mode="borders" id=$ID source_id=$OBJECT_ID	source=$OBJECT_TYPE limit=1}
{assign 'thumbBig' $IMAGE_URL}
{/loop}              
{loop type="image" name="product.image.thumbFull" width=1200 height=1200 resize_mode="borders" id=$ID source_id=$OBJECT_ID	source=$OBJECT_TYPE limit=1} {assign 'thumbFull' $IMAGE_URL}
{/loop}                              
<li>
<a href="#" class="elevatezoom-gallery {if $LOOP_COUNT == 1}active{/if}" {if $LOOP_COUNT == 1}data-update=""{/if} data-image="{$thumbBig}" data-zoom-image="{$thumbFull}"><img src="{$IMAGE_URL}" alt="zo-th-1" /></a>
</li>
{/loop}
</ul>
</div>

{else} {/if}

Gil - Formation - Webdesign - Maintenance à distance - Vente