Run Black Friday, Cyber Monday, or other flash sales on your WordPress-powered eCommerce or membership site with WooCommerce, Easy Digital Downloads, and Paid Memberships Pro.
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes proposed in this Pull Request:
Added default currencies array as we do in PMPro and new filter to adjust the default currency for the custom module.
We should look at how the "average order revenue" is set up in the custom module so we can better accommodate different currency formats for that field. Right now we are forcing it to be a number, but some people may enter that value in a localized price format.
Resolves #60
Changelog entry
ENHANCEMENT: Now formatting sale revenue for Custom sale module.
ENHANCEMENT: Added filter swsales_custom_currencies to allow custom code to insert new currencies.
ENHANCEMENT: Added filter swsales_custom_euro_position to allow custom code to adjust the position of the euro currency symbol.
ENHANCEMENT: Added filter swsales_custom_currency to allow custom code to define the custom module report currency.
Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.
All Submissions:
Changes proposed in this Pull Request:
Added default currencies array as we do in PMPro and new filter to adjust the default currency for the custom module.
We should look at how the "average order revenue" is set up in the custom module so we can better accommodate different currency formats for that field. Right now we are forcing it to be a number, but some people may enter that value in a localized price format.
Resolves #60
Changelog entry
swsales_custom_currencies
to allow custom code to insert new currencies.swsales_custom_euro_position
to allow custom code to adjust the position of the euro currency symbol.swsales_custom_currency
to allow custom code to define the custom module report currency.