Hey - yes I did all the re-calculation of the different tools. Even deleting the testdata.
--> The Dashboard widget shows the correct numbers - so the data is correct. See screenshot: https://picload.org/image/rrcwopio/dr-give-dashboard.png
Yes I changed the goal to 2000 instead of 1900 and re-saved the form. The calculation in "percentage" then adjusted correctly down to 72% instead of 75%.
But with the amount setting it's still "1 CHF of 1 CHF" --> it somehow doesn't get the amounts from $income and $goal even though they are surely correctly in the code because the percentage calculation works.
I also switched the site into english to make sure that it's not a mistake from localization - but there again it says "1 CHF of 1 CHF raised":
I also deactivated all other plugins - but that did not help either.
So may be there must be something wrong in that area of shortcode_goal.php?
<?php
if ( $goal_format !== 'percentage' ) :
// Get formatted amount.
$income = give_human_format_large_amount( give_format_amount( $income ) );
$goal = give_human_format_large_amount( give_format_amount( $goal ) );
echo sprintf(
/* translators: 1: amount of income raised 2: goal target ammount */
__( '%1$s of %2$s raised', 'give' ),
'<span class="income">' . apply_filters( 'give_goal_amount_raised_output', give_currency_filter( $income ) ) . '</span>',
'<span class="goal-text">' . apply_filters( 'give_goal_amount_target_output', give_currency_filter( $goal ) ) . '</span>'
);
WordPress ...
ما را در سایت WordPress دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 458
تاريخ: چهارشنبه
27 مرداد
1395 ساعت: 23:07