$attribute = Mage::getSingleton('eav/config')->getAttribute(Mage_Catalog_Model_Product::Entity, 'color');
$value = $attribute->getFrontend()->getValue($product);
$label = $attribute->getFrontend()->getLabel();
$inputType = $attribute->getFrontend()->getInputType();
$options = $attribute->getFrontend()->getSelectOptions();
$value = $options = $attribute->getFrontend()->getOption($optionId);
If you need use a custom total renderer in some place (onepagecheckout for example), you can change the renderer template using local.xml directives.
<reference name="checkout.onepage.review.totals">
<block type="tax/checkout_subtotal" name="subtotal_total_renderer" template="tax/checkout/subtotal.phtml"/>
<block type="tax/checkout_shipping" name="shipping_total_renderer" template="tax/checkout/shipping.phtml"/>
<block type="tax/checkout_discount" name="discount_total_renderer" template="tax/checkout/discount.phtml"/>
<block type="tax/checkout_tax" name="tax_total_renderer" template="tax/checkout/tax.phtml"/>
<block type="tax/checkout_grandtotal" name="grand_total_total_renderer" template="tax/checkout/grandtotal.phtml"/>
</reference>
It's important to provide correct block names such us subtotal_total_renderer
.
st=>start: Start
e=>end
op=>operation: My Operation
cond=>condition: Yes or No?
st->op->cond
cond(yes)->e
cond(no)->op