To display child categories after products?

  • Posts: 14
  • Thank you received: 0
12 years 3 months ago #60989

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

Attachments:
Last edit: 12 years 3 months ago by hannuvirta.

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #60999

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: 12 years 3 months ago by Mohamed Thelji.

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

  • Posts: 14
  • Thank you received: 0
12 years 3 months ago #61000

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: 12 years 3 months ago by hannuvirta.

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #61002

Ok, I Think that moving the 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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 3 months ago #61003

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.

  • Posts: 14
  • Thank you received: 0
12 years 3 months ago #61018

Mohamed Thelji wrote: Ok, I Think that moving the 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.

  • Posts: 29
  • Thank you received: 0
  • Hikaserial Subscription Hikashop Business
9 years 9 months ago #191155

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.

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #191175

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.

  • Posts: 29
  • Thank you received: 0
  • Hikaserial Subscription Hikashop Business
9 years 9 months ago #191247

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: 9 years 9 months ago by Pajerchin.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum