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

    (@glx77)

    Hello @dimamel ,

    sorry for the issue you’re facing, I take a look and get you in touch

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @dimamel ,
    can you reach your issue [email protected], and mention i need to have access to your plugin (pdf receipt, to take a look.

    Regards

    Hi folks! Alex here from GiveWP Priority Support. From what I understand, Weglot doesn’t have access to GiveWP settings, which is where the content of PDF receipts is entered. If that’s true, and if this is about translating PDFs themselves, this won’t be possible with Weglot.

    To my knowledge, Weglot also does not create a post for each new language. If it did, you’d able to have a form for each language and leverage per-form PDF content settings available in GiveWP.

    Thanks, have a good day!

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hello @alexwcoleman ,

    thank you for your message it’s appreciate ;). Concerning the pdf, is there a filter which allows you to recover the content which will generate the pdf? if so I could recover it and translate it. For your information, this is already what we do with the woocommerce plugin to translate invoices.

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @alexwcoleman ,

    hope you’re fine ?
    I’ve 2 questions :
    in the method __give_get_receipt() their is possible to add a filter before send $data via json like
    $data = apply_filters(‘modify_give_receipt_data’, $data, $atts);
    so th method would looks like

    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 = apply_filters(‘modify_give_receipt_data’, $data, $atts);
    wp_send_json( $data );
    }

    question 2 :

    in the method generate_pdf_receipt() can you add a filter to allow me interact and translate the pdf ?
    like $template_content = apply_filters(‘modify_pdf_receipt_template_content’, $template_content); at line 189 ?
    cc @dimamel
    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.