- Posts: 30
- Thank you received: 2
Displaying current category details in a module
6 years 6 months ago #317324
by jtquinto
Displaying current category details in a module was created by jtquinto
-- 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?
-- 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.
6 years 6 months ago #317327
by nicolas
Replied by nicolas on topic Displaying current category details in a module
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.
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.077 seconds