Home Forums WoodMart support forum problem with incorrect information redirect

problem with incorrect information redirect

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #453458

    maloneweb
    Participant

    Hello, 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.

    #453493

    Elise Noromit
    Keymaster

    Hello,

    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

    #454003

    maloneweb
    Participant

    Hello, 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/bhFK6asSbgBq

    this is with your theme, as can see the link is not correct.
    https://prnt.sc/nBdZLRrE80Qv

    #454037

    Elise Noromit
    Keymaster

    Hello,

    I have submitted the case to our development department we will get back to you asap.

    Best Regards

    #454616

    Elise Noromit
    Keymaster

    Hello,

    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

    #454887

    maloneweb
    Participant

    Hello, the link you sent doesn’t work.

    #455335

    Elise Noromit
    Keymaster

    Hello,

    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

    #455568

    maloneweb
    Participant

    Hello, I replaced the line as indicated by you, but the problem has not been solved.

    #456129

    Elise Noromit
    Keymaster

    Hello,

    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

    #457567

    maloneweb
    Participant

    Hello, 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.
    #457814

    Elise Noromit
    Keymaster

    Hello,

    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

    #457918

    maloneweb
    Participant

    Good afternoon, I removed the string, as you indicated, but the problem has not been solved. I’m waiting for a solution

    #458279

    Elise Noromit
    Keymaster

    Hello,

    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

Viewing 13 posts - 1 through 13 (of 13 total)