how to show Category title after products listing

  • Posts: 65
  • Thank you received: 0
12 years 10 months ago #34664

hello,
I need the hikashop_category_information to show up in the buttom of the page onstead of the top.
I maneged to do it here
galeriadeartepedropena.com/tienda
but if you notice if you choose a category then it shows up in the top of the page again
galeriadeartepedropena.com/arte/cuadros/12-pinturas
I cant figure out how to have it show in the buttom inside the category listing.
How to do this??

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34716

Hi,

You need to edit the file "listing" of the view "category" via the menu Display->Views and move the code display the title at the bottom of the file.
But that's strang that it works for one page and not the other. What change did you do ?

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

  • Posts: 65
  • Thank you received: 0
12 years 10 months ago #35067

The reason why it works in one page is because I edited the product listing page in Views and did exactly as you said I put the part of the title in the buttom of the page.
However for the category listing page in Views, its not the same as products, it seems as if its onlu the top part of the page so I cant put the tiltle in buttom of the page.
Look this is my current category listing. (What do I edit here?)

<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.4
* @author hikashop.com
* @copyright (C) 2010-2011 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_categories_listing_main">
<?php
if(version_compare(JVERSION,'1.6','<')){
$title = 'show_page_title';
}else{
$title = 'menu_text';
}
if($this->module){
$title = 'showtitle';
}
if($this->params->get($title) && JRequest::getVar('hikashop_front_end_main',0)){
?>
<h1>
<?php echo $this->params->get('page_title'); ?>
</h1>
<?php
}
if(!$this->module){
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"/>
<?php
}
}
if($this->params->get('show_description')&&!empty($this->element->category_description)){
?>
<div class="hikashop_category_description_content">
<?php echo JHTML::_('content.prepare',$this->element->category_description); ?>
</div>
<?php
}
?>
</div>
<?php
}
if(!empty($this->fields)){ ?>
<div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main">
<h4><?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?></h4>
<table width="100%">
<?php
$this->fieldsClass->prefix = '';
foreach($this->fields as $fieldName => $oneExtraField) {
if(!empty($this->element->$fieldName)){ ?>
<tr class="hikashop_category_custom_<?php echo $oneExtraField->field_namekey;?>_line">
<td class="key">
<span id="hikashop_category_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_name">
<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
</span>
</td>
<td>
<span id="hikashop_category_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_value">
<?php echo $this->fieldsClass->show($oneExtraField,$this->element->$fieldName); ?>
</span>
</td>
</tr>
<?php }
}?>
</table>
</div>
<?php }
}
$layout_type = $this->params->get('layout_type');
if($layout_type=='table') $layout_type = 'div';
$html = $this->loadTemplate($layout_type);
if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';
if(!$this->module){
if(!empty($this->modules)){
$html = '';
jimport('joomla.application.module.helper');
foreach($this->modules as $module){
$html .= JModuleHelper::renderModule($module);
}
if(!empty($html)){
echo '<div class="hikashop_submodules" style="clear:both">'.$html.'</div>';
}

}
}
?>
</div>

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35104

It's exactly the same.

You need to move the title at the bottom:

<h1>
<?php echo $this->params->get('page_title'); ?>
</h1>

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

Time to create page: 0.061 seconds
Powered by Kunena Forum