Coming across a frustrating problem where the email is being sent fine (including html) except the tokens are not being replaced by the corresponding data. I am using the latest version of the modules required for Commerce Email - perhaps I am missing something? When I use Rules with the regular email, the tokens are replaced without a problem. Any ideas?

Comments

elperuanito’s picture

Right think I figured it out - you must follow the installation instructions found here: http://drupal.org/node/1471758. It seems that if you don't have the right combination of modules it won't work. If you installed the wrong module to begin with (like I did) make sure you follow the correct steps to uninstall the modules and clear your cache. Hope this helps someone. The one thing that concerns me is that I am using quite an old version of Variable now!

philipz’s picture

Could you write something more about this? What wrong module did you install? I'm using this with Commerce Kickstart and I'm affraid there's just too many things to check for me :) Maybe you could point me in the right direction.

ibuildit’s picture

works fine with me on variable 2.x and variable_email 2.x-alpha1

esbon’s picture

Thanks for the tip, my commerce emails are now working just fine. The thing I am really interested in including in the admin email are the line items. Would this be possible with this module? I looked at all the tokens, but could not figure out what to use

philipz’s picture

There is [commerce-order:commerce-email-order-items] which outputs the whole cart including price, quantity and subtotal / total order price.

esbon’s picture

#5 is true, but I need to display all data in the line item fields. Thanks for the tip

tmsimont’s picture

All of my tokens work except for [user:one-time-login-url] -- does this work for you guys? This totally breaks new user sign up for me... I have Variable 2.1 and Variable Email 7.x-1.0-alpha1 with the 2.x-dev of Commerce Email

I created another issue because all other tokens work:
#1864350: One time login being displayed as [user:one-time-login-url] in email to user

ransomweaver’s picture

bennybobw’s picture

Just to be clear you have to use Variable Email 7.x-1.0-alpha1 or tokens will not work.

garyg’s picture

I can not get any tokens under "current-user" to work
Only the customer profile tokens work.
Is this working as intended or should I see the current-user tokens as well?
I am putting the tokens into the email. Should I be putting them into the template instead.
I just don't get how this is supposed to work.
Can anybody enlighten me?

Using:
Variable 7.x-2.1
Variable Email 7.x-1.0-alpha1
Commerce Email 7.x-2.x-dev

skchan2’s picture

Hey Guys,

I'm having no luck getting the tokens to work. The emails send out fine, but all the tokens arent getting replaced. is there a setting im supposed to set?

Currently installed and active:

Commerce Email 7.x-2.x-dev
Variable 7.x-1.2+35-dev (also tried with 2.1 and 2.2)
Variable Email 7.x-1.0-alpha1+3-dev
HTML Mail 7.x-2.65
Mail System 7.x-2.34

Thanks in advanced.

Edit: Ok, i finally got the tokens to show. I needed to use "Variable Email 7.x-1.0-alpha1" and not "Variable Email 7.x-1.0-alpha1+3-dev". Not all tokens show though (tested by adding every single token into the admin email). Hopefully this helps someone.

Below are the modules installed and active

Commerce Email 7.x-2.x-dev
Variable 7.x-2.2
Variable Email 7.x-1.0-alpha1
HTML Mail 7.x-2.65
Mail System 7.x-2.34

giacomino00’s picture

I'm using those versions of the modules, but "commerce-customer-profile" tokens are not replaced.

any idea?

thanks!

summit’s picture

Hi,

For me the same from Drupal Commerce 1.5 and above the
"commerce-customer-profile" tokens are not replaced anymore somehow.

EDIT: I have two sites:
One with
Drupal Commerce 1.4 and
Commerce Email 7.x-2.x-dev (2012-jan-30)
Variable 7.x-2.2
Variable Email 7.x-1.0-alpha1
HTML Mail 7.x-2.65
Mail System 7.x-2.34

Tokens "commerce-customer-profile" working

Drupal 1.7 and
Commerce Email 7.x-2.x-dev (2012-jan-30)
Variable 7.x-2.2
Variable Email 7.x-1.0-alpha1
HTML Mail 7.x-2.65
Mail System 7.x-2.34

