VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jimpett81 on May 19, 2017, 15:55:28 PM

Title: new module position
Post by: jimpett81 on May 19, 2017, 15:55:28 PM
Hi,

I have created a simple joomla module thatadd's some buttons for my products. The module itself works fine but I need to position it in the VM product details area - preferably the add-to-cart-area section.

I tried creating a new module position and calling it there but it does not seem to appear when I select the position in my module? Any help would be great.

Thanks,

James

Joomla 3.6.5
VirtueMart 3.0.18
Title: Re: new module position
Post by: GJC Web Design on May 19, 2017, 17:54:12 PM
call it with the load module content plugin

or try

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

in the template
Title: Re: new module position
Post by: jimpett81 on May 19, 2017, 19:04:48 PM
Hi,

Thanks for that, the second suggestion worked for me.

Thanks,

James