Can't to place categories module on product page

60 views Asked by At

I need to place "Jshopping Categories" module at bottom of the product page. On main page this module placed at the position 'position-22' . I tried using this code:

$modules =JModuleHelper::getModules('position-22');
foreach ($modules as $module){
   echo JModuleHelper::renderModule($module);
}

but it shows no effect. And, if I use this code :

$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$options = array('style' => 'raw');
$dbo = JFactory::getDBO();
$dbo->setQuery("SELECT * FROM #__modules WHERE id='91' ");
$module = $dbo->loadObject();
$module->params = "heading=2\nlimit=10";
echo $renderer->render($module, $options);

I get only the categories title but no images.

I'm using JoomShopping component in Joomla 3.4.

Also I'm thinking to use "Load module" plugin. But how I can place my custom HTML with "{loadposition position-22}" in my page template?

0

There are 0 answers