Show module in VirtueMart 1.1

Phoca Gallery modules - modules for Phoca Gallery extension
alexfloren
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Apr 2008, 17:49
Location: Spain

I would like to show

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

it seesm like VmThem

Post by Jan »

it seesm like VmTheme class doesn't know the countModules method... is this method defined in this class?

Jan
If you find Phoca extensions useful, please support the project
alexfloren
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Apr 2008, 17:49
Location: Spain

I think that method

Post 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 )
...
alexfloren
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Apr 2008, 17:49
Location: Spain

Sorrry, I mean that

Post by alexfloren »

Sorrry, I mean that the method for modules is NOT DEFINED IN THE CLASS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply