Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Display module on product pages

Display module on product pages

Hello,

How can i display a module on every product page, in the top center?

Edited By: jmanig
21-Dec-10 23:34:18

jmanig
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Display module on product pages

Hi, that's a 2 part question:

1 - in the top center: that completely depends on your template, and the module positions that you have in the template. If you purchased your template from a template club then there should be some info somewhere describing all the different positions for the "module positions". See if you can identify one that's where you want it to be (top center). Once you have that, then that's where you need to put your MetaMod.

2 - Assigning it to ever product page:

use this PHP:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = shop.product_details") ) return XXX;
// replace XXX with the module id of the module you want to display on the product details pages.

Now, if you meant the "category" listing pages and not the individual product pages, then you can do this instead:


$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = shop.browse") ) return XXX;
// replace XXX with the module id of the module you want to display on the product details pages.


Or if you want to include both types of pages:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = shop.product_details, shop.browse") ) return XXX;
// replace XXX with the module id of the module you want to display on the product details pages.


Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
2
Guests Online:
209


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked