rubenlodi Posted March 10, 2016 Share Posted March 10, 2016 Hey, I moddified "classes / Mail.php" adding one line to be able to use at templates a variable whis is the domain. But it appear 2 times instead of one. $template_vars['{shop_inurl}'] = Tools::getHttpHost(false)._PS_BASE_URL_; It appears like "mydomain.eshttp://mydomain.es" But if I use this: $template_vars['{shop_inurl}'] = Tools::getHttpHost(false).__PS_BASE_URI__; It appears like "mydomain.es/" so I can't use it for emails for example "info@{shop_inurl}" or it will show "[email protected]/"I think I may use _PS_BASE_URL_ but it's something wrong and url appears twice Link to comment Share on other sites More sharing options...
rubenlodi Posted March 14, 2016 Author Share Posted March 14, 2016 Do someone know how to fix it? 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