This topic has 39 replies, 2 voices, and was last updated 1 months, 3 weeks ago ago by Andrew Mitchell
Hello. I have a problem with Google Loginization settings. It is correctly configured as indicated in the tutorials but an error window appears.
I need help to solve it. I attach a screenshot of the configuration.
works only if the link is:
https://mywebsite.cl/my-account//google/oauth2callback
but if I place another page that I want it to direct me to, it doesn’t work, example:
https://mywebsite.cl/cart//google/oauth2callback
I need you to direct it to the page that I select, since the idea is that when you want to make the purchase, you log in with Google and return to the cart or checkout page (not to my account) to continue the purchase process
Hello, LVRB Love’s Rebel,
I hope this message finds you well. We regret to inform you that currently, the login redirection is only functioning for the my-account page. Unfortunately, this does not extend to the pages for cards and checkout, which disrupts the payment process. Systems such as PayPal may not accept payments due to this interruption in the checkout process.
We are prepared to assist you in resolving this issue. To proceed, we would require administrative access to your site and FTP credentials.
Thank you for your attention to this matter. We look forward to your prompt response to facilitate the necessary adjustments.
Best Regards,
8Theme’s Team
But if you can’t go to checkout, I need you to go to the My Cart page, that wouldn’t have a redirection problem from what I read since it doesn’t interrupt any payment process.
Why would they need to enter my site? When entering, can you configure and authorize the callback to be to my cart page?
Hello, LVRB Love’s Rebel,
Regarding the modifications to the page cards, we are prepared to proceed with the necessary changes. However, to do so effectively, we require FTP access to alter the theme files accordingly.
Thank you for your attention to this matter.
Best Regards,
8Theme’s Team
Hello!
I leave the accesses in the private area.
If these changes are made to the test site, will the site fail when I migrate it to the primary domain? Will the modifications and codes created be unconfigured?
Hello, LVRB Love’s Rebel,
Thank you for providing us with the necessary access. We kindly request that you add the following URLs for Google redirects:
1. https://mywebsite.cl/my-account//google/oauth2callback
2. https://mywebsite.cl/cart//google/oauth2callback
Additionally, we would appreciate it if you could disable the “coming soon” mode during testing.
You can view the links for your website in the private content section.
Best regards,
8Theme’s Team
Hello! I entered the link to redirect to “cart” ( https://mywebsite.cl/cart//google/oauth2callback ) but it still sends the same error.
It only works with the “my account” link.
Hello, LVRB Love’s Rebel,
I hope this message finds you well. We kindly request the addition of the following links to your system:
1. https://mywebsite.cl/my-account//google/oauth2callback
2. https://mywebsite.cl/cart//google/oauth2callback
Please also ensure to add:
https://mywebsite.cl/my-account//google/oauth2callback
We appreciate your prompt attention to this matter. Should you have any questions or require further information, please do not hesitate to contact us.
Best Regards,
8Theme’s Team
It only redirects me to “my account” if I add both links and the redirection to “cart” does not work.
I need the redirection to be only to my cart.
Hello, LVRB Love’s Rebel,
To ensure the login functionality operates correctly, it is essential to maintain both links in the redirects within the Google console.
Additionally, to consistently redirect to the cart page, please replace the following file:
wp-content/plugins/et-core-plugin/app/controllers/authorize.php
You can download the new file from this link: https://we.tl/t-Wy5gkhoKWX
Furthermore, please insert the following code into the functions.php
file of your child theme:
add_filter('et_authorize_redirect', function ($page){
return 'cart';
}, 1, 10 );
Should you require any further assistance, please do not hesitate to contact us.
Best Regards,
The 8Theme Team
Hello.
Where should I replace the file and code? Please I need to know or help me do it.
These changes only apply to logging in or registering with Google, right?
Hello, LVRB Love’s Rebel,
I hope this message finds you well.
We are ready to proceed with the necessary updates on your behalf. However, the FTP credentials previously provided are no longer functional. Could you please provide us with updated working FTP access details?
You will find additional details in the attached files. Once we receive the new credentials, we will gladly carry out the updates for you.
Should you prefer to make these updates yourself, please replace the following file:
wp-content/plugins/et-core-plugin/app/controllers/authorize.php
with the file from this link: https://we.tl/t-Wy5gkhoKWX
Additionally, please insert the following code into your wp-content/themes/xstore-child/functions.php:
add_filter('et_authorize_redirect', function ($page){
return 'cart';
}, 1, 10 );
We appreciate your cooperation and look forward to your prompt response.
Best Regards,
8Theme’s Team
You will find access in the private area.
When I migrate the site, will this solution be deconfigured?
Greetings!
Hello. They have not yet responded to me on this topic and I have attached the accesses in the private area.
I’ll upload them again.
HI, please i need help!
Hello, LVRB Love’s Rebel,
We hope this message finds you well.
We would like to express our gratitude for providing us with the necessary access. We are pleased to inform you that we have successfully implemented all the required modifications. Now, the social media authorization process redirects users to the card page as intended.
Please take a moment to verify this update at your earliest convenience.
Thank you for your attention and cooperation.
Best Regards,
8Theme’s Team
Hello
Thank you so much!
After this improvement I have some questions:
1. When you migrate, will this enhancement be unconfigured?
2. Can it be configured that if I want to log in directly from my account it will redirect me to my account, and if I log in from the purchase of a product it will be redirected to the cart?
Thanks!!!!! <3
Hello, LVRB Love’s Rebel,
I hope this message finds you well.
Regarding the migration process, I would like to confirm that all changes will be preserved during the migration.
As for the login redirection, we have implemented the following procedure: if a user is on the “My Account” page, they will be redirected to the same page. If they are on any other page, they will be redirected to the cart page.
To achieve this, we have added the following code to the functions.php file of the child theme.
// Set transient when on the My Account page during login form submission
add_action('template_redirect', function() {
if ( function_exists('is_account_page') && is_account_page()) {
set_transient('et_is_my_account_login', true, 30);
}
});
// Modify redirect based on the transient
add_filter('et_authorize_redirect', function($page) {
if (get_transient('et_is_my_account_login')) {
delete_transient('et_is_my_account_login');
return 'myaccount';
}
return 'cart';
}, 10, 1);
Thank you for your attention to this matter.
Best Regards,
8Theme’s Team
Hello.
The code they mention now only directs me to my account from any area and not to my cart.
Remember that this is for the customer to log in before going to checkout, so if they are purchasing at the beginning, they must be redirected to the cart to continue the purchasing process normally.
In the configuration prior to the code just indicated, if I was making a purchase and logged in it would redirect me to my cart but now it does so to my account from anywhere.
I need that if the customer is purchasing, the login redirects them to my cart, and if the customer is going to log in from my account directly without making a purchase, they be redirected to my account.
Hello. Please I need help to close this topic and solve the problem. I want to migrate the site these days.
Hello! Please let me know if it is already resolved. I need to resolve this now to migrate the site.
Thanks
Hello, LVRB Love’s Rebel,
We would like to inform you that our team is still diligently working on resolving the issue at hand. We appreciate your patience and understanding during this process.
Best Regards,
8Them’s Team
Hello!
I still don’t have a solution to this problem
Hello, LVRB Love’s Rebel,
We hope this message finds you well. We are currently continuing our work on the modification and will notify you as soon as we have an outcome.
Best Regards,
8Theme’s Team
Hello. The days continue to pass and there is still no solution to this, the paid support period is going to expire and I need to have my website finished and ready to go.
Hello, LVRB Love’s Rebel,
We hope this message finds you well. We have implemented some modifications and kindly request that you review them at your earliest convenience. Additionally, please check the tab for attached files for further details.
We would also like to emphasize that modifications or customizations are not covered under standard support. For such services, we have a dedicated department ready to assist you. You can access these services through the following link:
https://www.8theme.com/account/#etheme_customization_panel
Thank you for your attention to these matters. Should you have any questions or require further assistance, please do not hesitate to contact us.
Best Regards,
The 8Theme Team
Hello.
It still doesn’t work. When I add a product to the cart and complete the purchase, with the login it says error and requests that I log in again and sends you to the admin panel.
I attach video
Hello, LVRB Love’s Rebel,
I hope this message finds you well. We are reaching out to inquire whether there have been any recent updates or modifications to the “Finalizar compra” button in the popup. It is expected to redirect users to the cart page rather than the “My Account” page.
Best regards,
The 8Theme Team
Hello.
No changes have been made. It is exactly the same configuration as always.
The video shows that the error starts earlier, from the moment you add a product to the cart and want to complete the purchase, the login indicates an error (a message appears with a red error rectangle) and then you have to log in again and it sends you to my account.
Then a double login will occur to proceed to payment.
You must be logged in to reply to this topic.Log in/Sign up