checkout and log out ofter order

  • Fred O.
  • Fred O.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #48 by Fred O.
checkout and log out ofter order was created by Fred O.
Hi

how can I change the confirm.php that the user comes back to the index page after the checkout and is automatically logged out? But I have a Joomla page with a form on my index-site.

In the config.php is below:

<input type = "hidden" name = "option" value = "com_easyshop" />
<input type = "hidden" name = "task" value = "checkout.finished" />
<? php echo JHtml :: _ ('form.token'); ?>

I can not get on my home-site. And I will not be logged out as a user in Joomla.
When I paste these inputs into the config.php below:

<input type = "hidden" name = "option" value = "com_users">
<input type = "hidden" name = "task" value = "user.logout">

then the logout and the redirect will work to the home page, but no order will be sent.

Where or how can I change the confirm.php?

Best regards
Fredo

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

More
6 years 4 months ago #57 by Rainy
Replied by Rainy on topic checkout and log out ofter order
For your case, you have to create a new plugin and trigger onEasyshopOrderFinished($order, &$successMessage) to handle it.
For version 1.1.1 just simply override the layouts /components/com_easyshop/layouts/checkout/message/success.php you can add the redirect form to logout page use by javascript auto submit.

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

Moderators: Rainy

wWw.joomtech.net. All rights reserved.

CONTACT US
  • This email address is being protected from spambots. You need JavaScript enabled to view it.
HIRE US to develop your store.

© 2015 - 2020 wWw.joomtech.net. All rights reserved. JoomTech.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.