December 2011

Custom Product Template Drupal Ubercart: node-product.tpl.php

Modification of ubercart product template: this one should look very similar to the 'default look'.
It has only few selected fields and comes with Lightbox support.
<?php // Grabs the firsts image path and sets $imagePath.
$imagePath = $node->field_image_cache['0']['filepath'];
<!-- node and node inner -->
<div class="node <?php print $node_classes ?>" id="node-<?php print $node->nid; ?>">
        <?php if ($unpublished || $submitted): ?>
                <div class="node-top">