Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @mrdaro ,

    hope you’re fine? sorry for the issue you’re facing. I’m Edson from weglot and I’m on it. It seems we have an issue when we try to translate the result of the ajax action (get_recipe).
    I get you in touch

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @mrdaro ,

    hope you’re fine ?
    I’ve investigate and it seems thatthe ajax method who return the result page is not correct.

    can you access this file : and add this code line 771 : $data = preg_replace('/(\v|\s)+/', " ", $data);
    so the code should be

    function __give_get_receipt() {
    
    	$get_data = give_clean( filter_input_array( INPUT_GET ) );
    
    	if ( ! isset( $get_data['shortcode_atts'] ) ) {
    		give_die();
    	}
    
    	$atts = (array) json_decode( $get_data['shortcode_atts'] );
    	$data = give_receipt_shortcode( $atts );
    	$data = preg_replace('/(\v|\s)+/', " ", $data);
    	wp_send_json( $data );
    }

    it’s not the final solution, I want to valid if is ok on your side and after that we have to ask the plugin owners of wp – donation if they can provide us a hook.filter to do it without modify the plugin file

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translating GiveWP Donation Confirmation page’ is closed to new replies.