-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
Hi!
There is a feedback page on my site.
If it has extra fields (the type of 'contact') I get an empty h1 on this page.
If I unpublish these extra fields, then I get my title in the h1.
The problem is the variable ($this->product) in the view com_hikashop\product\contact.php
<h1><?php
if(!empty($this->product)) {
$doc = JFactory::getDocument();
$doc->setMetaData( 'robots', 'noindex' );
if(!empty($this->product->images)) {
$image = reset($this->product->images);
$img = $this->imageHelper->getThumbnail($image->file_path, array(50,50), array('default' => true), true);
if($img->success) {
echo '<img src="'.$img->url.'" alt="" style="vertical-align:middle"/> ';
}
}
echo @$this->product->product_name;
} else {
echo @$this->title;
}
?></h1>
$this->product is not empty in my case with extra fields and (!empty($this->product)) is true.
So I get not only an empty h1, but <meta name="robots" content="noindex" /> on my feedback page yet.
Best regards,