Skip to main content

#Promotion0 diskutieren mit

Diskutieren Sie diese Frage in Slack, um schneller Antworten und Hilfe in Echtzeit zu bekommen.

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 Antwort
  1. 5. Apr. 2023, 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