Jump to content

PS 8.2.1: customer redirect to previsious page after login


monak1983

Recommended Posts

Hi,
 I'm on PS 8.2.1 and I have a catalog with hidden prices for visitor and only after login is possible to see prices.
When customer login (from product page like in the screenshot attached) is redirected to HOME PAGE (I don't know why!)
Is possible to redicrect to previsious page (product page)?
Thanks
Marco
 

1.png

Link to comment
Share on other sites

You need modify tpl by change or adding code like:

    {if !$customer.is_logged}
      {block name='product_login'}
        <div class="user_login">
          <a href="{$link->getPageLink('authentication', null)}?back={$urls.current_url}" title="Log in to your customer account" rel="nofollow">
            <span>Sign in</span>
          </a>
        </div>
      {/block}
    {/if}

First find tpl file where your "Login" link is placed. Probably look in /themes/classic/templates/catalog/_partials/product-add-to-cart.tpl
Or you have module like WHOLESALE PRICE that generate this "Login" link.

Look at html code of "Login" and modify it by adding ?back={$urls.current_url} params.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...