Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod Favourite Recipes
- » Virtuemart recipe
Virtuemart recipe
Virtuemart recipe
I couldn't get the null to work when I used the published recipe so I used this recipe instead so I could display a module on on the Virtuemart frontpage but hide it on the browse and the flypage.
if (
$option == 'com_virtuemart'
and (JRequest::getVar('page') != 'shop.browse' and
JRequest::getVar('page') != 'shop.product_details')
and $Itemid == '70'
) return 76;
Re: Virtuemart recipe
Thanks rainman. For some reason, on some installations the VM "frontpage" sets the page variable as NULL, and sometimes as "shop.browse". I'm not sure what triggers one or the other. I'm building in both checks to the next version of JomGenius, so it's going to get easier to test for... but thanks for the update.
Re: Virtuemart recipe
No problem. I had to actually insert another line to take into account the order page when you're checking out.
if (
$option == 'com_virtuemart'
and (JRequest::getVar('page') != 'shop.browse'
and JRequest::getVar('page') != 'shop.product_details'
and JRequest::getVar('page') != 'account.order_details')
and JRequest::getVar('flypage') != 'flypage.tp-ecommerce.tpl'
and $Itemid == '70'
) return 76;
23-Aug-10 17:21:41
- Index
- » MetaMod
- » MetaMod Favourite Recipes
- » Virtuemart recipe
Board Info
- Board Stats:
- Total Topics:
- 1700
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 8056
- Newest User:
- no21an
- Members Online:
- 0
- Guests Online:
- 229
- 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