Customize hikashp content module type category

  • Posts: 344
  • Thank you received: 3
6 years 3 months ago #285624

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.2
-- PHP version -- : 7

In the hikashop content module I have enabled following...
Note: I have main categories with one level of sub-categories.

settings for module
List, Type of content: Category

Show children: All sub categories.
Link on main: No

Is it possible to display the category image to the left for each category, and the category description on the right (right side of category name) ?

Se image to see what I mean



And advice on code on how to do this ?

Attachments:

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
6 years 3 months ago #285630

Hi,

With the right code it's possible.
You would have to customize the file "listing_list" of the view "category" via the menu Display>Views.
Displaying the description next to the name is easy as you can just copy/paste the code for the name after it and change "name" by description in that piece of code.
For the images though it will require writing some PHP code, somewhat similar to the code for displaying the images in the "listing_img" file of the "category" view.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum