Home › Forums › WoodMart support forum › problem with incorrect information redirect
problem with incorrect information redirect
- This topic has 12 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
Elise Noromit.
-
AuthorPosts
-
March 22, 2023 at 7:21 pm #453458
malonewebParticipantHello, I have a problem with redirects if a mistake is made during registration. Having installed a plugin for b2b sales, I created special registration pages with shortcodes. However, if a mandatory field is missing, the page is redirected to the standard registration page and not to the current one, how can I fix it?
Thank you.March 23, 2023 at 12:10 am #453493
Elise NoromitKeymasterHello,
Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.
Best Regards
March 24, 2023 at 7:40 pm #454003
malonewebParticipantHello, instead of sending me these pre-made replies, please commit to solving the problem, had already tried it, with the storefront theme the problem does not occur. I am also attaching a screenshot for you to see
this screen is with storefont theme:
https://prnt.sc/bhFK6asSbgBqthis is with your theme, as can see the link is not correct.
https://prnt.sc/nBdZLRrE80QvMarch 25, 2023 at 3:00 am #454037
Elise NoromitKeymasterHello,
I have submitted the case to our development department we will get back to you asap.
Best Regards
March 28, 2023 at 2:16 am #454616
Elise NoromitKeymasterHello,
This redirect is necessary for making this form work on other pages.
if you do not want this redirect, copy this file: woocommerce/myaccount/form-login.php and paste it in the child theme in the same route.
Then replace the code on line 70:
woodmart_login_form( true, add_query_arg( 'action', 'login', $account_link ) ) на woodmart_login_form()
https://monosnap.com/file/O0wF99qoOhZRCdY7V06SQuLkFPxU2aм
Please note the sidebar login form may work incorrectly.
If you have any questions please feel free to contact us.
Best Regards
March 28, 2023 at 6:27 pm #454887
malonewebParticipantHello, the link you sent doesn’t work.
March 30, 2023 at 1:11 am #455335
Elise NoromitKeymasterHello,
We are sorry for the wrong link.
Please check this screen: https://monosnap.com/file/cajxN6HDk9e4EXCLMyc5e5h0sNdNOq
If you have any questions please feel free to contact us.
Best Regards
March 30, 2023 at 1:59 pm #455568
malonewebParticipantHello, I replaced the line as indicated by you, but the problem has not been solved.
April 1, 2023 at 2:05 am #456129
Elise NoromitKeymasterHello,
It is not possible to edit the parent theme, please copy the file in the same route and this code removes the redirect from your parent theme.
We are checking and now no redirecting, please clarify the problem you have now.
If you have any questions please feel free to contact us.
Best Regards
April 5, 2023 at 5:45 pm #457567
malonewebParticipantHello, I made a video screen of the problem, in order to better explain the problem.
Attachments:
You must be logged in to view attached files.April 6, 2023 at 2:29 pm #457814
Elise NoromitKeymasterHello,
Please remove the code on line 80 in woocommerce/myaccount/form-login.php
action="<?php echo esc_url( add_query_arg( 'action', 'register', $account_link ) ); ?>"
https://monosnap.com/file/8mi0eX4c3egZVqBzgXOZGdImj0MKO3
If you have any questions please feel free to contact us.
Best Regards
April 6, 2023 at 6:28 pm #457918
malonewebParticipantGood afternoon, I removed the string, as you indicated, but the problem has not been solved. I’m waiting for a solution
April 8, 2023 at 4:10 am #458279
Elise NoromitKeymasterHello,
The code we provided removes the redirect. We have checked and see no redirect during registration.
At the same time, as soon as we removed the redirect, the registration form disappears after every reloads. That why the plugin works incorrectly with our theme and the only way out is to copy the file woocommerce/templates/myaccount/form-login.php to woocommerce/myaccount/form-login.php and enable ‘WooCommerce mod grid’ in the Theme Settings https://monosnap.com/file/bgIY8ms7Dbu3rqLLrtI57wIxkn9D0r and it would look like: https://monosnap.com/file/BE0wd89NJ49YZg78RhCgKKlGBnZLvY
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register