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 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;

rainman
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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.

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

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;

Edited By: rainman
23-Aug-10 17:21:41

rainman
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Virtuemart recipe

I have the same trouble I just fixed my problem.

martinhcoat
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5940
Total Posts Today:
1
User Info:
 
Total Users:
5186
Newest User:
Totosite
Members Online:
0
Guests Online:
220

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