Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Two Virtuemart Frontpages
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
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
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Two Virtuemart Frontpages
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7671
- Newest User:
- kiresidencescondo2
- Members Online:
- 0
- Guests Online:
- 145
- 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