Skip to content

Commit

Permalink
chore: use wc_price for amount suggestions
Browse files Browse the repository at this point in the history
Update wcdp_step_1_amount.php and readme.txt
  • Loading branch information
jonas-hoebenreich committed Jan 17, 2025
1 parent 1d07f9a commit 3a0304a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/templates/wcdp_step_1_amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
$option = array(
'input-id' => 'wcdp_amount_' . str_replace('.', '-', $suggestion),
'input-value' => $suggestion,
'label-text' => sprintf($price_format, '<span class="woocommerce-Price-currencySymbol">' . $currency_symbol . '</span>', $suggestion),
'label-text' => wc_price($suggestion),
);
if ($suggestion == $value_donation_amount) {
$option['input-checked'] = true;
Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ Active development of Donation Platform for WooCommerce: Fundraising & Donation

= 1.3.4 =
fix: fee recovery checkbox not being applied
fix: make $product variable global to avoid issues with some payment gateways
chore: use wc_price for amount suggestions

= 1.3.3 2024-11-17 =
feat: add style 9 to progress bar shortcode (just amount raised)
Expand Down Expand Up @@ -204,7 +206,7 @@ a11y: make hidden label also aria-hidden
dev: add anonymous_donation_checkbox_location filter
dev: add wcdp_fee_amount filter
dev: add wcdp_suggestion filter
add wcdp_default_amount filter
dev: add wcdp_default_amount filter
dev: add wcdp_clear_cache() function to clear the cache
dev: add wcdp_progress_revenue, wcdp_progress_goal & wcdp_progress_remaining filter

Expand Down

0 comments on commit 3a0304a

Please sign in to comment.