YeeP wrote: Result: I never see the "Thank you for purchase" message. It looks to "process" with a blank page after the purchase, then it loads on to the home page with no message, logged out.
.
This is expected result as you are redirecting to other page. When browser gets header location, it reredirects without displaying page.
YeeP wrote: Nicolas, I really appreciate all the help webcandy and you are giving me, but I am starting to feel like this is something the software should do. At least, based on your first repose to this and the following suggestions related to settings in Joomla and Hikashop. All of which I have already had set to your recommendations. I am literally at a standstill and cannot test the clients real bank money transfers. I can type fake credit card numbers in all day, but this is a serious problem now.
In my previous post I suggested you custom plugin or to place logout button to thank you page, which would solve all your problems.
After click on logout button user will be logged out and redirected to preferred page.
I have similar setup as you and both this methods worked well.
At this time I didn't know about Hikashop group plugin. I later tested it with group plugin and it works as expected.
I don't fully understand why is it not working on your site, but I suspect there is some problem with configuration.
Anyway, try this code in your after_end.php template:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.3.4
* @author hikashop.com
* @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
jimport('joomla.access.access');
$user = JFactory::getUser();
$session = JFactory::getSession();
JAccess::clearStatics();
$session->set("user", new JUser($user->id));