Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter wpjoey

    (@wpjoey)

    Hi,

    Thank you for your prompt response.

    I don’t know what happened but after duplicating the feed and tried your test, the Stock Qty value shows up properly.

    With that, I decided to use the duplicated feed instead and deleted the old one.

    Thank you.

    Thread Starter wpjoey

    (@wpjoey)

    Hi,

    Yes, I am using the premium license template.

    However, I already figured everything out using the below. Thanks for your advice on your first response.

    $order->get_id();
    $order->get_order_key();
    $order->get_formatted_order_total();
    $order->get_cart_tax();
    $order->get_currency();
    $order->get_discount_tax();
    $order->get_discount_to_display();
    $order->get_discount_total();
    $order->get_fees();
    $order->get_formatted_line_subtotal();
    $order->get_shipping_tax();
    $order->get_shipping_total();
    $order->get_subtotal();
    $order->get_subtotal_to_display();
    $order->get_tax_location();
    $order->get_tax_totals();
    $order->get_taxes();
    $order->get_total();
    $order->get_total_discount();
    $order->get_total_tax();
    $order->get_total_refunded();
    $order->get_total_tax_refunded();
    $order->get_total_shipping_refunded();
    $order->get_item_count_refunded();
    $order->get_total_qty_refunded();
    $order->get_qty_refunded_for_item();
    $order->get_total_refunded_for_item();
    $order->get_tax_refunded_for_item();
    $order->get_total_tax_refunded_by_rate_id();
    $order->get_remaining_refund_amount();

    Thanks.

    • This reply was modified 5 years, 1 month ago by wpjoey.
    • This reply was modified 5 years, 1 month ago by wpjoey.
    Thread Starter wpjoey

    (@wpjoey)

    Hi Ewout,

    Thanks for your response.
    I had tried using strip_tags() as well as per the below code and it messes invoice.
    By the way, the invoice only got messed up if I do send it manually after confirming the COD payment, but not if it goes out automatically after the checkout payment.

    foreach( $this->get_woocommerce_totals() as $key => $total ):
    if( $key == ‘shipping’ )
    $order_shipping = strip_tags($total[‘value’]);
    $order_shipping= str_replace(array(‘Shipping’, ‘AED’,’via’,’Standard’,'(ex. VAT)’, ”, ‘ ‘), ”, trim($order_shipping));
    endforeach;

    This is the first error line that I get in the pdf invoice.

    W76:\a134xranminpgp\htdocs\domain.com\wp-content\themes\Avada\woocommerce\pdf\custom-Premium\invoice.php

    Regarding the $order->get_total(), I know that this is the best way, however, I need to put my shipping right after all the list of the purchase items, that is why I need to customize the formatting and need to get the shipping cost and shipping VAT separately.

    Is there any way I can format the invoice as per below without extracting the amount from the frontend string and by just simply using the $order->get_total()?

    https://ibb.co/m4pgyPj

    Can you assist me with this, please?

    Thanks.

    Thread Starter wpjoey

    (@wpjoey)

    Hi,

    I am wondering if is there an option that will show the total amount in words?

    Thanks.

    Thread Starter wpjoey

    (@wpjoey)

    Hi,

    Thanks for your response.
    I have tested the plugin and it works pretty well as needed.

    Cheers!

    Thread Starter wpjoey

    (@wpjoey)

    Figured this one out and it wasn’t from woocommerce code but from the custom code created by the one who developed the website which is just a minor computation error of the data.

    Thread Starter wpjoey

    (@wpjoey)

    Hi @alexmigf

    Thanks for the help.
    I’ll try what you’ve suggested and hoping it will work well.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)