<?php
$product = $viewData['product'];
if (!class_exists('CurrencyDisplay'))
    require(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_virtuemart'.DS.'helpers' . DS . 'currencydisplay.php');
$currency = CurrencyDisplay::getInstance( );
$ItemidStr = '';
$Itemid = shopFunctionsF::getLastVisitedItemId();
if(!empty($Itemid)){
    $ItemidStr = '&Itemid='.$Itemid;
}
?>
<div class="item_product list_view">
    <div class="row">
        <div class="feature-image col-md-3 col-sm-6">
            <?php
            if (!empty($product->images[0])) {
                $image = $product->images[0]->displayMediaThumb ('class="featuredProductImage" border="0"', FALSE);
                $image_full = $product->images[0]->displayMediaFull();
            } else {
                $image = '';
            }
            echo $image;
            ?>
        </div>
        <div class="stats col-sm-9">
            <div class="box-title">
                <?php echo JHtml::link ($product->link.$ItemidStr, $product->product_name); ?>
            </div>
            <div class="product-price">
                <div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
                    <?php echo shopFunctionsF::renderVmSubLayout('ob_price',array('product'=>$product,'currency'=>$currency,'element'=>'p')); ?>
                    <meta itemprop="price" content="<?php echo $product->prices['basePriceWithTax']; ?>">
                    <meta itemprop="priceCurrency" content="<?php $currency->_vendorCurrency_code_3; ?>">
                    <link itemprop="availability" href="http://schema.org/InStock">
                </div>
            </div>
            <div class="star-rating">
                <?php echo shopFunctionsF::renderVmSubLayout('rating',array('showRating'=>1,'product'=>$product)); ?>
            </div>
            <div class="description">
                <p><?php echo $product->product_s_desc; ?></p>
            </div>
            <div class="cart_box">
                <?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'row'=>0,'show_qty'=>false)); ?>
            </div>
        </div>
    </div>
</div>