Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display module on product pages
Display module on product pages
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display module on product pages
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7624
- Newest User:
- borger3298
- Members Online:
- 0
- Guests Online:
- 160
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked