Errors in Automated email generation

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Errors in Automated email generation

Post by Mizmo67 » Fri Jan 30, 2009 3:38 pm

Ok...let's see if I can explain this clearly.

I created a Cancellation Notice. The content is basically a modified copy of the Customer Order Notification email.
I set it up to send to the customer, with a BCC to our email address.
I checked off for it to automatically generate when order status is changed to canceled.

Screen shot of these settings:
Image
I also went back under Order Statuses and added the cancellation email to that change of status, but this did not make any difference to the testing before or after I did so.

I selected one of my test orders and changed it's status to Canceled.
NO email was generated for either address, mine or the test customer address.
Once canceled, I could not manually send ANY email through the system for that order. Trying to change the status back to pending, etc., did not make any difference.

I could go to a different order that was active and manually send the cancellation email to that email.
Each time I did so manually on the un-canceled order, the customer email address received not 1 but 2 copies of the cancellation notice. I think this occurs because it's adding the email from the order screen in addition to adding the email in the email form using the keyword "customer"? I have no idea how to fix it that particular side issue.

The basic confirmation email when an order is placed works fine, as does the automated one that kicks out when the order is marked as shipped in the shipping section.

Changing the order status using the Task dropdown menu in the Order Summary seems to the be problem? It's not generating the emails.

Anyone able to help? Thanks
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Errors in Automated email generation

Post by AbleMods » Fri Jan 30, 2009 9:17 pm

Mizmo67 wrote:Changing the order status using the Task dropdown menu in the Order Summary seems to the be problem? It's not generating the emails.
To my knowledge, email triggers are not fired when you manually change the order status. They only fire when a specific Able function or menu choice affects the order. For instance, shipping all items on the order automatically marks the order as "shipped" and thus the order shipped trigger will fire. However, manually changing the status from "Unpaid" to "Shipped" will *not* fire the same trigger.

Use the Cancel Order on the Order Summary page and cancel the order that way. Then the order cancelled trigger should fire.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Re: Errors in Automated email generation

Post by Mizmo67 » Sat Jan 31, 2009 10:41 am

Thank you, Joe.

It's making me nuts. That IS the page that I'm using.
I select Cancel from the dropdown menu on the task bar in the summary page.

So why is it not working?
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Errors in Automated email generation

Post by AbleMods » Sat Jan 31, 2009 5:01 pm

Wow that is a good question.

All you should have to do is assign an email template to the Order Cancelled trigger. Sounds like a trigger bug to me but I'd have to test it on my site. I'll see if I can do that this weekend.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Errors in Automated email generation

Post by mazhar » Mon Feb 02, 2009 7:10 am

Its working for me. Make sure that you haven't any error in the NVelocity code. For a test create a very simple Email template for example with no NVelocity code having some text message like "Order Canceled". Attach it to order canceled event and then give a try to it.

User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Re: Errors in Automated email generation

Post by Mizmo67 » Sat Mar 14, 2009 9:46 am

Back to working on this problem.

I tried creating an email triggered by Order Note Added by Merchant.
I removed all the NVelocity codes from the template ($store.Name, etc)

I still get 2 copies on the receiving end instead of one.

I've noticed that the problem is occurring about 90% of the time. Occassionally I only get one message, but mostly it duplicates.

It looks like I have everything set correctly, I can't figure this out?
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Errors in Automated email generation

Post by AbleMods » Sat Mar 14, 2009 9:53 pm

If you're setup to BCC yourself with email templates and you're testing it with your own store account, you'll get two copies.

I forget that sometimes and spend a few minutes scratching my head before it finally hits me :P
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Errors in Automated email generation

Post by mazhar » Mon Mar 16, 2009 6:37 am

In AbleCommerce 7.0 version, when some one tries to send Email directly from order page then it sends duplicate Emails. Please check the following thread for a work around.
viewtopic.php?f=42&t=9319
This problem is fixed in 7.2 version and its fix is available in 7.0 to 7.2 upgrade, check the
6997 minor sending email directly from order page is duplicated
entry in change log.

User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Re: Errors in Automated email generation

Post by Mizmo67 » Thu Mar 19, 2009 3:42 am

Thank you! Both of these answers help tremendously. I was worried we were going to spam our customers when this thing goes live, lol
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

Post Reply