HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
69 stars 55 forks source link

Abandoned Cart Email throwing exception #454

Closed james7342 closed 1 year ago

james7342 commented 1 year ago

Describe the bug

Enabled Abandoned Cart Email in Admin/Orders. Now every hour when the Scheduler Job "Send Abandoned Cart Emails" runs an Hotcakes Exception is logged in the Event Log. This also seems to be impacting the sending of the Email as since enabling in testing I haven't received and messages even though reports shows abandoned carts for known users.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Admin/Orders Check "Send e-mail if cart was abandoned"
  2. Wait for the Scheduled Job to Run or Edit the Job and select "Run Now"
  3. Check DNN Admin Logs and notice error

Expected behavior

No error is generated

Actual behavior

Error generated and no emails sent.

Screenshots

screenshot_815

Error log

Note: Debug DLL's Noted in attached message with PBD files installed. "Hotcakes.Modules.Core.AbandonedCartEmailJob.SendAbandonedCartEmail(HccRequestContext context, Order order) in C:\Work\HCC-core\hcc-core\Website\DesktopModules\Hotcakes\Core\AbandonedCartEmailJob.cs:line 90"

Additional context

N/A

WillStrohl commented 1 year ago

Thank you for reporting this. We'll take a look at it as soon as we can.

ArielBlanco1990 commented 1 year ago

Hi @james7342, I have managed to reproduce the error that you have described to me, this is happening due to a bug in the code of the method in charge of sending the emails of the abandoned carts. We will solve this error as quickly as possible. Thanks for reporting this.

Regards, CC: @WillStrohl