how can i solve aggregateRating and review error
the following parts are coming out, only the aggregateRating and review parts are not
@type Product
name
Product name ok
image
Okey
description
Okey
sku
Okey
brand
@type
brand
name
Okey
offers
@type
offer
price
Okey
priceCurrency
Okey
url
Okey
itemCondition
http://schema.org/NewCondition
availability
http://schema.org/InStock
priceValidUntil
Okey
Below is the warning I got from google console
Missing field "aggregateRating"
"review" field is missing
my product_default.php file
This section is available under the product name
<div class="reviews" >
<?php include(dirname(__FILE__)."/ratingandhits.php");?>
</div>
my ratingandhits.php file
defined('_JEXEC') or die();
?>
<?php if (($this->allow_review && !$this->config->hide_product_rating) || $this->config->show_hits){?>
<div class="rating">
<?php if ($this->allow_review && !$this->config->hide_product_rating){?>
<?php //print JText::_('JSHOP_RATING')?>
<span class="pro-rate">
<?php print \JSHelper::showMarkStar($this->product->average_rating);?>
</span>
<span class="count_commentar">
<?php if($this->product->reviews_count > 1){ echo jText::_('JSHOP_COMENTS');} else{ echo jText::_('JSHOP_COMENT');} print " (".$this->product->reviews_count.")";?>
</span>
<?php } ?>
<?php //if (($this->allow_review && !$this->config->hide_product_rating) && $this->config->show_hits){?>
<!--span> | </span-->
<?php// } ?>
<?php if ($this->config->show_hits){?>
<?php //print JText::_('JSHOP_HITS')?>
<!--span><?php print $this->product->hits;?></span-->
<?php } ?>
</div>
<?php } ?>
Joomla: 4.3.0
JoomShopping: 5.1.3
PHP: 7.4
JoomShopping: 5.1.3
PHP: 7.4