Commerce Marketing bug


We upgraded Commerce from version 13.15.0 to 13.18.2 and campaign total order count is not updated anymore.

I tested by creating a campaign and a offer as seen below on version 13.15. Created one order with a product in the campaign and totals orders and redemptions was set to 1. Then we upgraded to 13.18.2 and created another order with the same product. Redemptions was updated to 2 but total orders was not updated to 2 as expected. Anyone else with this problem?

May 06, 2020 13:58

This is not a bug, it's a feature!

Seriously, we moved the statistics report to a scheduled job, for performance reasons 

May 06, 2020 15:15
Niklas Lord - May 06, 2020 15:19
I found out haha. See my other reply please. So why isn't the job enabled by default? What is the recommended schedule for it? Every hour?

I noticed that it actually breaks when upgradring to 13.16.0. The problem is Though there have to be a bug with this new feature because this statement is not true. "To use this optimization, you must run the new Commerce scheduled job Collect Order Per Promotion Statistics, which migrates your promotions system to the new optimization." We never ran this job and the statistics just stopped working.

If this scheduled job have to be run for this to work it should be enabled by default.

Also it is not mentioned in the weekly update either.

May 06, 2020 15:16

It is debatable, because if you have a lot of orders and you don't care about the numbers, running the job is actual heavy and expensive. That's why we leave it for you to decide.

It's up to your business requirement - how much "lag" you can accept for the numbers. Some is OK with weekly, some is good with daily, some needs hourly update. Some doesn't care.

It's listed in the weekly update, as I can see. 

May 06, 2020 15:41
Niklas Lord - May 06, 2020 15:49
Thanks yeah of course it is debatable how often it should be ran. It is a really good solution!
But I think it should be listed as a breaking change that you have to enable the scheduled job. Sure maybe we should have paid more attention also.

I wrote about it to raise the awareness You are right that we should be more clear about it.

May 06, 2020 15:43
Niklas Lord - May 06, 2020 15:51
Thanks for the write up :-)
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.