Trying to display subcategories in listing

  • Posts: 8
  • Thank you received: 0
8 years 4 months ago #268758

Hi all,
first of all thanks for your wonderful work... really great.
I'm trying to work out a demo of the ecommerce site for my customer and I'm using the starter edition.
I need to show a category listing with subcategories displayed (title and photo) to demostrate the powerfulness of the component but can't have it working...
I read down all your documentation and revised all the posts without success...
Can you please help me? I need it to get the job and have the essentials as my component.
Thanks in advance...
Vivaldo

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

  • Posts: 84426
  • Thank you received: 13723
  • MODERATOR
8 years 4 months ago #268783

Hi,

You can create a menu item of the type "HikaShop categories listing" via the Joomla menu manager, and then activate the "Show children" setting under the "categories options" tab of your menu item.
Then, when you click on the menu item, you'll see a listing of your categories and for each category a sub listing of its sub categories.
However, that listing will be a simple ul/li list with only the names of the sub categories.
Of course, if you click on the name of the category, you'll end up on a listing of the sub categories of that category with the name and image of the sub categories, like on the main categories listing.
But if you want the images of the sub categories directly next to the name of the sub categories on the main categories listing, that will require some customization.
You'll have to edit the file "listing_img_title" of the view "category" via the menu Display>Views and there, you'll have to run a MySQL query in order to load the image of the sub categories from the table #__hikashop_file and then you can display them like the main category image is displayed with code similar to what you have at the top of the view file.

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

  • Posts: 8
  • Thank you received: 0
8 years 4 months ago #268789

Hi,
thanks for your quick reply.
I already did it. Create a new item following strictly your indications but the result is the same...
this is what is in the html
<div class="hikashop_subcategories_listing"> <div class="hikashop_subcategories" data-consistencyheight=".hikashop_subcontainer">
<div class="hk-row-fluid"></div><div style="clear:both"></div>
</div>
</div>

Attached the screen of the menu...

Attachments:

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

  • Posts: 84426
  • Thank you received: 13723
  • MODERATOR
8 years 4 months ago #268801

Hi,

In your screenshot, I see that you have "Nessun figlio" selected for the "show children" option and this translation is for the English "No child" (and thus no sub categories displayed).
So you didn't change that option as I told you.
Change it and you'll see that it should work.
Also, when providing screenshots, please try to provide them in English. It's easier to read and we don't have to search for the equivalent manually on our end as we don't speak Italian.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum