Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » New virtuemart page(type)
New virtuemart page(type)
Re: New virtuemart page(type)
Hi Nathalie,
that's a good question. I've never added a new page type before, but I think you can probably make a new rule and enter this in the PHP box:
if ($option == "com_virtuemart" and JRequest::getVar('page') == "checkout.paymentgateway" ) return true;
Now, I'm not 100% sure if the checkout pages work the same as the other types of pages, so please let me know if this doesn't work. If you can't get it to work, please post again and include the URL of the page that is using this page type.
Cheers,
Stephen
Re: New virtuemart page(type)
Mario,
you're using Chameleon, right?
If so you should be able to use this in the PHP box on the LEFT column of a Chameleon rule (i.e. not in the succeed or fail actions on the right):
if ($option == "com_virtuemart" and JRequest::getVar('page') == "account.favorite_products" ) return true;
Then set up the SUCCEED action to change the template or whatever.
Don't forget the Debug mode that's available in the Chameleon preferences (on the main Rule Chain page). Turn that on, then view the page as you try out different pages. You should see some info about what rules are being tried, and whether they succeeded or failed.
Best regards,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » New virtuemart page(type)
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8028
- Newest User:
- musial8334
- Members Online:
- 0
- Guests Online:
- 217
- 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