Grafyx89 Posted November 4, 2021 Share Posted November 4, 2021 Hello, I have a module under presta 1.7 which displays results by clicking on the desired department and generates an url of this type for the display: "/ my-site / mon-module?Flag=1&alp=85&zip=1" I would like to put a smarty condition in the generated page to display text for the value "85" or add this value in class body to then use the condition "{if $ page.page_name = ..}" I have tried {if $ alp = 85} or {if $ value = 85} But I don't have a desired result. Thanks for your help Link to comment Share on other sites More sharing options...
Rhobur Posted November 5, 2021 Share Posted November 5, 2021 No space between $ and variable name replace '$ alp' with '$alp'; also do not use '=' which is an assignment operator but use '==' or '===' if both valueas are of the same type e.g. {if $alp == 85} ..code here {/if} The 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