Делаю микроразметку на сайте.
Не могу никак обернуть в тэги цены и валюты.
<span itemprop="priceCurrency" content="RUB"></span>
<span itemprop="price"></span>
Вот мой код который отвечает за вывод цены и валюты.
<?php
echo shopFunctionsF::renderVmSubLayout('rating',array('showRating'=>$this->showRating,'product'=>$this->product));
//if (is_array($this->productDisplayShipments)) {
//foreach ($this->productDisplayShipments as $productDisplayShipment) {
//echo $productDisplayShipment . '<br />';
// }
//}
//if (is_array($this->productDisplayPayments)) {
// foreach ($this->productDisplayPayments as $productDisplayPayment) {
// echo $productDisplayPayment . '<br />';
// }
//}
//In case you are not happy using everywhere the same price display fromat, just create your own layout
//in override /html/fields and use as first parameter the name of your file
echo shopFunctionsF::renderVmSubLayout ('prices',array('product'=>$this->product,'currency'=>$this->currency));
if (($this->product->product_in_stock - $this->product->product_ordered) < 1) {
echo '<div class="availability_no bg">Нет в наличии</div>';
}
else {
echo '<div itemprop="availability" href="
http://schema.org/InStock" class="availability_yes">В наличии <span>'.$this->product->product_in_stock.' шт</span></div>';
}
echo shopFunctionsF::renderVmSubLayout('stockhandle',array('product'=>$this->product));
echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$this->product));
$stockhandle = VmConfig::get('stockhandle', 'none');
$product_available_date = substr($this->product->product_available_date,0,10);
$current_date = date("Y-m-d");
// Ask a question about this product
if (VmConfig::get('ask_question', 0) == 1) {
$askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component', FALSE);
?>
Куда нужно поставить тэги микроразметки?
Я не силен в php, очент прошу помощи....