Jump to content

Module and global variables in mails


p4trykx

Recommended Posts

Hello

I developed an off-line payment module which basically just stores Western Union money transfer information who to send the money. It's almost the same as bankwire.

 

The only difference is that after a customer places an order it has to be accepted/checked by an employee. Then if everything is OK the orders status is changed to "order accepted/awaiting payment"

After this change I want to send the customer an e-mail with Western Union name and address where to transfer the money. I want to avoid presenting to the customer these information so he won't send money before the order is validated.

 

I changed extra_mail_vars

$this->extra_mail_vars = array(
	  '{westernunion_owner}' => Configuration::get('WESTERN_UNION_OWNER'),
	  '{westernunion_address}' => nl2br(Configuration::get('WESTERN_UNION_ADDRESS'))
	  );

 

{westernunion_owner} get substituted fine in order_conf.html template which is sent right after order but when I change the order status and send another e-mail I can't use these variables.

 

I suspect that I have to somehow register them so it can be used the same way as {shop_name}

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