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

Insert an add-in module in Vm

Started by effettoMapet, May 14, 2023, 18:37:00 PM

Previous topic - Next topic

effettoMapet

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

effettoMapet

for example, how can I load the classic reference to a joomla module, example {loadmoduleid 147} , in the aforementioned .php file?

GJC Web Design

something like
$modules = JModuleHelper::getModules('my-position');
foreach ($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

effettoMapet

AWESOME, works great!
Thank you !