Skip to main content

Category Menu showed on product page

More
2 years 7 months ago #359833 by tuanan@lethuongco.com.vn
-- Joomla version -- : 5
-- PHP version -- : 8.2

Hi,
Pls help us to solve these two issues
1/ I put one Hika Content Module on Left Position, and this module should be not showed on product page.
But on product page, the menu is hide, but there is still space in this left postion.

2/ On catogery listing page, I want to add one module position by the code
<?php
$mypostion="{loadposition tuan}";
echo JHTML::_('content.prepare',$mypostion );
?>
=> when I put this code on, category/listing_img_title ; it is working.

=> But If i put on category/listing_div , it gets error as below
"Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames"

Pls help to check and give me your support

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

More
2 years 7 months ago #359841 by nicolas
Hi,

1. Not much we can do. Your template sees that the module is to be displayed on that position, and thus it allocates the space for it, even if the module doesn't return any HTML.
I think Advanced Modules Manager has some mechanism to be able to do that:
regularlabs.com/advancedmodulemanager

2. This means that you have a module configured for the position "tuan" and that module is trying to display a listing of category.
So it's creating a loop trying to display a category listing module inside a category listing module inside a category listing module .... inside the category listing of the page.
You should add some extra check so that the tag is only called once:
Code:
<?php static $done = false; if(!$done) { $done = true; $mypostion="{loadposition tuan}"; echo JHTML::_('content.prepare',$mypostion ); } ?>
The following user(s) said Thank You: tuanan@lethuongco.com.vn

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

More
2 years 7 months ago #359886 by tuanan@lethuongco.com.vn
Thank for your reply
I installed the Advanced Modules Manager, and select option "hide if empty", but the space is still there, pls give us you advise

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

More
2 years 7 months ago #359890 by nicolas
Hi,

You should try using the HikaShop specific display settings of Advanced Modules Manager:
docs4.regularlabs.com/advancedmodulemana...#hikashop-page-types

Also, as the AMM documentation says:

Note: This option might not work on all templates.

docs4.regularlabs.com/advancedmodulemana...rther/extra-features

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

Time to create page: 0.105 seconds
Powered by Kunena Forum