SearchRecent postsThe Random ToolboxDrupal 7 Setting up variables for use in a template (preprocess and process functions) Rendering Drupal 7 fields (the right way) Linux Secure Copy (scp) command Restrict Free Shipping in Magento Quickbooks Text Connection Ticket Cross-Site Request Forgery (CSRF) jQuery Events: MouseOver / MouseOut vs. MouseEnter / MouseLeave Monthly archive
|
December 2011Custom 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 drupal_add_js("misc/collapse.js"); ?> <?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"> <?ph |