- Posts: 69
- Thank you received: 0
Description down
12 years 10 months ago #134939
by dreads
Description down was created by dreads
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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 9 months ago #134946
by Mohamed Thelji
Replied by Mohamed Thelji on topic Description down
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
.
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.
12 years 9 months ago #135068
by dreads
Replied by dreads on topic Description down
Hi,
The problem is that I appear as pictured, and I want it backwards, up subcategories, and the description of the category below.
The problem is that I appear as pictured, and I want it backwards, up subcategories, and the description of the category below.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 9 months ago #135092
by Mohamed Thelji
Replied by Mohamed Thelji on topic Description down
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 :
You can for example move this code at the end of your "listing" file, just after these lines :
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 :
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"/>
<?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 :
Code:
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.
12 years 9 months ago #135105
by dreads
Replied by dreads on topic Description down
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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 9 months ago #135121
by Mohamed Thelji
Replied by Mohamed Thelji on topic Description down
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.
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.260 seconds