Use [Devel module](http://drupal.org/project/devel). It will show you on a node page what the page looks like. Or you can use dpm() to dump the page from within the tpl.php.
I think the field_product is the field name for the SKU. We can determine from the display manager of our content type how to render the product field, e.g as a add to cart button or as sku. If we choose the sku option from the product-display content type's display manager and print render($content[field_product]) then it renders as sku. But how can we do both? render as a button and as sku in tpl.php
Comments
Devel module
Use [Devel module](http://drupal.org/project/devel). It will show you on a node page what the page looks like. Or you can use dpm() to dump the page from within the tpl.php.
Or use a debugger. http://randyfay.com/debugging
why don't you just answer the
why don't you just answer the question but advise where to go?
field_product
I think the field_product is the field name for the SKU. We can determine from the display manager of our content type how to render the product field, e.g as a add to cart button or as sku. If we choose the sku option from the product-display content type's display manager and
print render($content[field_product])
then it renders as sku. But how can we do both? render as a button and as sku in tpl.php