Hi, I asked a question in the comment on the ECO plugin on Codecanyon previously:
Hi, in a comment, you said:
“Because the plugin is for creating fees for the order, not for keeping track of notes. If the fee is free it will still be displayed but without a price.”
I wonder if we can configure that if the fee is free, it won’t be displayed in the invoice. In the Extra Production Options, we can choose if an item can be shown on the invoice. Can we do the same for the Extra Checkout Option?
And you replied:
You can use something like that in your functions.php file to override the display of free fees for the invoices and emails: add_filter( 'woocommerce_get_order_item_totals_excl_free_fees', '__return_true', 10000 );
I did it as per your instructions, added the same snippet. However, it seems to me that it exclude all ECO items, not only the free items but also the non free items, which makes the invoice look odd - the total amount is bigger than the sum of the subtotals of all individual items shown on the invoice (because some non free ECO items are not listed).
Could you let me know if the snippet is correct, or how can I solve this problem? Thank you.
Click Agree and Proceed to accept cookies and go directly to the site or click on More Information to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site. Selecting "Ask me later" will enable cookies for the next 24 hours.