{variable} for subtotal minus tax? (brutto / netto) Germany

Jason71
Pathfinder
97 0 30

Hey guys!

Is there any variable or workaround in Shopify for order printer app that let's me enter a value for „subtotal – taxes = value“?

For German shopify users, I need to display the netto (price excluding taxes) price on my invoices. Any ideas?

I didn't know where to post this thread, so admins please feel free to move it to another forum.

Thanks in advance.

Jason

0 Likes
Mircea_Piturca
Shopify Partner
1459 39 284

Not sure in what page you are but In Liquid you can use the Math filters: https://docs.shopify.com/themes/liquid/filters/math-filters#minus

{{ product.price | minus: 15 }}
Finally—Add variant descriptions to your products
0 Likes
Jason71
Pathfinder
97 0 30

Thanks for your quick reply Mircea,

is it possible to use something like minus 19%, too?

{{ product.price | minus: 19% }}

 Or is there any other workaround to subtract 19% from the subtotal and display it on my Order Printer invoice?

Thanks again and all the best.

Cheers

0 Likes
Mircea_Piturca
Shopify Partner
1459 39 284

You can use times for that:

https://docs.shopify.com/themes/liquid/filters/math-filters#divided_by

{{ product.price | divided_by: 1.19 }}
Finally—Add variant descriptions to your products
0 Likes
Jason71
Pathfinder
97 0 30

Hello Mircea,

thanks for the math filter first!

My solution would be to divide the price by 1,19.
But when I do it so it does not place the comma at the right place and uses too much digits.

For example with 30,00€

{{ subtotal_price | divided_by: 1.19 }}

It outputs: 2521.0084033613443 - But what I need is: 25,21

Any ideas?

0 Likes
Mircea_Piturca
Shopify Partner
1459 39 284

Yes sorry, wrong example, was thinking at something else but yes, use the math filters to do whatever price and taxes operation you need. I've updated my example so anyone else would not get confused.

Use a money filter to solve the 2nd issue: https://docs.shopify.com/themes/liquid/filters/money-filters#money

Finally—Add variant descriptions to your products
Jason71
Pathfinder
97 0 30

Thanks Mircea!

I solved it using:

{{ subtotal_price | divided_by: 1.19 | money }}

Now the so-called german „NETTO“ price is shown as I wanted on my order printer invoice.

Thanks a lot!

0 Likes