wpjoey
Forum Replies Created
-
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.
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.
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()?
Can you assist me with this, please?
Thanks.
Hi,
I am wondering if is there an option that will show the total amount in words?
Thanks.
Forum: Plugins
In reply to: [WooCommerce] Display subtotal after discountHi,
Thanks for your response.
I have tested the plugin and it works pretty well as needed.Cheers!
Forum: Plugins
In reply to: [WooCommerce] Purchase Order VAT showing only for 1 itemFigured 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.
Hi @alexmigf
Thanks for the help.
I’ll try what you’ve suggested and hoping it will work well.Thanks.