When updating a customer statistic via the CustomerStatisticUpdater class, a customer statistic will be automatically created, if it does not currently exist for the specified customer. If you need to manually create a customer statistic for another scenario, see the example below. For more information about the CustomerStatisticUpdater class, see For developers: Update the customer statistic.
To create a customer statistic, you have to perform the following:
Use the following code sample:
Back To Top