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?

Comments

essbee’s picture

Subscribing, I have a new site also displaying this behaviour for first-name and last-name

longwave’s picture

This token works fine for me in the invoice emails. If you do not collect delivery addresses at checkout, you may want to check that "Primary customer address" at /admin/store/settings/store/edit/display is set to "Billing address", this setting determines which address pane the first and last name fields are taken from.

Anonymous’s picture

Longwave, thanks for the post. I've checked and my settings are set to use 'Billing Address' ...

longwave’s picture

Status: Active » Closed (cannot reproduce)

Still unable to reproduce this. Please reopen with more info if you are able to reliably show this problem.

Anandyrh’s picture

I have the same issue, here: http://drupal.org/node/1490662

Anandyrh’s picture

This is fixed now,

please refer: http://drupal.org/node/1490662#comment-6697136

Cheers..!