Plugin Author
flinnn
(@flinnn)
Hi jitugoyal02,
thanks for reaching out.
You can correct the displayed amount by any value up or down. The best way to do this is to use the free Loco Translate plugin and run the following code page-wide:
add_filter('wcdp_progress_revenue', function($revenue, $atts) {
if ($atts['id'] != 123) return $revenue; //apply only for specific product IDs
return $revenue - 12345;
}, 10, 2);
When you use the wcdp_progress shortcode, you can add the attribute ‘cheat’ to change the amount.
Best
Jonas
hi sORRY I am not understand exactly , see now on this page :
https://boelleischlebe.com/guinea-fundraiser-2022/
i see ” CHF 3’926.45 of CHF 10’000.00ended 5 months ago ” on top that i set by shortcode that you send me..
now i want to set 0 to CHF 3’926.45 so it wll be looks like this : ” CHF 0 of CHF 10’000.00ended 5 months ago ”
how can i do this?
please guide me.
Thank you
Is there any backend db table on that i can change anything directly ?
Plugin Author
flinnn
(@flinnn)
The shortcode should be [wcdp_progress cheat=”-3926.45″ id=”123″].
Although the values are cached in the database, they are dynamically recalculated and overwritten as needed based on the orders stored in the system. Manual modification in the database is therefore not a permanent solution.