-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.0
I have a custom after_end template which shows the order details, and also contains several plugin dispatchers. It usually shows when logged in users complete the checkout process, but I have noticed that whenever guests complete checkout, the after_end template is never called from the Checkout Controller function after_end.
And I found out that the condition,
if(hikashop_loadUser(false) != $order->order_user_id)
evaluates to true during Guest checkout, which then skips calling $this->display().
Is there something I can do to get around this problem, or will I have to create a temporary workaround?
I was thinking a temporary workaround like,
if((JFactory::getUser()->guest != true && hikashop_loadUser(false) != $order->order_user_id)