Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Display a module based on user...
Page:
1
Display a module based on user credentials and VM page
Display a module based on user credentials and VM page
Hi,
Sorry PHO newbie!
My customer has asked to display a module to explain that he will calculate shipping costs post purchase.
Could you point me to a receipe that will display module (98) on teh shipping page of VM when the user registration country details equals 'US'
Many Thanks
Jon
Administrator has disabled public posting
Re: Display a module based on user credentials and VM page
Administrator has disabled public posting
Re: Display a module based on user credentials and VM page
Hi Jon, sorry for the delay.
Use this recipe:
Code:
$ship_to = JRequest::getVar('ship_to_info_id');
if ($ship_to != '') {
$my_id = $db->Quote( $db->getEscaped( $ship_to ) );
$sql = "select country from #__vm_user_info where user_info_id = $my_id";
$db->setQuery( $sql, 0, 1 );
$row = $db->loadObject();
$country = @$row->country;
if ($country == 'USA') return XXX; /* replace XXX with the module id to use for USA shipping addresses. */
}
Cheers,
Stephen
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » Display a module based on user...
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:
- 107
- 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