This document explains how the system works in relation to the display and export of coupons used in orders.
System Functionality #
- The information about the coupon used in an order is always linked to the Parent Order.
- To view this information, access the Parent Order and check the discount section, where the coupon code used will be displayed.
- The reason for this approach is that sellers can create coupons, but a customer may apply a coupon from another seller. Therefore, the information is only maintained in the Parent Order and is not passed on to the Child Orders.
Exporting Orders and Coupons #
- When exporting Child Orders, the coupon information is not available, only the discount value applied.
- If it is necessary to obtain the coupon in the export, the information must be retrieved from the Parent Order.
- To resolve this issue, a Parent Order field has been added to the report, which allows access to the data of the original order.
Important Considerations #
- It is essential to understand that when exporting the Child Order, the retrieved coupon may not belong to the same seller.
- In the context of Exab, where coupons are typically created by the seller or the administrator, this issue might not be as critical. However, in other projects involving multiple sellers, this approach could lead to conflicts and inconsistencies.
- Therefore, when handling exports and reports, it is important to ensure that the coupon information is used correctly, avoiding the sharing of data that does not belong to the corresponding seller.
If you have any questions about how the system works or how to correctly export orders and coupons, please contact us for further clarification.