Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter makmad

    (@makmad)

    sweeeeeet !!!

    thank you so so much Eric!

    Thread Starter makmad

    (@makmad)

    Thanks so much for your highly appreciated effort Eric!

    Unfortunately, the update yields the original campaigns to be calculated twice the total funding amount of original + its translations and the translated campaign ends up correctly, i.e., having one original and one translation, the translation shows exactly the total amount as expected with All-in-one WPML.

    E.g.: Campaign 1 = $ 10
    Translation 1 of Campaign 1 = $20
    TOTAL on each campaign with All-in-one WPML:
    Campaign 1 = $60 (<— that’s twice the total)
    Translation 1 of Campaign 1 = $30 (<— this is the correct total)

    Current work-around is to keep All-in-one WPML 1.0.2 along with the legacy class-campaign.php from Appthemer Crowdfunding 1.8.2..

    The totals in the DB show correctly after All-in-one WPML update 1.2.0 but above glitch in totals shows in EDD/Appthemer Crowdfunding totals. If recalculating totals via EDD plugin the DB totals get out of sync. with manual corrections in DB required. That is, recalculating totals via EDD makes the glitch worse.

    Maybe some further fine tuning is required with All-in-one WPML being an integral part of (a) consistently presented multilingual campaign(s)..

    Continued thanks in advance for another look into it, Karim

    any news on this issue? our backer count is totally screwed requiring hands-on all-the-time..

    it should be in in the table:

    wp_postmeta

    in our case in the meta_key:

    edd_variable_prices

    (just search wp_postmeta for the string ‘amount’ shall it not be in this specific meta_key)

    After some entries and deletions, the edd_variable_prices meta_value looked like this:

    a:6:{i:0;a:4:{s:4:”name”;s:8:”Donation”;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:0:””;}i:1;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:2;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:3;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}i:4;a:4:{s:4:”name”;s:0:””;s:6:”amount”;s:4:”0.00″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”5″;}s:0:””;a:1:{s:6:”bought”;i:-3;}}

    where you can see the negative value i:-3 at the very end which actually is the ‘backer count’.. adjusting it will make it.

    In our case (donation campaigns without limits), the complete initial meta_value for this (0 backers) reads:

    a:1:{i:0;a:4:{s:4:”name”;s:8:”Donation”;s:6:”amount”;s:1:”0″;s:5:”limit”;s:0:””;s:6:”bought”;s:1:”0″;}}

    This is the code we added into the plugin “appthemer-crowdfunding”
    —-> includes
    class-campaign.php (line 254)
    to at least negative backers..

    254		if ( $count < 0 ) {
    		$count = 0; // Don't ever show negative backers
    		}

    a plugin to consistently delete, cancel, etc. test- or failed payments is definitely a must.. nevertheless, the elegant (expected) way would be to have just a working edd / crowdfunding environment

    please let us know what you plan and maybe we can contribute!

    same happens to us when deleting test payments.. the backers count even went negative which we could fix with some additional code – however, the “simple” arithmetics of counting backers up and down (addition and subtraction) does not work consistently.

    Only workaround for now is to adjust backers in database..

    the backer count code is in appthemer-crowdfunding plugin whereas the arithmetics for deleting is in edd I guess..

    any idea to make it consistent and synchronized would be highly appreciated!

    (Crowdfunding by Astoundify Version 1.8.2)

    https://ww.wp.xz.cn/plugins/appthemer-crowdfunding/

Viewing 6 replies - 1 through 6 (of 6 total)