Forum Login
checkout and log out ofter order
- Fred O.
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 1
7 years 3 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
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.
- Rainy
- Offline
- Administrator
-
7 years 3 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.
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