Tokens "commerce-customer-profile" NOT working GRRRR...

EDIT 2: Variable is integrated and other modules are dependent of it. It is really difficult to alter the Variable version!!

Does anybody know which latest versions works together?

Greetings, Martijn

shaneonabike’s picture

Priority: Normal » Major

Yep I'm in the same situation!

None of the tokens are being replaced period... help :/

Commerce 7.x-1.8
Commerce Email 7.x-2.x-dev (2012-jan-30)
Variable 7.x-2.x-dev
Variable Email 7.x-1.0-alpha1
Commerce Email 7.x-2.x-dev
Variable Translation 1.9

... and I also tried

Commerce 7.x-1.8
Commerce Email 7.x-2.x-dev (2012-jan-30)
Variable 7.x-2.x-dev
Variable Email 7.x-1.x-dev
Commerce Email 7.x-2.x-dev
Variable Translation 1.9

I cannot downgrade Variable since i18n requires that I use the 2.x version....

kevster’s picture

I can confirm Im having the same issue, Ive tried various combinations of modules, flushing cache inbetween but no joy. Ive also tried different settings on the text format for the body.

Currently using:
commerce 1.6
variable 7.x-1.2+35-dev (tried lots of versions)
variable email 7.x-1.0-alpha1 (tried lots of versions)
commerce email 7.x-2.x-dev (tried lots of versions)
HTML Mail 7.x-2.65
token filter 7.x-1.1 (to try and stop blank tokens printing token code - no joy there...)
Commerce Extra Tokens

It seems that when I select any of the customer profile or commerce-order tokens to drop in to the emai body they don't go in as blue highlighted token links but just plain text - other tokens do go in as blue link style text.

Got a client jumping up and down as they are having to go in to each order to see addresses...

I can help debug/test any updates.

summit’s picture

Hi,

I am moving over to commerce_message. The only problem there is, getting nice looking emails.
May be your effort to build those is more suited than trying to use this almost abondended module?
Sorry if I am incorrect but until now no reaction of module owner how to deal with this!

Greetings, Martijn

kevster’s picture

Thanks Martijn - I may have a look at that then. I have a busy client site and the [commerce-order:commerce_customer_billing] and [commerce-order:commerce_customer_shipping] tokens just stopped working a few days ago which is causing lots of problems.

Do you know can you easily add extra tokens in to commerce message?

Thx!

summit’s picture

Those tokens are there already, but with message: in front of it!
greetings, Martijn

kevster’s picture

I just posted a partially working setup using variable email dev that may help some people..

https://drupal.org/node/1759140#comment-7825305 #7

muthusaravanan’s picture

Issue summary: View changes

#11 worked for me.
Thank you skchan2.

richH’s picture

Hi,

I just installed 7.x-2.x-dev following the instruction in comment #1 and sorry, but the tokens were never replaced with text. Downgraded to 7.x-1.x and now it all works, but of course without the nice features from 2.x. Will give #11 a try, but it shouldn't be this difficult I don't think :-0

Update... just installed all the modules as described in #11 and it still doesn't work (very grumpy face). This is a real pain and a bit of a show stopper at the moment (more grumpy face)

thanks
Rich

jmary’s picture

Issue summary: View changes

I have a working configuration using :

Commerce Email (commerce_email) 7.x-2.x-dev
Invoice Email (commerce_invoice_email) 7.x-1.0-alpha3+14-dev
Email (email) 7.x-1.3
HTML Mail (htmlmail) 7.x-2.65
Entity tokens (entity_token) 7.x-1.6
Token (token) 7.x-1.6
Token Filter (token_filter) 7.x-1.1
Variable Email (variable_email) 7.x-1.0-alpha1+3-dev + patch https://www.drupal.org/node/1759140#comment-7942291
Variable (variable) 7.x-2.5

Likos73’s picture

A struggled a long time with this issue. The solution was quite easy for me then. Could be something special to my setup but maybe it helps someone. I use custom permissions for the fields and because I don't want to show some fields to users, permissions are only granted for administrator.
I don't know why but the tokens are translated only when the permissions are granted for anonymous users!

rszrama’s picture

Status: Active » Closed (outdated)