Subsciption Template Emails Are Not Populating the Variables

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Wed May 25, 2016 9:09 am

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.

skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Wed May 25, 2016 9:25 am

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.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Wed May 25, 2016 10:48 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Thu Jun 02, 2016 5:46 am

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

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Thu Jun 02, 2016 6:38 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Thu Jun 02, 2016 6:55 am

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.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Thu Jun 02, 2016 7:11 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Thu Jun 02, 2016 7:18 am

Web2Market setup our system. Do I need to go through them or can I work directly with you?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Thu Jun 02, 2016 7:29 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

skinsfan99
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Wed May 25, 2016 3:32 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by skinsfan99 » Thu Jun 02, 2016 7:55 am

Help ticket has been entered. It's ticket number #108.

Thank you.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Thu Jun 02, 2016 8:10 am

I'll take a look as soon as I can.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by egormsen » Mon Dec 05, 2016 11:36 am

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?
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Tue Dec 06, 2016 3:43 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by egormsen » Tue Dec 06, 2016 4:26 am

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,
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Tue Dec 06, 2016 4:44 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Subsciption Template Emails Are Not Populating the Variables

Post by egormsen » Tue Dec 06, 2016 6:08 am

That was it. Updated the code and all is good. Thank you.
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Subsciption Template Emails Are Not Populating the Variables

Post by Katie » Tue Dec 06, 2016 6:27 am

Great. Thanks for letting us know.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply