Tuesday, 31 December 2013

How make drupal7 ubercart product details tpl file.

create a file node--product.tpl.php
----------------------------------------------
<?php //print $node->[attributes]['name']; ?>
<?php
//echo "<pre>";
//print_r($content);
?>
<div id="product-details">
<div class="wrap-images">
<?php print render($content['uc_product_image']); ?>
</div>
<div class="wrap-product-short">
<h2><?php //print $title ?></h2>
<span style="border:0px solid red; font-size:20px;font-weight:bold;font-style: normal;color:red;"><?php print render($content['sell_price']);?></span>   
<h2 style="color:#000000;font-size:16px;font-weight:bold;">Available Options</h2>
<span style="border:0px solid red; font-size:14pt;font-weight:bold;text-transform:uppercase!important;"><?php print render($content['add_to_cart']);?></span>
<p> <?php print render($content['body']); ?></p>
</div>
</div>

No comments:

Post a Comment