News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How not to assign module from product detail pages.

Started by raunhar, December 14, 2017, 07:20:43 AM

Previous topic - Next topic

raunhar

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.

Studio 42

You need to check the view="productDetails" with PHP  in your template

raunhar

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


raunhar

I am using template by enginetemplates

Sent from my Moto G (4) using Tapatalk


Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

raunhar

It is free version, and there is no support for free version

Sent from my Moto G (4) using Tapatalk


Jörgen

You need pro version.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

The standard way to check for a view is
<?php $inputJFactory::getApplication()->input;
$view $input->get('view');
if(
$view !== 'productdetails') { ?>

<jdoc:include type="modules" name="position-3" style="xhtml" />
<?php  ?>