monak1983 Posted 10 hours ago Share Posted 10 hours ago 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 Link to comment Share on other sites More sharing options...
metacreo Posted 4 hours ago Share Posted 4 hours ago 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now