• bhavana

    (@bhavana)


    Hello There,
    Your plugin is so nice. I want to ask you that my requirement is as follow:
    For Ex. My targeted amount is $5000 and till date donation amount is
    $1000 then it should display $4000 more we need .
    Can we do such thing using your plugin? Is there any way?
    Please let me know.

    Thank you in advance ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • christopherross

    (@christopherross)

    The plugin doesn’t have a method to do that at the moment but if you add this code to the following code to ourprogress.php it will do it for you by inserting [show_ourprogress_remaining] into your text or <?php echo show_ourprogress_remaining();?> into your theme.

    function show_ourprogress_remaining() {
    
    	if(get_option("ourprogressformat")) {$format = get_option("ourprogressformat");} else {$format = "$%(#10n";}
    	if(get_option("ourprogressmax")) {$progress = get_option("ourprogressmax");} else {$max = 0;}
    	if(get_option("ourprogressprogress")) {$progress = get_option("ourprogressprogress");} else {$progress = 0;}
    
    	return my_money_format ($format,($max-$progress));
    }
    
    add_shortcode('show_ourprogress_remaining','show_ourprogress_remaining');

    Hi Chris,
    Thanks for a cool plugin. In the “ourprogress.php”, where abouts do you put the code snippet. I tried putting the snippet of code at the end but when I updated my site I had the code written out at the top of my webpage. Please can you help.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Our Progress] Want to display remaing amount’ is closed to new replies.