User is directed to home page not thank you page

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
9 years 5 months ago #226756

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Mozilla 43

I just updated my Joomla and Hikashop. After a user registers and pays, they are directed to the home page and not the after_end page with a thank you for their payment. I am using Authorize.net AIM and I do not have any URL specified in the Return URL section in the payment plugin. My checkout workflow is cart, login, then address, payment, cart status.

Please Log in or Create an account to join the conversation.

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
9 years 5 months ago #226771

Hi,

Maybe it ceoms from a view override.
If you switch temporarily to the default Joomla template, do you still have the problem ?
If no, then rename the folder templates/YOUR_TEMPLATE/html/com_hikashop/checkout via FTP and that should fix the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
9 years 5 months ago #226976

Yes I still have the problem even when I switch to a default Joomla template.

I have the Hikashop group plugin enabled and when I disable that then users are directed to the thank you page, but of course they are not logged out. They need to be logged out to update their group after purchase.

Please advise.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
9 years 5 months ago #227010

Hi,

If you're using feature like "user group after purchase" ; that plugin will change the user group of the user with the order confirmation.
Depending the configuration of the plugin and the payment method ; the user can be force to logout. The plugin can completely destroy the user session and it could generate that redirection to the home page..

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
9 years 5 months ago #227146

Thanks for the reply.

I need the user to be forced to logout in order to update the user group which is the function of the plugin. How do I get the user session to not be completely destroyed and redirected to the thank you page like it is suppose to do?

Or, if I disable the user group after purchase plugin and add a Return URL in the Authorize.net payment plugin, then the user is not logged out (expected since plugin is disabled) but they are NOT redirected to the URL specified in the Return URL but they are redirected to the thank you page. Why is the user not redirect per the Return URL in the payment plugin?

Please advise.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
9 years 5 months ago #227221

Hi,

I'm afraid that the use of JFactory::getApplication()->logout() perform a redirection and stop the rest of the HikaShop process.
So the redirection to the thank you page can't be done because there is already a redirection made just before.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 54
  • Thank you received: 3
  • Hikashop Business
9 years 5 months ago #227225

Can you explain a little bit more please. I am not sure what you mean by "the use of JFactory::getApplication()->logout() performing a redirection" and why it stops the rest of the Hikashop process? How do I make it not stop the rest of the Hikashop process? Why is there already a redirection made just before? Before what?

I don't understand whats the point of the plugin user group after purchase if it wont work? Whats the point of having an option of Return URL if it wont work? What are these both conflicting with to prevent them from working?

I don't think I am clear on why any of this is not working.

Please be more specific on why both of my issues aren't working. Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
9 years 4 months ago #227229

Hi,

I'm saying that we can be responsible of how Joomla is managing the logout.
That's it.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum