HomeHome Product Discus... Product Discus...SmithCartSmithCartEmail Tokens not workingEmail Tokens not working
Previous
 
Next
New Post
7/5/2010 1:16 PM
 

My email tokens don’t seem to be working either in my custom email order template, can you please tell what I’m doing wrong?

... <td>Patient Name: [FIRSTNAME]&nbsp;[LASTNAME]<br />Payor Email: [EMAIL]</td>
The email message sent looks like this:
Order ID: 3
Order Date: 07/05/2010 02:41 PM
Delivery Information:
Billing Information:
Patient Name: [FIRSTNAME] [LASTNAME]
Payor Email: [EMAIL]
Joe Smith
123 Main St
Anytown , IL 60563
US

Payment Type: Credit Card
 
New Post
7/5/2010 1:37 PM
 

In the cart settings, the following tokens can be entered in the User Email Confirmation Header and Admin Email Confirmation Header to customize the email message. You cannot enter the email tokens directly in the html templates.

[FIRSTNAME]
[LASTNAME]
[USERNAME]
[EMAIL]
[ORDERTOTAL]

The name entered in step 1 is automatically added to the email template so you dont need to add tokens to display that information.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/5/2010 2:24 PM
 

is the [FIRSTNAME] and [LASTNAME] the Shipping name (step 1) or the billing name (step 2)? I do not want to use the complete shipping address token because our store is for a hospital gift shop and they will only be delivering items to the patent rooms in that hospital. So I am hiding all of the shipping information so as to not confuse the site customer. All I want in the email is the shipping name (not address).

So can I accomplish this by removing the [SHIPPINGADDRESS] token from the Order Template, and then adding only [FIRSTNAME] and [LASTNAME] to the cart settings Headers?

 
New Post
7/5/2010 2:42 PM
 

No you can't do it the way you described. You can remove the [SHIPPINGADDRESS] token from the html email template but you cannot add the [FIRSTNAME] and [LASTNAME] directly to the html email templates, if you want to use the email tokens they need to be entered in the cart settings in the User Email Confirmation Header and Admin Email Confirmation Header fields.

To accomplish what you want you can try modifying the step1.ascx page and remove the requirefieldvalidator on the Address, City, Country, etc fields that you don't want to collect that are currently required and then set the visible property to false for those controls and go thru the checkout then only the first name and last name will show up in the email confirmation in the [SHIPPINGADDRESS] token.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/5/2010 2:48 PM
 

I tried that already, and it worked for the most part, but for some reason even though all required field validators are disabled, it still is requiring Zip Code. (That must be turned on elsewhere behind the scenes.) So what happens is the State displays a value of 0 in the email page, and the zip code shows up.

I understand everything you're saying and I do have my setting just as you mentioned. Per my question above though, are [FIRSTNAME] and [LASTNAME] in the cart settings page Shipping or Billing names? thank you.

 
New Post
7/5/2010 3:04 PM
 

The email tokens [FIRSTNAME] and [LASTNAME] are populated in the email confirmation from what the user entered on the step 1 page of checkout.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartEmail Tokens not workingEmail Tokens not working