Joomla 3.8.3
VM 3.4
I am using Custom Filter by Break designs. I want to display the Filter module only on the Category pages, not on the product detail page.
I have installed Advance Module Manager (free version).
Please suggest a way, so that the Filter module does not show on the product detail pages.
There are around 300 products.
You need to check the view="productDetails" with PHP in your template
Quote from: Studio 42 on December 14, 2017, 13:36:32 PM
You need to check the view="productDetails" with PHP in your template
Please explain in layman language.
Sent from my Moto G (4) using Tapatalk
I am using template by enginetemplates
Sent from my Moto G (4) using Tapatalk
The Advanced Module Manager has some code examples that describe how to look for views like "productdetails".
You must hide the module manager when it is displayed in the view "productdetails". Please look for more detail a Regular labs.
regards
Jörgen @ Kreativ Fotografi
It is free version, and there is no support for free version
Sent from my Moto G (4) using Tapatalk
You need pro version.
regards
Jörgen @ Kreativ Fotografi
The standard way to check for a view is
<?php $input= JFactory::getApplication()->input;
$view = $input->get('view');
if($view !== 'productdetails') { ?>
<jdoc:include type="modules" name="position-3" style="xhtml" />
<?php } ?>