[Skip to main content](#vessel-content)

#   Category Menu showed on product page

##

- **[tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")**
- [![tuanan@lethuongco.com.vn's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile") Topic Author
- [ Offline](/forum/user/47826-tuanan-lethuongco-com-vn)

Less More

- Posts: 21
- Thank you received: 1
-
-

2 years 7 months ago [\#359833](#359833) by [tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")  *[Category Menu showed on product page](/forum/26-product-category-display/907916-category-menu-showed-on-product-page#359833 "-- 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 lp to check and give me your support")* was created by *[tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")*

-- 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
&lt;?php
$mypostion="{loadposition tuan}";
echo JHTML::_('content.prepare',$mypostion );
?&gt;
=&gt; when I put this code on, category/listing_img_title ; it is working.

=&gt; 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

- [ ![1-categorylisting.png](/forum/attachment/58994) ](/forum/attachment/58994 "...orylisting.png") [ ](/forum/attachment/58994?download=1 "...orylisting.png")
- [ ![3-categorylistingloadpostiongeterror.png](/forum/attachment/58995) ](/forum/attachment/58995 "...ongeterror.png") [ ](/forum/attachment/58995?download=1 "...ongeterror.png")
- [ ![2-productpage.png](/forum/attachment/58996) ](/forum/attachment/58996 "2-productpage.png") [ ](/forum/attachment/58996?download=1 "2-productpage.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTYtY2F0ZWdvcnktbWVudS1zaG93ZWQtb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

2 years 7 months ago [\#359841](#359841) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category Menu showed on product page](/forum/26-product-category-display/907916-category-menu-showed-on-product-page#359841 "-- 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 lp to check and give me your support")*

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](https://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:

&lt;?php static $done = false; if(!$done) { $done = true; $mypostion="{loadposition tuan}"; echo JHTML::_('content.prepare',$mypostion ); } ?&gt;

The following user(s) said Thank You: [tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTYtY2F0ZWdvcnktbWVudS1zaG93ZWQtb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")**
- [![tuanan@lethuongco.com.vn's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile") Topic Author
- [ Offline](/forum/user/47826-tuanan-lethuongco-com-vn)

Less More

- Posts: 21
- Thank you received: 1
-
-

2 years 7 months ago [\#359886](#359886) by [tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")  Replied by *[tuanan@lethuongco.com.vn](/forum/user/47826-tuanan-lethuongco-com-vn "View tuanan@lethuongco.com.vn's Profile")* on topic *[Category Menu showed on product page](/forum/26-product-category-display/907916-category-menu-showed-on-product-page#359886 "-- 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 lp to check and give me your support")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTYtY2F0ZWdvcnktbWVudS1zaG93ZWQtb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

2 years 7 months ago [\#359890](#359890) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category Menu showed on product page](/forum/26-product-category-display/907916-category-menu-showed-on-product-page#359890 "-- 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 lp to check and give me your support")*

Hi,

You should try using the HikaShop specific display settings of Advanced Modules Manager:
[ docs4.regularlabs.com/advancedmodulemana...#hikashop-page-types](https://docs4.regularlabs.com/advancedmodulemanager/conditions/rule-types#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](https://docs4.regularlabs.com/advancedmodulemanager/going-further/extra-features)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDc5MTYtY2F0ZWdvcnktbWVudS1zaG93ZWQtb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.107 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
