Customize pdf filename based on amount
-
Hi,
thanks for a great plugin. I was wondering if you have any code snippet to customize the filename based on the amount spent? I would like to be able to include in the filename if the total price is zero (free) or not.
I did read your page:
https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/custom-pdf-filenames/Should I do something like this? What is the amount/price total variable?
$document = wcpdf_get_document( $template_type, $order_ids );
if ($document->order->get_order_price() == 0) etc..;Cheers!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Customize pdf filename based on amount’ is closed to new replies.