kod z pliku view.phtml:
<div class="padder">
<script type="text/javascript">
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo ($this->getBaseUrl() . $_product['url_path']); ?>&layout=button_count&show_faces=false&width=500&action=like&font=arial&colorscheme=light&height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:25px;" allowTransparency="true"></iframe>
<form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
<div class="product-img-box">
<?php echo $this->getChildHtml('media') ?>
</div>
<div class="product-info-box">
<h3 class="product-name"><?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getName()), 'name') ?></h3>
<?php if(Mage::getStoreConfigFlag('productquestion/productquestion/enabled')):?>
<a href="<?php echo $this->helper('productquestion')->getAddUrl($_product) ?>"><?php echo $this->__('Zapytaj o ten produkt') ?></a><br />
<?php endif; ?>
<?php if ($this->canEmailToFriend()): ?>
<a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a><br />
<?php endif; ?>
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
<?php if($a = $_product->getResource()->getAttribute('availability')->getFrontend()->getValue($_product)): ?>
<?php if($a == 'Nie') $a = 'Na zamówienie';?>
<span><span style="font-wieght: bold;">Dostępność: </span><?php echo $a; ?></span>
<?php endif;?>
<fieldset class="no-display">
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
<input type="hidden" name="related_product" id="related-products-field" value="" />
</fieldset>
<?php echo $this->getChildHtml('alert_urls') ?>
<?php echo $this->getChildHtml('product_type_data') ?>
<?php echo $this->getChildHtml('tierprices') ?>
<?php if (!$this->hasOptions()):?>
<?php if($_product->isSaleable()): ?>
<div class="add-to-boxes">
<?php echo $this->getChildHtml('addtocart') ?>
<?php echo $this->getChildHtml('obliczside') ?>
<?php echo $this->getChildHtml('addto') ?>
<div class="clear"></div>
<?php else: ?>
<?php echo $this->getChildHtml('obliczside') ?>
<div class="add-to-boxes">
<?php echo $this->getChildHtml('addto') ?>
<? endif; ?>
</div>
<?php else:?>
<?php echo $this->getChildHtml('obliczside') ?>
<?php echo $this->getChildHtml('addto') ?>
<?php endif; ?>
<?php if ($_product->getShortDescription()):?>
<h4 class="border-head"><?php echo $this->__('Quick Overview') ?></h4>
<div class="short-description"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
<?php endif;?>
<?php echo $this->getChildHtml('other');?>
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
<?php endif; ?>
</div>
<div class="clear"></div>
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
<?php endif; ?>
</form>
<script type="text/javascript">
//<![CDATA[
var productAddToCartForm = new VarienForm('product_addtocart_form');
productAddToCartForm.submit = function() {
if(this.validator.validate()) {
this.form.submit();
}
}.bind(productAddToCartForm);
//]]>
</script>
</div>
<br /><br />
<?php echo $this->getChildHtml('info_tabs') ?>