woocommerce / woocommerce-order-source-attribution

WooCommerce Order Source Attribution helps merchants understand which marketing activities, channels or campaigns are leading to orders in their stores.
https://github.com/woocommerce/woocommerce-order-source-attribution
5 stars 0 forks source link

Fix duplicates data in origin column #40

Closed rawdreeg closed 1 year ago

rawdreeg commented 1 year ago

Changes proposed in this Pull Request:

See #39.

Ensure the global $theorder is updated to avoid the same origin data being returned for all order rows.

Closes #39.

Checks:

Screenshots:

Current branch: Screenshot 2023-02-28 at 13 44 56

Main: Screenshot 2023-02-28 at 13 44 40

Detailed test instructions:

  1. Using a URL with some tracking data, order a product. E.g, https://woocommerce.test/products/woocommerce-google-analytics?utm_source=social&utm_medium=banner&utm_campaign=FB&utm_id=FB
  2. Navigate to the admin -> woocommerce -> orders page.
  3. Confirm the origin data reflect the value saved.

Changelog entry

Fix - Duplicates data displayed for all orders in origin column