I have a custom field that I created called "Author" under content types it's called field_author
How would I print it?
Also, I've used enduser's image display, but how do I mandate the width be 120px?
Also, When I look at the preview of a product (on the main page) I don't see the product number listed, but when I open the product up, I do.
Here is my code:
<?php phptemplate_comment_wrapper(NULL, $node->type); ?>
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<div align="center"><table width="90%" border="0" cellpadding="20" cellspacing="20">
<tr>
<td valign="top">
<div id="picture">
<?php
// Grabs the firsts image path and sets $imagePath.
$imagePath = $node->field_image_cache['0']['filepath'];
?>
<br />
<center><?php print l(
theme('imagecache', 'product', $field_image_cache[0]['filepath'], $field_image_cache[0]['alt'], $field_image_cache[0]['title']),
$field_image_cache[0]['filepath'],
array('class' => 'thickbox'), NULL, NULL, FALSE, TRUE); ?></center>
</div>
</td>
<td>
<?php if ($page == 0): ?>
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
<div class="description">
<?php print $node->content['body']['#value']; ?>
</div>
</td>
</tr>
</table>
</div>
<div class="product_info">
<b><?php print $node->content['model']['#value']; ?></b>
</div>
<div class="prices">
<p>List Price: <?php print uc_currency_format($node->list_price); ?></p>
<h3><b>College Press Web Price: <?php print uc_currency_format($node->sell_price); ?></b></h3>
</div>
<i>**Website prices are not aplicable with any other offers or discounts**</i>
<div id="cartButtons">
<?php // add to cart buttons ?>
<?php print $node->content['add_to_cart']["#value"]; ?>
</div>
<div class="clear-block clear">
<div class="meta">
<?php if ($taxonomy): ?>
<div class="terms"><?php print $terms ?></div>
<?php endif;?>
</div>
<?php if ($links): ?>
<div class="links"><?php print $links; ?></div>
<?php endif; ?>
</div>
</div>


Joined: 04/17/2008