VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: effettoMapet on May 14, 2023, 18:37:00 PM

Title: Insert an add-in module in Vm
Post by: effettoMapet on May 14, 2023, 18:37:00 PM
Hi, I have a special need.

I'm using the CF Filtering & Search module to filter VirtuMart products.
Obviously I associate this module to a position of my template, but this thing is not enough for me because I want to insert this module right on the VM Category page, next to the product list (as I drew the attached photo 'example_02.jpg ').

To do this I should be able to insert in the default.php file present in com_virtuemart > category > default.php a code that allows me to create a box where to place a Joomla module.

Is it possible to realize this idea of ​​mine?
If it is possible, can you write me the code that I have to insert in default.php ?
THANKS FOR YOUR PATIENCE
Title: Re: Insert an add-in module in Vm
Post by: effettoMapet on May 15, 2023, 08:14:23 AM
for example, how can I load the classic reference to a joomla module, example {loadmoduleid 147} , in the aforementioned .php file?
Title: Re: Insert an add-in module in Vm
Post by: GJC Web Design on May 15, 2023, 11:05:20 AM
something like
$modules = JModuleHelper::getModules('my-position');
foreach ($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
Title: Re: Insert an add-in module in Vm
Post by: effettoMapet on May 15, 2023, 14:54:22 PM
AWESOME, works great!
Thank you !