First off, thanks so much for this module!

Second, I have what might be a newbie question...

I've set up a couple of emails using the web interface (/admin/commerce/config/email) but the tokens aren't being replaced as expected when the email is sent out. In particular, [commerce-email:customer-name] and [user:one-time-login-url] don't work.

I also notice that neither appear in the list of tokens at the bottom of that page.

Separately, I'm interested in changing the checkout rule that creates a new account with an order; is there a token available that I could use to set the login name of the created user account to the person's name? I don't see any appropriate tokens in the data selector... I guess that's mroe something to take up with the Commerce people themselves, eh?

Anyway, I hope someone here can help me with the first part.

Comments

cogno’s picture

Solved my own problem with the one-time-login link... by applying the patch from http://drupal.org/node/1430694.

Still curious about if it's possible to insert a customer's name into the email; which token should I use?

4kant’s picture

I´m interested in this too.
Tried both 2.x and 1.x Versions. Never got the name to show up in the email.
What should be done to have the name (first name, second name or either one field for both) after the salutation?

Thanks!

4kant’s picture

Anyone?

timodwhit’s picture

I personally wouldn't change the login name to the customers name: Unless you have a way to deal with two John Does. Email would work better, IMO. As far as the comment, I would create a rule question for that.

As far as using the customer name, are you able to pull it off the billing/shipping address? Or off of the customer profile information? Or off the current user token? Those all seem like viable options. The billing address would be where I start.

summit’s picture

Hi,
I had the same sort of problem and it seems not all tokens are natively there within commerce email.
I had to build a condition in the commerce email rule to get the token to arise.
See this issue for my solution: http://drupal.org/node/1221446#comment-6047288
I got the solution from another thread and Mitchell on irc drupal-commerce helpt me to get the right direction!

Greetings, Martijn

guillaumev’s picture

Status: Active » Closed (duplicate)

Since this is not commerce email related, but a more generic token issue, closing this as a duplicate of http://drupal.org/node/1221446