Jump to content

Creat a id_cart variable in the email


ByMiami

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!!!

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...