2 replies [Last post]
totsubo's picture
Offline
Joined: 11/12/2009
Juice: 163
Was this information Helpful?

Ubercart is sending customers invoice email but it does not seem to be parsing the template tokens correctly?

Specifically it's not converting !order_first_name (or !order_last_name).

In uc_order/uc_order-customer.tpl.php there is this line:

<p><b><?php echo t('Thanks for your order, !order_first_name!', array('!order_first_name' => $order_first_name)); ?></b></p>

However when the mails are sent they don't have any first names, only this:

Thanks for your order, !

I'm wondering if the new templating system as anything to do with it? Does anyone have any suggestions on how I might fix this?

essbee's picture
Offline
Joined: 07/21/2010
Juice: 29
Re: New invoice templates not parsing !order_first_name token

Subscribing, I have the exact same symptoms. Only happens for first-name and last-name. Rest of the tokens are behaving as expected.

buysnakewine's picture
Offline
Joined: 03/31/2009
Juice: 104
what is the template encoding ? uft8 ?

Hello,

As i see that you made an invoice template in Japanese can you tell me what is the template encoding ? uft8 ?

I mean, how to use non English letters in the template ?

And which Editor do you use, notepad++ ?

Thank for info.