Description down

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #134939

Do you may add a description of one category below the area where the subcategories appear?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #134946

Hi,
Can you show me where do you exactly want to add you description and give me a link to that page so that I can fully understand your question ?
Thanks :).

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

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #135068

Hi,

The problem is that I appear as pictured, and I want it backwards, up subcategories, and the description of the category below.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #135092

Hi,
the best solution will probably be to edit the "listing' file of the "category" view of your front-end template through "Hikashop->Display->Views", and move these lines to move category description on your category listing page :

  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',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
  }

You can for example move this code at the end of your "listing" file, just after these lines :
if(!empty($html)){ ?>
  <div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_categories_listing_main">
    <?php echo $html; ?>
  </div>
<?php }

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

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #135105

If I understand correctly, what to I have to do is cut the first code, and put it under the second, right?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #135121

Yes,
The first code, is the code which display your category description, so if you move it at the end of your file it will display you category description after your subcategories.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum