Hi all!
I am totally new to Übercart. I have been playing with it for several days, and I think I will be able to use it in a current project. I would like, however, to replace the bundled-in "Thickbox" module with "Lightbox2". There are a few reasons why someone might prefer one to the other, and most of the arguments for and against both modules (as well as other alternatives) can be seen in the following node in drupal.org:
In my test site I have disabled Thickbox, then installed and enabled JQuery Update, and Lightbox2. The first problem I experienced, was that unlike Thickbox, Lightbox2 does not seem work 'out-of-the-box' with Übercart. That is: I went back to my catalogue, and all my images were showing as before, but none of them were links - none of them triggered the Lightbox. Strange. I went to Content Management->Content Types->Product->Display Fields, and saw that the 'field_image_cache' field was set to 'hidden' for both Teaser and Full listings. So, I enabled (using a Lightbox2-type selection) the listing of the field under both.
Now, what is happening is, that I get an EXTRA image - the Lightbox image - at the beginning of both teaser and full node. Clicking on this image does trigger the Lightbox, as it should. But the whole thing looks very odd now, with the repeated images and all for every listing.
So, I thought that this would be something that perhaps should be fixed with 'Contemplate', by specifying a new template for nodes. I installed 'Contemplate', and had a look at the current template for the teaser and body of the 'Product' content type. First of all, when clicking in the 'Template' tab of the Product content type, I get the following error:
While traversing node variables your recursion limit of 10 was hit 7 timesThen, looking at the current 'Teaser', I see:
<div class="field field-type-image field-field-image-cache">
<h3 class="field-label">Image</h3>
<div class="field-items">
<?php foreach ((array)$node->field_image_cache as $item) { ?>
<div class="field-item"><?php print $item['view'] ?></div>
<?php } ?>
</div>
</div>Hmmm, that is not what I was expecting...
So, what should I be doing next? Has someone implemented Lightbox2 in place of Thickbox?
Any guidance would be greatly appreciated.



The HTML for the product images is generated by theme_uc_product_image(). You can override this theme function (see the FAQs for details) to use Lightbox instead of Thickbox.


Joined: 06/03/2008