Title: Feature request: tax
Last modified: January 2, 2022

---

# Feature request: tax

 *  [Jaegers.Net](https://wordpress.org/support/users/jaegersnet/)
 * (@jaegersnet)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/feature-request-tax-2/)
 * Hi Joseph,
 * I would like to display the tax value on the receipt (or tickets). I implemented
   a workaround for this, but it would be great, if it was in the original code.
 * What I did:
 * in mt-notifications.php:
 *     ```
       function mt_format_purchase
       ...
   
       $total       = ( $discount !== $price ) ? $total + $discount * $ticket['count'] : $total + $price * $ticket['count'];
   
       // Added by me
       $tax		 = 0.19; // for 19 % tax
       $net		 = round($total / (1 + $tax), 2);
       $vat		 = $total - $net;
       // End of my addition						
   
       $display_app = '';
       ...
       if ( $is_html ) {
         $output = wpautop( $output . __( 'Ticket Total', 'my-tickets' ) . ': ' . strip_tags( 
         apply_filters( 'mt_money_format', $total ) ) . "\n";
   
         // Modified and added by me
   
         $output .= ($tax > 0 ? 
             __( 'Net value', 'my-tickets' ) . ': ' . strip_tags( apply_filters( 'mt_money_format', $net ) ) . "\n"
             . __( 'Vat', 'my-tickets' ) . ' ' . round(100 * $tax, 0) . '%: ' . strip_tags( apply_filters( 'mt_money_format', $vat ) ) 
           : '')
         );
       } else {
         $output .= $sep . __( 'Ticket Total', 'my-tickets' ) . ': ' . strip_tags( apply_filters( 'mt_money_format', $total ) ) . $sep;
         $output .= $sep . __( 'Net value', 'my-tickets' ) . ': ' . strip_tags( apply_filters( 'mt_money_format', $net ) ) . $sep;
         $output .= $sep . __( 'Vat', 'my-tickets' ) . ' ' . round(100 * $tax, 0) . '%: ' . strip_tags( apply_filters( 'mt_money_format', $vat ) ) . $sep;
       }
   
       // End modification by me
       ```
   
 * For me this was fine (except the hard coded value for the tax).
 * But it would be also great, if there was the possibility the assign different
   tax values to the tickets. For example:
 * We sell regular tickets (for the admission) with a lower tax, but also “vouchers”
   for merchandise wich have an higher tax.
 * Best regards
 * Michael
    -  This topic was modified 4 years, 5 months ago by [Jaegers.Net](https://wordpress.org/support/users/jaegersnet/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/feature-request-tax-2/#post-15223224)
 * I’ll look at this for my next release. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Feature request: tax’ is closed to new replies.

 * ![](https://ps.w.org/my-tickets/assets/icon-256x256.png?rev=1097581)
 * [My Tickets - Accessible Event Ticketing](https://wordpress.org/plugins/my-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/my-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-tickets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/feature-request-tax-2/#post-15223224)
 * Status: not resolved