web design, England, Britain, UK, belgium
 

How to use Joomla Plugins in VirtueMart 1.1 - Joomla & VirtueMart Tips & How To's

GJC Website Design UK, Joomla Developer, VirtueMart Developer, Template Developer, web site designs, England, Britain, UK, Belgium, search-engine optimisation (SEO). Multilingual.

Home Joomla VirtueMart Tips How to use Joomla Plugins in VirtueMart 1.1

Thu

09

Jun

How to use Joomla Plugins in VirtueMart 1.1
  • Joomla 1.5
  • VM 1.1

Although VirtueMart 1.1 has a Configuration setting to enable content mambots / plugins in descriptions this only seems to work within the actual product description field.
If you need the plugin to render elsewhere in VirtueMart do the following.


Open the VirtueMart template file of the page where you want to have the Joomla Plugin  ( in this example YooGallery ) operating.
for example:  flypage.tpl.php etc

Surround the html of the VM template file with the following snippets.

Before the first piece of html (within the php )
ob_start(); 

And then at the close of the html:
<?php 
$contenthtml=ob_get_contents();
ob_end_clean();
echo JHTML::_('content.prepare',$contenthtml);
?>
So your template html is now stored in the variable $contenthtml and the Joomla native function content.prepare is called, all the content plugins are run and the output echoed.

joomla_plugins_virtuemart
Last Updated on Thursday, 09 June 2011 18:48
 
VirtueMart
Your Cart is currently empty.

Latest Joomla & VirtueMart Tips

See all tips & examples



How to use Joomla Plugins in VirtueMart 1.1|Joomla & VirtueMart Tips & How To's



GJC Website Design UK, Joomla Developer, VirtueMart Developer, Template Developer, web site designs, England, Britain, UK, Belgium, search-engine optimisation (SEO). Multilingual.


html, content, template, joomla, virtuemart, example, file, plugins, following, php, plugin, piece, etcsurround, snippets, contenthtml, called, run, output, echoed, prepare, function, stored, variable, native, close, page, descriptions, work, actual, mambots, enable, configuration, setting, product, description, operating, flypage, yoogallery, open, field

|

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.