Skip to main content

#Promotion0 人正在讨论

Hello everyone,

Have anyone know how to get the customer list who used a promotion. I need to export the customer list used a promotion.

Thank you very much!

 

#promotion

#customer

1 个回答
  1. 2023年4月5日 10:29

    as I understand you want to export a 'list' of customers who used a specific promotion.

     

    with this kind when an 'order is created' you can store the promo information at a custom attribute of the 'order' level. example custom.appliedSpecificPromo

    and using this as a query condition when generating an export/report  file

    example

    orders = OrderMgr.queryOrders('(status = {0} OR status = {1}) AND custom.appliedSpecificPromo = {2}', 'creationDate desc',

    Order.ORDER_STATUS_NEW,

    Order.ORDER_STATUS_OPEN,

    'tbd');

    from order, you can get the customer via order.customer

0/9000