ByMiami Posted August 24, 2013 Posted August 24, 2013 Hello, I want to creat a email template with a link like this: http://www.bymiami.com.br/modules/boletobancario/gera_boleto.php?id_cart={id_cart}&id_banco=bb&id_module=150&id_order={id_order} The variable {id_order} is working, but the variable {id_cart} not. I try to create a new enter in the Mail.php like this: $template_vars['{id_cart}'] = $cart->id; But this not work, when i click in the link under the email it show: http://www.bymiami.com.br/modules/boletobancario/gera_boleto.php?id_cart=&id_banco=bb&id_module=150&id_order=3 Note the id_cart= is in blank. Sorry for the english Share this post Link to post Share on other sites More sharing options...
bellini13 Posted August 24, 2013 Posted August 24, 2013 which template this is? When does the email trigger, after a new order is placed? Share this post Link to post Share on other sites More sharing options...
ByMiami Posted August 25, 2013 Posted August 25, 2013 I creat this template and trigger with a purchase status. Share this post Link to post Share on other sites More sharing options...
bellini13 Posted August 25, 2013 Posted August 25, 2013 what is a purchase status? give the hook name you are using. also give the code where you set the template variables. Share this post Link to post Share on other sites More sharing options...
ByMiami Posted August 25, 2013 Posted August 25, 2013 I creat the template in html and upload by FTP to the mails folder. I don't now how to set the template variables. To trigger the email i change the status of the order to one i made. Example: I made a order status: Boleto - Pendente And choose to send the email when the status change. Share this post Link to post Share on other sites More sharing options...
bellini13 Posted August 25, 2013 Posted August 25, 2013 Ok, lastly which version of Prestashop are you using? Share this post Link to post Share on other sites More sharing options...
bellini13 Posted August 25, 2013 Posted August 25, 2013 I have created a class override that should give you the ability to use the id_cart attribute in the email template. You need to copy this to the /override/classes folder. OrderHistory.php If the file already exists, you should merge the contents of the 2 files. This was tested on v1.5.4.1, however it should work on any v1.5 installation. It might even work on v1.4 however I have not tested it there Share this post Link to post Share on other sites More sharing options...
ByMiami Posted August 26, 2013 Posted August 26, 2013 I have created a class override that should give you the ability to use the id_cart attribute in the email template. You need to copy this to the /override/classes folder. OrderHistory.php If the file already exists, you should merge the contents of the 2 files. This was tested on v1.5.4.1, however it should work on any v1.5 installation. It might even work on v1.4 however I have not tested it there Did not work friend... Same problem, the url give that: http://www.bymiami.com.br/modules/boletobancario/gera_boleto.php?id_cart=%7Bid_cart%7D&id_banco=bb&id_module=150&id_order=3 Share this post Link to post Share on other sites More sharing options...
ByMiami Posted August 26, 2013 Posted August 26, 2013 I have created a class override that should give you the ability to use the id_cart attribute in the email template. You need to copy this to the /override/classes folder. OrderHistory.php If the file already exists, you should merge the contents of the 2 files. This was tested on v1.5.4.1, however it should work on any v1.5 installation. It might even work on v1.4 however I have not tested it there It work friend!!! Very thanks!! You help a lot of brazilians!!! Share this post Link to post 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