Hikashop menus cannot be noindex in menu setting

  • Posts: 124
  • Thank you received: 6
1 year 11 months ago #347284

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.5

Hi
I want Hikashop registration menu not to be indexed by Google bots. When I set the robot field to noindex folow in the Metadata tab, it doesn't apply to the Hikashop registration menu.


In fact, the settings of the Robot field in the Metadata tab are not applied to any of the Hikashop type menus.
thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #347294

Hi,

The registration page indeed doesn't support that setting. At the moment only the categories and products listings support it.
We'll look into it for the next version of HikaShop. Thanks for your feedback.
In the meantime, you can manually add the code:

$robots = $params->get('robots');
			if (!$robots) {
				$jconfig = JFactory::getConfig();
				$robots = $jconfig->get('robots', '');
			}
			if($robots) {
				$doc = JFactory::getDocument();
				$doc->setMetadata('robots', $robots);
			}
after both lines:
hikashop_setPageTitle($title);
in components/com_hikashop/views/user/view.html.php and it will do it for the registration page.

The following user(s) said Thank You: levelup

Please Log in or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum