Page 1 of 1

I would like to show

Posted: 16 Apr 2008, 17:55
by alexfloren
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

it seesm like VmThem

Posted: 16 Apr 2008, 22:17
by Jan
it seesm like VmTheme class doesn't know the countModules method... is this method defined in this class?

Jan

I think that method

Posted: 17 Apr 2008, 11:49
by alexfloren
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 )
...

Sorrry, I mean that

Posted: 17 Apr 2008, 11:51
by alexfloren
Sorrry, I mean that the method for modules is NOT DEFINED IN THE CLASS

Posted: 17 Apr 2008, 20:36
by Jan