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.

 

metamod to show on virtuemart Search Results page

metamod to show on virtuemart Search Results page

Hi

I am trying to get a module to show on my VM live product search results pages, not having much luck atm.

The site is http://www.beautylogix.com/ and the search feature is at the top of the site. The Page generated which I would like the module to appear on looks something like this: (using the search keyword "pink" as an example)

http://www.beautylogix.com/?keyword=pin … hop.browse

The debug info looks like this:

MetaMod debug info:
$option: com_virtuemart
$view:
$id:
$Itemid: 2
$timezone: default
$language: en-us
$language_code: en
$language_region: us
Including modules:


Many thanks in advance for any help you can give. smile

jenlu
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: metamod to show on virtuemart Search Results page

Hi Jenlu,

Sorry I seem to have missed this request...

I think you can target the search page like this:

$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = shop.search") ) return XXX;

replace XXX with the module id that you want to display.

I'm not sure if this will put the module just on the results page, or also on the main search form page (which I can't see there... that's ok). But I think it should do what you want.

Best regards,
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:
211


Forum Legend:

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