description bellow the category

  • Posts: 281
  • Thank you received: 3
8 years 5 months ago #257790

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Hello
I wuold like to move the description in category listing bellow the category
Yuo can see in the image here

Thanks
Frank

Attachments:

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

  • Posts: 83931
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #257793

Hi,

You can do that by editing the file "listing" of the view "category" via the menu Display>Views and moving the code:

if(($this->params->get('show_image') && !empty($this->element->file_path))|| ($this->params->get('show_description')&&!empty($this->element->category_description))){
		?>
		<div class="hikashop_category_description">
		<?php
		if($this->params->get('show_image') && !empty($this->element->file_path)){
			jimport('joomla.filesystem.file');
			if(JFile::exists($this->image->getPath($this->element->file_path,false))){
			?>
			<img src="<?php echo $this->image->getPath($this->element->file_path); ?>" class="hikashop_category_image" title="<?php echo $this->escape(@$this->element->file_description); ?>" alt="<?php echo $this->escape(@$this->element->file_name); ?>"/>
			<?php
			}
		}
		if($this->params->get('show_description',1)&&!empty($this->element->category_description)){
			?>
			<div class="hikashop_category_description_content">
			<?php echo JHTML::_('content.prepare',$this->element->category_description); ?>
			</div>
			<?php
		}
		?>
		</div>
	<?php
	}
before the line:
$html = ob_get_clean();

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

  • Posts: 281
  • Thank you received: 3
8 years 5 months ago #257841

perfect
Thank you

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

Time to create page: 0.074 seconds
Powered by Kunena Forum