wpovernight / woocommerce-pdf-invoices-packing-slips

Create, print & automatically email PDF invoices & packing slips for WooCommerce orders.
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
Other
99 stars 46 forks source link

Fix: filter called with a refund object in `get_billing_address()` #779

Closed MohamadNateqi closed 5 months ago

MohamadNateqi commented 5 months ago

close #778

Terminator-Barbapapa commented 5 months ago

We also need to add a check for the method here: https://github.com/wpovernight/woocommerce-pdf-ips-templates/blob/15e4280b388ea3808ebb0905c9e22f3eeb28f157/includes/class-wcpdf-templates-main.php#L1427

Calling {{billing_country}}, {{shipping_country}}, {{billing_state}} or {{shipping_state}} in the credit note, via a custom block for instance, results in a fatal error.