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.

 

Virtuemart category description breaks rule

Virtuemart category description breaks rule

Hi,

I have a metamod rule to show a search box for search in this category only on category pages in Virtuemart. All works fine until I add a description on the category page. This causes the search to fail and just show all products.

Am I missing something simple?

Thanks
Ray

rayhymns
Guest
useravatar
Offline
Administrator has disabled public posting

Re: Virtuemart category description breaks rule

code is:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype = category") ) {
$category_id = $vm->info( "category_id" );
if ($category_id == "74") return 150;
if ($category_id == "77") return 150;
if ($category_id == "1162") return 150;
}

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

Re: Virtuemart category description breaks rule

Bumping my post due to idiot spammer.

Can anyone assist with my MetaMod query?

Thanks.

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

Re: Virtuemart category description breaks rule

Hi Ray,
just cleaned up all the idiot spam and found your post - sorry for the delay.
I just want to check what you are saying is happening...

So on the category page, the MetaMod shows the search module correctly?
But are you saying that if there's a description on the category page, then the search itself does not work correctly?

e.g. when there is no description on the category page, if you use the Search module that the MetaMod displays, then it works perfectly.
However if there was a description on the category page, then if you use the Search module that the MetaMod displays, then the search returns ALL items instead of using the search term you specified?

Can you please confirm that?
Also, are you using the free or the Pro version of MetaMod?

Cheers
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
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
227

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