- πΊπΈUnited States lisastreeter
I needed to refactor this patch to use one for the Support Google Analytics 4 issue #3190724 β¨ Support Google Analytics 4 Needs review . For some reason, "private" methods" were changed to "protected" methods as part of that issue, so patch #3 here does not apply.
Posting an updated patch here for anybody else needing to make the switch to GA4 by the end of the month.
- Status changed to Needs work
about 1 year ago 8:58am 31 August 2023 - π§π¬Bulgaria pfrenssen Sofia
I agree that the adjusted amount is the one to use, but let's use the dedicated method
ShipmentInterface::getAdjustedAmount()
. Looking at the code of that method it appears that it is not sufficient to just add up the adjustments. The adjustments need to start from the base amount. - Status changed to RTBC
about 1 year ago 9:18am 31 August 2023 - π§π¬Bulgaria pfrenssen Sofia
My previous comment was wrong. The base amount is actually added as an order adjustment, this is happening in
LateOrderProcessor::process()
.I tested it and it is working perfectly. Thanks!