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 Recipes

Virtuemart Recipes

Joomla 1.5
Virtuemart 1.1.3

Hi, I wanted a particular module to appear on a virtuemart category alongwith the details page of it. I tried almost all possible recipes mentioned on the forum as well the site, It didn't helped. here was a posting on the forum wherein a user was getting the module on all the details page and you helped him to hide them as such it appears only on the browse page. I am using metamod 1.0 (Free version)

All I want is to assign a module to a particular virtuemart category and this should appear on its details page as well.

I tried using

if ($option == "com_virtuemart") {
$category_id = JRequest::getVar("category_id");
if ($category_id == "40") {
return 73;
}
}


it didnt helped

So far I have hosted the site on local.

Thanks & Regards

Edited By: busykya
03-Nov-09 11:13:06

busykya
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Virtuemart Recipes

Hi Busykya,

Can you tell me if you are getting any output at all from the MetaMod? You said "it's not working" but I don't know if that means that you are getting no output at all, or things appearing on the wrong page, or what.

It's a good idea to turn on Debug mode in MetaMod, and make sure that you can see the debug output appearing. If you can't even see that, then it's a basic setup problem and you need to check the Quick Start page on this site.

You also say that you are using MetaMod 1.0. Are you sure? MetaMod 1.0 does not work at all on Joomla 1.5. I would suggest that you download and install MetaMod 2.1 and try again with that.

Once you have some output appearing from Debug mode, and have 2.1 installed, then write back and we'll get you further along.

The recipe you wrote should probably work...

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

Re: Virtuemart Recipes

Thanks for the prompt reply, I would install the 2.1 version and would let you know the results,
Bye for now. smile

busykya
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Virtuemart Recipes

Hi, I installed and checked, I guess i was using the same version before, bcos the results are same, I will let you know the procedure what I did, Please comment if i did something which is why I am not getting the desired results

1) created a module with a position which is not defined by the template
2) Selected none in the menu assignment
3) Created metamod with the position, I would like it to appear on
4) Menu Assignment ( Please confirm if I have to select all, or the only menu I want it to appear under) I have assigned one entire category as a menu.
5) When I select all the menu under metamod and activate the debug mode, the module appears and gives me the code, however if i use the same code and remove any other menu items i don't like it to appear on, it goes from the product details page as well.

Hope this suffice.

Regards
Prabhat

busykya
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Virtuemart Recipes

Got it this time,

I guess these step would help anyone to make metamod work as per a users requirement.

1) Set Menu Assignment for the module(which would be included in metamode) to none
2) select All under Menu assignment for metamod
3) Turn on the debug option at metamod
4) use the code generated on the page/s where i would like to see my modules on under php recipe.
5) Once done turn off the debug mode.


It didnt worked for me bfore because I was using both the option together, Php recipe and was also including the module id which i later set to none. Now its working as I wanted.

Very easy tool and effective, I wish the Get Start or Configuration had these explained in a better fashion.
5)

busykya
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10091
Newest User:
lamanaudio
Members Online:
3
Guests Online:
271


Forum Legend:

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