Coupon Metadata in Orders: Help Us Decide

Background

Every time a coupon is applied to an order, a copy of the entire coupon object is stored as part of the order metadata. This causes the database space used by WooCommerce to grow tremendously in stores with heavy coupon usage. There is an open issue regarding this here.

How to provide feedback

To help us decide how to move forward, we have now also opened a discussion in GitHub about a possible solution.

Please comment your thoughts and opinions in the GitHub discussion.

Who does this affect?

If you use the WooCommerce REST API to retrieve order details, and you use the part of the retrieved data that describes applied coupons, then this change may be relevant to you. We would love your feedback.

Next steps

We aim to take a decision about further steps regarding this in early December 2023. Thanks for your participation!


Keep yourself in the loop!

Sign up for the WooCommerce developer newsletter:
Hidden
Hidden
Hidden


One response to “Coupon Metadata in Orders: Help Us Decide”

  1. konamiman Avatar

    A change in how coupon line item metadata is stored is coming to WooCommerce 8.7: https://developer.woocommerce.com/2024/02/08/changes-in-order-coupons-line-item-storage/

Leave a Reply

Your email address will not be published. Required fields are marked *