studiotom Posted March 17, 2015 Share Posted March 17, 2015 hello , authentication.tpl login form how to not display it on : logowanie?multi-shipping BUT display it on : logowanie?back=my-account i've tried , doesnt work {if page_name == "logowanie?back=my-account"} formform {/if} Link to comment Share on other sites More sharing options...
defuzed Posted March 17, 2015 Share Posted March 17, 2015 `$back` should be a smarty variable set by prestashop, so just use {if $back == "my-account"} [your_code_here] {/if} Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 if you want to display it only if url contains ?back=my-account you can try to use: {if isset($smarty.get.back)} {if $smarty.get.back == "my-account"} do something {/if} {/if} Link to comment Share on other sites More sharing options...
studiotom Posted March 17, 2015 Author Share Posted March 17, 2015 works ! thx Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 great may i know what solution you used ?:-) Link to comment Share on other sites More sharing options...
studiotom Posted March 17, 2015 Author Share Posted March 17, 2015 first one (defuzed) I love simplicity {if $back == "my-account"} [your_code_here]{/if} Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2015 Share Posted March 17, 2015 but it will appear also if there will be no back=my-account param i just thought that you want to displat it only then ;-) anyway, topic marked as solved :-) 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