• Resolved tsquared150

    (@tsquared150)


    Trying to upload donations from a past databse and it is thinking donations are duplicates that are not, and not importing them. Is there an option to force the importer to add the duplicate donations?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @tsquared

    You can copy the code from below link and bypass the duplicated donation check for the donation that is getting imported via CSV.

    Let me know if there is anything else I can help you with.

    https://gist.github.com/raftaar1191/8e25d93486ff62c2f1830a5d6fbeb935

    Thread Starter tsquared150

    (@tsquared150)

    Thank you! I would just add this code to my functions.php file correct?

    yes @tsquared, you need to add this file in the child theme functions.php file
    Let me know if this work for you or not?

    Regard
    Deepak

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    @tsquared150 — did that snippet resolve the issue for you? We’d love to hear how it went.

    Thread Starter tsquared150

    (@tsquared150)

    Sorry, just got to this and did another import and it is still is not importing what it is thinking is duplicate donations.

    I have a theme that has a main theme and a child theme. I added the code to the functions.php of the child theme.

    This is what the code looks like for that file. Maybe I didn’t add it correctly?

    <?php
    
    // enqueue the child theme stylesheet
    
    Function qode_child_theme_enqueue_scripts() {
    	wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css'  );
    	wp_enqueue_style( 'childstyle' );
    }
    add_action( 'wp_enqueue_scripts', 'qode_child_theme_enqueue_scripts', 11);
    
    /**
     * Check if donation is duplicated or not before importing.
     *
     * @return bool
     */
    function give_check_import_donation_duplicate_callback( $value ) {
    	return false;
    }
    add_filter( 'give_check_import_donation_duplicate', 'give_check_import_donation_duplicate_callback' );
    ?>
    Thread Starter tsquared150

    (@tsquared150)

    I just purchased the Give tool so should I move this to the support through the Give site?

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    @tsquared150 — we’d love to help you in Priority Support, yes:
    https://givewp.com/priority-support

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate Donations in Import’ is closed to new replies.