Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Using Metamod in PHP
Using Metamod in PHP
Using Metamod in PHP
Hello,
I'm trying to use the Metamod functions in PHP in other modules, but I don't know how to do this.
Example, in ps_product_category from virtuemart I want to get the country of the user ($fromCountryId), bu doesn't exists. Perhaps it is not posible.
Thank you.
Re: Using Metamod in PHP
Yep, these special variables are only available in the MetaMod PHP box. You may be able to "send" them from a MetaMod to other modules, by assigning the $fromCountryId to a global variable in the MetaMod PHP box. But you would need to ensure that the MetaMod was evaluated before the other modules that you want to use the variable.
Best regards,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Using Metamod in PHP
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7627
- Newest User:
- rudys68879
- Members Online:
- 1
- Guests Online:
- 167
- Online:
- rudys68879
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked