• Resolved jitugoyal02

    (@jitugoyal02)


    HI now i completed my goal and now i want to reset 0 for all products can you please tell me how we can do it ?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter jitugoyal02

    (@jitugoyal02)

    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

    Thread Starter jitugoyal02

    (@jitugoyal02)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can i reset the goal counter’ is closed to new replies.