• I need a mathematical field 🙂 in the html/pdf.
    I need to calculate 19% tax in the amount of the donor and tried it with custom code.

    Can someone help me?

    After this line:
    Amount: {price}
    I need something like:
    tax within this amount 19%: {price/119*100}

    So I used custom code but when I use it there is a still no output?

    // function für neuen tag hinzufügen
    function my_custom_prefix_add_sample_referral_tag( $payment_id ) {
    give_add_email_tag( ‘referral’, ‘This tag can be used to output the custom referral field’, ‘my_custom_prefix_get_donation_referral_data’ );
    }

    // neuen tag hinzufügen
    add_action( ‘give_add_email_tags’, ‘my_custom_prefix_add_sample_referral_tag’ );

    // die function welche dann entsprchend ersetzt
    function my_custom_prefix_get_donation_referral_data( $payment_id ) {
    $payment_meta = give_get_payment_meta( $payment_id );
    $output = $payment_meta[‘price’] * 100 / 119; // like this
    return $output;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    We’re focused on Donations and not physical products. Maybe someone else from the community can help chip in, but supporting adding taxes within our plugin is not something we can provide support for.

    Thanks!

    Thread Starter WP—Fan

    (@wp-fan-2)

    I hoped that someone else is able to help me. I just need the output of a calculated number in the email and the pdf dokument extension which I also bought from you.

    No further calculation.

    Just a printout for my supporters, because in Germany its mandatory by law that you state the tax on a support. I have to give 19% away :-(.

    That’s life :-).

    I use “My Custom Functions”
    https://wordpress.org/plugins/my-custom-functions/
    which is compatible and supported by GIVE and very cool.

    So maybe someone can help.

    Thread Starter WP—Fan

    (@wp-fan-2)

    What is the name of the function for getting the price out of the price_id?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Tax to the email and pdf document’ is closed to new replies.