Displaying current category details in a module

  • Posts: 30
  • Thank you received: 2
4 years 11 months ago #317324

-- HikaShop version -- : Hikashop Business 4.2.3
-- Joomla version -- : 3.9.16

Can the hikashop Content module be used to display the current product listing's category details in a module?

The Category Listing option displays the category image and description of sub-categories.
I'd like to display the current product listing's category details, instead.

How can I set up the Content module (and menu?) to do this?

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 11 months ago #317327

Hi,

There is no option to do this in a HikaShop content module.
It would require some coding in the category / listing.php to not display the sub categories and display the current category details.
Supposing that you're not using the HikaShop content module to display a listing of categories anywhere, you could add such code in that beginning of that view file:
<?php if($this->module) $this->rows = array($this->element); ?>
and that should do it.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum