Page 1 of 1

Subsciption Template Emails Are Not Populating the Variables

Posted: Wed May 25, 2016 9:09 am
by skinsfan99
We are currently setting up and testing the recurring subscription option on our dev environment. None of the subscription template emails are populating with data.

i.e. Instead of the subject line populating with "Your subscription for Club Membership has been started" I get "Your subscription for $subscription.Name has been started".

This issue is in the subject line and body of all the subscription template emails. It is effecting the variables and properties for $subscription, $deliveryFrequancy and $nextOrderDate.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Wed May 25, 2016 9:25 am
by skinsfan99
Update:

I had set up the trigger to send all emails when the order was placed. This way I could review the text on all the emails. In this scenario none of the emails populated.

We had setup the subscription to recur on a 7 day time frame so we could test the settings under configure->store->subscriptions. Those emails started to send today and so far they are populating with valid data.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Wed May 25, 2016 10:48 am
by Katie
When testing certain email templates, you have to be using the feature that it was intended for. Subscriptions are one of those tricky features to test.

What we do in-house is to simply change the date on the server, then use this page - InvokeServices.aspx within the \install\ folder. So you would access it like http://mystore.com/install/invokeservices.aspx and then you'll see 3 links with one of them being for Recurring Orders. Just click that to run the recurring orders. This makes testing go so much faster because you don't have to keep waiting for the next trigger/email to be activated.

Changing dates on the server can cause some strange behaviors though. Every so often I have a problem with the basket contents not updating. If this happens, you just need to reboot and it will work again.

Hope this helps,
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 5:46 am
by skinsfan99
I have tried a variety of tests and not all subscription template emails are populating with valid data.

Here is what I get for the Subscription Enrollment email.

Dear David Perez,

Welcome to the $subscription.Name!

Please take a moment to review the information below to make sure everything is correct. Your Club Membership will be automatically renewed yearly. We will email a reminder notice a few weeks in advance of your renewal to give you an opportunity to update your account information and membership as needed.

Summary - New membership started today.

Quantity: ${subscription.Quantity}
Item: $subscription.Name
Membership renewal due: $deliveryFrequancy
Next Payment Due: $nextOrderDate.ToString("d")
Yearly Membership Price: $0.00
Expiration: $nextOrderDate.ToString("d")
Billing Address: Shipping Address:
$subscription.FormatBillAddress(true) $subscription.FormatShipAddress(true)
Membership Changes
You can update your shipping address, billing address, payment method or cancel your membership subscription from your My Subscriptions page.

Customer Service
If you have any questions regarding your $subscription.Name membership, simply send an email and we'll be happy to assist you.

If you would like to view your order, manage addresses, update your email, or make other changes, visit your personal My Account page.




Why are none of the variables populating with valid data? Am I missing a setting somewhere?

I did get the Subscription Payment Reminder email and it was populated with valid data.

Thank you

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 6:38 am
by Katie
What steps are you taking to test? These email templates work, so there must be some other issue that we are not aware of.

Thanks
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 6:55 am
by skinsfan99
We have created a product with a recurring subscription. We have it setup to renew at a fixed interval of 3 days. We are using the Authorize.NET CIM in Test Gateway, Test Mode.

When we place an order the Customer Order Notification is sent on the trigger Order was placed. This email works fine.

The Subscription Enrollment email is set on the trigger Payment was fully captured. When the payment is captured the email does go out, just none of the variables are populated.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 7:11 am
by Katie
You might want to open a support ticket so we can get your login credentials. I really don't know why this isn't working for you.

https://www.ablecommerce.com/helpdesk.aspx

Thanks,
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 7:18 am
by skinsfan99
Web2Market setup our system. Do I need to go through them or can I work directly with you?

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 7:29 am
by Katie
You can work directly with us. If you don't have an account created in our store, then just register a new one. When you open the ticket, make sure to give us your licensed domain name and the software version.

Thanks,
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 7:55 am
by skinsfan99
Help ticket has been entered. It's ticket number #108.

Thank you.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Thu Jun 02, 2016 8:10 am
by Katie
I'll take a look as soon as I can.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Mon Dec 05, 2016 11:36 am
by egormsen
We are having this same problem with our subscription emails, the same two lines are not working.

Where you able to determine a cause/fix for this?

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Tue Dec 06, 2016 3:43 am
by Katie
There are no known issues with the subscription email templates. They can be tricky to test though. You have to place an order with a subscription and activate it. You can't just send the email manually from the order admin page.

Thanks,
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Tue Dec 06, 2016 4:26 am
by egormsen
Hummm, not sure what I am missing.....

Here is a portion of an email that was just generated for an subscription. It is a real order, active subscription on our live store. I created an account with the customer name "Test Order". Then an order was placed by our customer service rep just as if they took a real call from a customer and placed a subscription order for them. The email was automatically generated as soon the the order was completed not manually generated.
Subscription Email.png
The Qty, Item, Frequency, Price are all correct, but Payment Due and Expiration are not.

Any ideas? We are on R12 SR1.

Thanks,

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Tue Dec 06, 2016 4:44 am
by Katie
It looks like you might have some outdated code in your email template. What I would suggest is to compare the code between your email template and the stock one for Gold R12 SR1.

Here are the locations:

Your custom email templates are in \App_Data\EmailTemplates\1\

The stock email templates are in \App_Data\EmailTemplates\Default\

I use WinMerge for a simple and easy file comparison tool.

Thanks,
Katie

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Tue Dec 06, 2016 6:08 am
by egormsen
That was it. Updated the code and all is good. Thank you.

Re: Subsciption Template Emails Are Not Populating the Variables

Posted: Tue Dec 06, 2016 6:27 am
by Katie
Great. Thanks for letting us know.