Pau111111 Posted March 9, 2017 Share Posted March 9, 2017 Hello Prestashopers, I would like to get by js (if it can be) the type of client that is in session on the web, so I can show customized messages or change the appearance depending on the type of user. Hello Prestashopers, I would like to get by js (if it can be) the group of client that is in session on the web, so I can show customised messages or change the appearance depending on the type of user. Thanks! Link to comment Share on other sites More sharing options...
rocky Posted March 10, 2017 Share Posted March 10, 2017 You can write code like the following in a TPL file: <script type="text/javascript"> var customer_group = {Group::getCurrent()->id|intval}; </script> Then you can use the customer_group variable in your JavaScript. 1 Link to comment Share on other sites More sharing options...
Pau111111 Posted March 10, 2017 Author Share Posted March 10, 2017 (edited) Thanks! Do you know where is the tpl file or part of code that has Order step 1.Summary ?? Edited March 10, 2017 by Pau111111 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted March 11, 2017 Share Posted March 11, 2017 Should be shopping-cart.tpl in your theme's directory if you're not using one-page checkout. If you're using one-page checkout, it's order-opc.tpl. 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