Can't apply Visitor Group Coupon for cart in Schedule Job



My project have "auto-schedule Place order for customer" function. Requirement is apply all coupon codes if they are still valid when schedule job place order for customer.

The issue here is I can not apply "Visitor Group Coupons" for cart. I get "MissingVistorGroup" when run PromoEngine. I understand that there are some Visitor Groups can only evaluate with real user HttpContext but there are also some that don't required to (For example: last login <= 1 day).

Is there anyway that I can apply "Visitor Group Coupon" when run in schedule job context?

Any help will be appreciated, thank you!

Mar 13, 2020 15:09
* 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.