craft-instantanalytics icon indicating copy to clipboard operation
craft-instantanalytics copied to clipboard

[FR] Use order reference instead of number

Open bossanova808 opened this issue 5 years ago • 1 comments

https://github.com/nystudio107/craft-instantanalytics/blob/319b109a180e5b4986986bcfb69bc68ef3837bf1/src/services/Commerce.php#L51

Given Commerce now has nice, friendly order reference numbers and not just UIDs for identification (and UIDs are used as a fallback for the reference if there is no reference set by the shop owner...so order->reference will always contain the preferred data) ... it seems like this would be a better value to send to Analytics here, as it will make cross referencing this data against the actual orders much easier.

https://docs.craftcms.com/commerce/v2/orders.html#order-numbers

bossanova808 avatar Mar 28 '19 06:03 bossanova808

+1 for order.reference

chadcrowell avatar May 17 '19 15:05 chadcrowell