Hide tax amount
-
Hello, Thanks for your great plugin
I have to hide the tax amount on the invoice and keep the message that the price includes TAX.Could you help?
-
Hello @heshamsaad
The easy way is using our Premium Templates extension where you could decide which type of prices do you want to display using the customizer, and also display custom messages using a custom block if needed.
Using only the free plugin needs more work, you need to show us your tax settings.
Thanks for your reply,
All prices include 14% TAX, So on the invoice it showing that the price include xx TAX name, So what I need is to only hide the TAX amount
Thanks
Hi @heshamsaad
I know, but I will need you to show me the tax settings for that tax. You can host it here.
https://ibb.co/album/0jkVRP Here are the TAX settings
-
This reply was modified 4 years, 11 months ago by
Hesham Saad.
Hi @heshamsaad
What is the complete “Tax name”? It’s cut out.
I am sorry for delay “value added tax”
Thanks
Hi @heshamsaad
Thank you!
Please add the code snippet below to your theme functions.php file:
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) { ?> .eg-value-added-tax-1 { display: none; } <?php }, 10, 2 );If you never worked with action/filters please read this documentation page: How to use filters
Hello, Thanks for your reply
I have added the code on my child theme but it didn’t work.please check the screenshot https://share.getcloudapp.com/RBulrR9P
Hi @heshamsaad,
Please replace the code snippet my colleague sent with the following:
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) { ?> .invoice small.includes_tax > .woocommerce-Price-amount { display: none; } <?php }, 10, 2 );This code snippet should be added to the functions.php of your child theme or via a plugin like Code Snippets. If you haven’t worked with functions.php or code snippets before please read this guide: How to use filters
Hello @kluver Thanks for your reply
I have tested your code but it didn’t work too.
@heshamsaad The code @alexmigf posted should work for when you have set “Display prices during cart and checkout” to “Excluding tax”, and “Display tax totals” to “Itemized” and the code @kluver posted should work if “Display prices during cart and checkout” is set to “Including tax” (and “Display tax totals” also to “Itemized”).
Looking at your screenshot, the latter is the case for your setup, so I would expect that to work. How did you add that code to your site exactly?Hi @heshamsaad,
Since we haven’t heard back from you in the last two weeks, we’re assuming you found a fix, so I’ll go ahead and mark this ticket as Resolved.
Feel free to open a new topic if you have any more questions!
-
This reply was modified 4 years, 11 months ago by
The topic ‘Hide tax amount’ is closed to new replies.