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.

 

Two Virtuemart Frontpages

Two Virtuemart Frontpages

Hi,
I have my website setup with two Virtuemart frontpages, each with their own sub categories.  I've used the MetaMod to place a module on the first frontpage.  My problem is to place a different module on the other frontpage. If I do the same as on the first one it will show up on both.

Each frontpage has its own main menu id and a category id in Virtuemart.

Thank you
Regards
Lene

lt635
Beginner Modder
ranks
useravatar
Offline
11 Posts
Administrator has disabled public posting

Re: Two Virtuemart Frontpages

Hi Lene,

If you're using the standard VM menu item but putting a category id into the category id box in the menu item editor, then you can detect the exact page this way:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = shop.browse")
  and $vm->check("category_id = 2")) return XXX;
if ($vm->check("pagetype = shop.browse")
  and $vm->check("category_id = 3")) return YYY;
// Replace XXX and YYY with the module ids to place
// on the 2 "home pages". Don't forget to replace "2"
// and "3" with the actual category numbers.


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

Re: Two Virtuemart Frontpages

Hi Stephen,

Thank you for your quick reply.

I have tried what you posted and I did try a couple of variation for category id but with no luck.

The website has to tabs in the top main menu that takes you to virtuemart.  At the moment, without your module, they will both run with the same intro page which is not a good look.  They both have their own sub menus on the left.

To be able to achieve that, I have used a module where I have put in a 'store ID override: category 4' for one of the tabs in the main menu.  This category 4 points to the category 4 in the main menu.  It's category in Virtuemart is 7.

Is it possible to do a combination with main menu and Virtuemart?

Thanks
Regards
Lene

lt635
Beginner Modder
ranks
useravatar
Offline
11 Posts
Administrator has disabled public posting

Re: Two Virtuemart Frontpages

Hi Lene,

I'm struggling to understand the setup you're describing. Could you point me to the URL of the site (send it to me in a PM if you like), or even make me a login for the site so I can see it from the inside?

Thanks,
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:
3
User Info:
 
Total Users:
4412
Newest User:
doyal54741
Members Online:
1
Guests Online:
186

Online: 
doyal54741

Forum Legend:

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