Add a filter to modify the points calculations

It would be great to add filters to the return values of the ‘calculate_points_for_discount’ and ‘calculate_points’ functions in the ‘WC_Points_Rewards_Manager’ class.

This would allow plugins such as currency conversion plugins to hook in to the amount of points earned and needed to redeem and modify these values. This is vital to currency conversion plugins, otherwise the wrong amount of points is applied, which could lead to significant losses to the store.

Autor

Estado actual

Abrir

Última actualización: diciembre 15, 2019

0 comentarios

Conéctate para comentar esta solicitud de funcionalidad.