Skip to main content

To display child categories after products?

More
14 years 1 month ago - 14 years 1 month ago #60989 by hannuvirta
I'm trying to find how to display child category(s) after products listing of curent-category.
Default seems to be "before".
I include screen clip about this.
There:
Test is child category, others are produts in category selected by menu entry.


Test category shold be dispalyed here
Hannu
Last edit: 14 years 1 month ago by hannuvirta.

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

More
14 years 1 month ago - 14 years 1 month ago #60999 by Mohamed Thelji
Hello,

I think that you'll have to Go to "Hikashop->Display->Views" and Edit the code of the "listing" file of the "category" view of your front-end template.
Last edit: 14 years 1 month ago by Mohamed Thelji.

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

More
14 years 1 month ago - 14 years 1 month ago #61000 by hannuvirta
I was thinking that too.
But I have zero experience of php coding. It is totally out of my skills.

Can you or somebody give any hint how I should change it...?

Hannu
Last edit: 14 years 1 month ago by hannuvirta.

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

More
14 years 1 month ago #61002 by Mohamed Thelji
Ok, I Think that moving the code
Code:
$html = $this->loadTemplate($layout_type); if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';
At the end of your file will help.

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

More
14 years 1 month ago #61003 by nicolas
Note that you will need to add that just before the ?> tag at the end.
The following user(s) said Thank You: Mohamed Thelji

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

More
14 years 1 month ago #61018 by hannuvirta

Mohamed Thelji wrote: Ok, I Think that moving the code

Code:
$html = $this->loadTemplate($layout_type); if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';
At the end of your file will help.


Yes. That did it.
Thanks

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

More
11 years 7 months ago #191155 by Pajerchin
It seems your advice is not valid for actual HikaShop version...

Would you be so kind to provide advice for current HikaShop version, please ?

Thanks

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

More
11 years 7 months ago #191175 by Xavier
Hi,

That code must still be working, are you sure that you are doing the modifications in the correct file of the correct template ?

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

More
11 years 7 months ago - 11 years 7 months ago #191247 by Pajerchin
Hi,

Your navigation "Hikashop->Display->Views" and Edit the code of the "listing" file of the "category" is precise.
So I was looking in the correct file.

But sorry - you're right - Yesterday I didn't see it, today I see it ....probably too much work :S

Sorry agian - everything is OK - Thank you.
Last edit: 11 years 7 months ago by Pajerchin.

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

Time to create page: 0.283 seconds
Powered by Kunena Forum