Author Topic: How to show a module in productdetails page only in virtuemart  (Read 118 times)

Mike555

  • Beginner
  • *
  • Posts: 1
  • A beginner
  • Skype Name: Mike555
How to show a module in productdetails page only in virtuemart
« on: November 30, 2018, 07:21:56 am »
I want to show a level2 categories only in product details page in virtuemart,but there is no specific product details page

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1794
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: How to show a module in productdetails page only in virtuemart
« Reply #1 on: November 30, 2018, 07:42:38 am »
You can make an override in You template to include modules. Make up a unique position code and add code to include the wanted modules.
Otherwise noNumber has a module manager that covers most usage scenarios, free and paid version
https://www.regularlabs.com/extensions/advancedmodulemanager

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8558
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: How to show a module in productdetails page only in virtuemart
« Reply #2 on: November 30, 2018, 09:19:37 am »
e.g

$modules = JModuleHelper::getModules('myposition');
foreach ($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation