almost working...

Joined: 04/05/2009
Juice: 32

I am new to drupal and ubercart, but I have read through this whole thread, and somehow i managed to get it to mostly work.

however, I am still having an issue with the thumbnail image not displaying on the product page.

I am using this piece of code

<div class="product-image" style="width:210px; float:left;">
<?php $imagePath = $node->field_image_cache['0']['filepath']; ?>
              
                <a href="<?=base_path()?><?=$imagePath?>" rel="lightshow[prod]">
                    <img src="<?=base_path()?>files/imagecache/product/<?=$imagePath?>" alt="<?=$title?>" title="<?=$title?>">
                </a>
                <ul class="other_imgs" style="list-style-type:none; margin-top:10px; text-align:center;">
                    <?php foreach ($node->field_image_cache as $images) { if ($images['filepath'] != $imagePath) { ?>
                    <li style="display:inline; padding:0; margin-left:0;"><a href="<?=base_path()?><?=$images['filepath']?>" rel="lightshow[prod]" title="<?=$title?>">
                    <img src="<?=base_path()?>files/imagecache/uc_thumbnail/<?=$images['filename']?>" alt="<?=$title?>"></a></li>
                    <?php } } ?>
                </ul>
            </div>

the thumbnail image is just showing up as a text link.

when i view the source, it's obvious that the link to the thumbnail isn't being generated correctly... but the lightbox link is. any help is greatly appreciated!

<a class="lightbox-processed" href="/sites/default/files/100_3021.jpg" rel="lightshow[prod]">
                    <img src="/files/imagecache/product/sites/default/files/100_3021.jpg" alt="Pendant" title="Pendant">
                </a>
Nifty Products Tutorial Part 1 By: mykz- (132 replies) Wed, 03/19/2008 - 19:04