I would like to show Phoca Gallery Ramdom Image Module inside the product details template of VirtueMart 1.1
I added this code to flypage.tpl which is the default template for product details:
<?php if($this->countModules('user7')) : ?>
<div>
<jdoc:include type="modules" name="user7" />
</div>
<?php endif; ?>
Currently, I get this error message:
Fatal error: Call to undefined method vmTheme::countModules() in /components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php on line 28
Show module in VirtueMart 1.1
-
- Phoca Newbie
- Posts: 3
- Joined: 16 Apr 2008, 17:49
- Location: Spain
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
it seesm like VmThem
it seesm like VmTheme class doesn't know the countModules method... is this method defined in this class?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 16 Apr 2008, 17:49
- Location: Spain
I think that method
I think that method is defined in the class
Sorry, my programming skills are very limited to know how is the class defined, but I found the class methods for vmTheme at this file:
/components/com_virtuemart/themes/default/theme.php
class vmTheme extends vmTemplate {
function vmTheme() {
parent::vmTemplate();
vmCommonHTML::loadMooTools();
}
...
function vmBuildFullImageLink( $product )
...
function vmlistAdditionalImages( $product_id, $images, $title='', $limit=1000 )
...
function vmMoreImagesLink( $images )
...
Sorry, my programming skills are very limited to know how is the class defined, but I found the class methods for vmTheme at this file:
/components/com_virtuemart/themes/default/theme.php
class vmTheme extends vmTemplate {
function vmTheme() {
parent::vmTemplate();
vmCommonHTML::loadMooTools();
}
...
function vmBuildFullImageLink( $product )
...
function vmlistAdditionalImages( $product_id, $images, $title='', $limit=1000 )
...
function vmMoreImagesLink( $images )
...
-
- Phoca Newbie
- Posts: 3
- Joined: 16 Apr 2008, 17:49
- Location: Spain
Sorrry, I mean that
Sorrry, I mean that the method for modules is NOT DEFINED IN THE CLASS
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
If you find Phoca extensions useful, please support the project