• Hello,
    I love the plugin and i think i will buy the pro version… But i want to test how i can calculate and echo a deposit of 35% of the total of the order in the PDF template, i try to call the variable and do a sum like this :
    <?php $wpo_wcpdf->get_order_grand_total() as $grandtot;
    $grandtot = $grandtot * 0.35;
    echo $grandtot; ?>

    But it doesn’t work 🙁

    How to do it ?
    Thank you very much by advance ! 🙂

    Bests Regards

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Playzare

    (@playzare)

    Sorry for this other message, is it possible to have the total price without the VAT ? i try $item[‘ex_price’] but it’s only for an item, how to have the total ?

    And how to display only the VAT too ?

    Thank you very much !

    Bests Regards

    Thread Starter Playzare

    (@playzare)

    A last last question ^^’
    Is it possible to have the variable of the order date and increase it to indicate a “validity date” of the invoice ?

    And is it posible to indicate the page number / page total in dompdf ?
    Like a <?php $font = Font_Metrics::get_font(“helvetica”, “bold”); $pdf->page_text(500,10, “Page: {PAGE_NUM} of {PAGE_COUNT}”, $font, 6, array(0,0,0)); ?> ??

    Thank you very much !

    Thread Starter Playzare

    (@playzare)

    I have succedeed to have a variable with only the price and to do a calculation with and echo it, and i have also succedeed to display the page number / page total in dompdf.

    I read that displaying the VAT was a premium feature so i will see it when i will buy the plugin, and for the variable of the order date, i’m still searching if you can help me only for this it would be very very useful 😀

    Thank you

    Bests Regards

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! That’s a lot of questions!

    First of all, more detailed prices are part of the premium templates, which come with a beautiful drag & drop editor that lets you define the price columns exactly to your needs. I see that you have found that though 🙂

    Regarding validity date, check out this thread.

    Let me know if you have any other questions!

    Ewout

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Calculation based on the total price’ is closed to new replies.