Jump to content

Modify Classes/mail.php To Use {Url}


rubenlodi

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...