Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Total value is zero when using shipping cost

  • Resolved Herbert

    (@herbie4)


    using wc 2.3.7
    if I call: $wpo_wcpdf->get_woocommerce_totals(); it gives me:

    Array ( [cart_subtotal] => Array ( [label] => Subtotal [value] =>
    € 39,95
    ) [shipping] => Array ( [label] => Verzending
    [value] =>
    € 8,00
    via GLS
    ) [order_total] => Array ( [label] => Totaal [value] =>
    € 0,00
    (Inclusief
    € 8,32
    BTW 21%) ) )

    Here the total value is zero!?

    If I open an invoice without shipping cost the total amount is correct.

    Any ideas out there why this is happening?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • UPDATE: I traced the error to missing order data in the database table woocommerce_order_itemmeta. Happened only on one order so I think this not related to this plugin.

    Plugin Author Ewout

    (@pomegranate)

    This plugin merely takes the totals from WooCommerce and outputs them in a table. If you change anything in an order, you often have to press “Calculate Taxes” and “Calculate Total” to make sure all the prices/changes are taken into account.

    Happy selling!

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Total value is zero when using shipping cost’ is closed to new replies.