Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Текст на первой страниэто категории


Recommended Posts

Всем привет. Подскажите пожалуйси как сгделать текст описания категории только на первой страниэто, чтобы на страницах пагинации не выводился. В category.php изменил строку $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
         на   if ($page == 1) {
               $this->data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
                } else {
               $this->data['description'] = "";
               }

Описание пропало на всех страницах....

Link to comment
Share on other sites


3 часа назад, exfit сказал:

Всем привет. Подскажите пожалуйси как сгделать текст описания категории только на первой страниэто, чтобы на страницах пагинации не выводился. В category.php изменил строку $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
         на   if ($page == 1) {
               $this->data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
                } else {
               $this->data['description'] = "";
               }

Описание пропало на всех страницах....

 

$page == 1 ? $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8') : '';

 

Link to comment
Share on other sites


1 час назад, AUSS сказал:

 

$page == 1 ? $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8') : '';

 

Спасипотому что потому чтольшое, рилииет

Link to comment
Share on other sites


  • 1 year later...
В 04.04.2020 в 21:10, AUSS сказал:

 


$page == 1 ? $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8') : '';

 

опенкарт 2.3, при перехогде на следующую страницу:

Notice: Undefined index: description in /var/www/сайт.ру/system/storage/modification/catalog/controller/product/category.php on line 197

Edited by igorfelix
Link to comment
Share on other sites


  • 2 months later...
В 01.12.2021 в 14:28, igorfelix сказал:

опенкарт 2.3, при перехогде на следующую страницу:

Notice: Undefined index: description in /var/www/сайт.ру/system/storage/modification/catalog/controller/product/category.php on line 197

$page == 1 ? $data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8') : $data['description'] = '';
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.