D
D
denbon22020-12-08 18:55:42
opencart
denbon2, 2020-12-08 18:55:42

How to remove an article from the sitemap and indexing in Opencart?

I welcome everyone.
Actually the question is, I want to display some text in the product card, for this I created an article with the necessary text, then I display it by specifying its id, that is, I write the code in the controller:

$this->load->model('catalog/information');
$information_info = $this->model_catalog_information->getInformation(18);
$data['custom_info'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8');

well, in the right place in the template I display it
<?php echo $custom_info; ?>

everything would be fine, but there is one thing, this article is displayed in the sitemap and will be indexed, tell me how to remove it from the sitemap and indexing?
That is, it must be disabled, but here's how to do it

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VVCh, 2020-12-12
@VVCh

it is possible to register in robots
it is possible to prohibit with tags
In the site map builder, do not publish by id
If there is no functionality with noindex, then manually exclude

P
ProjectSoft, 2016-12-11
@ZIROKUL

$('.clik p').click(function(){
  var parent = $(this).parent(),
    has = $(".hidden", parent).hasClass('active');
  $(".hidden").removeClass("active");
  !has && $(".hidden", parent).addClass("active");
});

Port of the code you provided with solution
https://jsfiddle.net/ProjectSoft/s6hr3p2e/

L
lega, 2016-12-11
@lega

https://jsfiddle.net/lega911/z0y2fjL7/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question