You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Developer, I want to change the form's currency using the give_currency and that decided currency should be used to format/unformat the currency whenever the donation creation process is happening so that donation's amount will be correctly imported inside the database.
Current Behavior
When I change the curency using give_currency filter for specific donation form, the saniting function are not unformatting the amount came from the donation form.
Expected Behavior
I expect to use the form's currency in whole process of donation creation, so that format/unformat can be done properly.
Possible Solution
Pass form's currency when sanitizing the amount in the process of the donation creation.
use: give_get_currency( $form_id ) to get the form's currency.
Steps to Reproduce
Change the currency using the 'give_currency' filter for specific donation form and make donation you'll see that the donation amount is not formatted properly as per the currency formatting setting.
User Story
As a
Developer
, I want to change the form's currency using thegive_currency
and that decided currency should be used to format/unformat the currency whenever the donation creation process is happening so that donation's amount will be correctly imported inside the database.Current Behavior
When I change the curency using
give_currency
filter for specific donation form, the saniting function are not unformatting the amount came from the donation form.Expected Behavior
I expect to use the form's currency in whole process of donation creation, so that format/unformat can be done properly.
Possible Solution
Pass form's currency when sanitizing the amount in the process of the donation creation.
use:
give_get_currency( $form_id )
to get the form's currency.Steps to Reproduce
Related
Tasks
give_get_currency($form_id)
to get the form's currency always.The text was updated successfully, but these errors were encountered: