Vildulv
11/25/2016 - 3:40 PM

Add Schema to View template

<!-- schema.org tag for Product Item Scope -->
<div class="product-view" itemscope itemtype="http://schema.org/Product">
    <div class="product-essential box-mid">
    <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
    <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
        <div class="no-display">
            <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
            <input type="hidden" name="related_product" id="related-products-field" value="" />
        </div>
        <div class="product-img-box">
            <div class="product-name">
                <!-- schema.org tag for Product Name -->
                <h1 itemprop="name"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
                <!-- schema.org tag for Product Availability -->
                <?php if($_product->isAvailable()): ?>
                    <div class="no-display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
                        <?php $currencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>
                        <span itemprop="priceCurrency" content="<?php echo $currencyCode;?>">
                            <?php echo Mage::app()->getLocale()->currency($currencyCode)->getSymbol();?>>
                        </span>
                        <span itemprop="price"><?php echo Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice()); ?></span>
                        <link itemprop="availability" href="http://schema.org/InStock" />
                    </div>
                <?php endif; ?>
            </div>
            <p class="brand_view">by: KEMP</p>
            <?php echo $this->getTierPriceHtml() ?>
            <?php echo $this->getChildHtml('media') ?>
        </div>
        <div class="product-shop">

            <div class="product-name">
                <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
            </div>
           <p class="brand_view">by: KEMP</p>

            <?php echo $this->getChildHtml('alert_urls') ?>
            

            <?php echo $this->getTierPriceHtml() ?>
            <div class="box1">
			<?php echo $this->getChildHtml('product_type_data') ?>
            <?php echo $this->getChildHtml('extrahint') ?>


            <?php if ($_product->getShortDescription()):?>
                <!-- schema.org tag for Product Description -->
                <div class="short-description">
                    <?php /*?><h2><?php echo $this->__('Quick Overview') ?></h2><?php */?>
                    <div class="std" itemprop="description"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?>
                        <br /><br />
                        <p style="display:none;"><?php echo $_helper->productAttribute($_product, nl2br($_product->getDescription()), 'description') ?></p>
                    </div>
                </div>
            <?php endif;?>