Replacing 0.00 with Free for free levels when set in advanced settings#45
Replacing 0.00 with Free for free levels when set in advanced settings#45dwanjuki wants to merge 1 commit into
Conversation
Using preg_replace to cover an edge case
|
Thanks for taking this on, @dwanjuki. While reviewing this for merge we surfaced a couple of issues that I think mean we need to step back and rethink the approach. I'm moving this to draft while we figure out the right path. What this PR currently does: swaps two of the four The concerns:
The deeper issue we ran into: While reviewing, we realized Suggested path forward: I think the right fix happens at a different layer — either:
Either way, while we're in there, we should also make the Happy to chat through the approach before you spend more time on this — let me know what you think. |
Using preg_replace to replace "0.00" with free when not preceded by a currency symbol and not part of cost eg. 50.00
All Submissions:
Changes proposed in this Pull Request:
Resolves: #41
How to test the changes in this Pull Request:
Other information:
Changelog entry