Skip to content
Advertisement

Display Custom Total Saving in generated invoice in WooCommerce 3

In WooCommerce I am using WooCommerce Print Invoices & Packing lists plugin…

How can I display the total savings of any order in the invoices generated by this plugin ?

1 year ago I have been using this code based on [this answer] and that was working before I updated WooCommerce :

JavaScript

So now it doesn’t works anymore. I have tried to make changes without success.

So what is the right solution?

Advertisement

Answer

Here is the updated code that will work for WooCommerce version 3+:

JavaScript

This should works for you now


Related threads:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement