Removing sales tax from tickets using functions.php

Home Forums Ticket Products Event Tickets Plus Removing sales tax from tickets using functions.php

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1616254
    Bob
    Participant

    I found this post

    Is this the proper code to use if we want to disable tax on ticket sales?
    The client has other products which require tax but none of her classes are taxed

    add_action( 'event_tickets_after_save_ticket', 'tribe_disable_taxes_ticket_product', 10, 2 );
    function tribe_disable_taxes_ticket_product( $post_id, $ticket ) {
    update_post_meta( $ticket->ID, '_tax_status', 'none' );
    update_post_meta( $ticket->ID, '_tax_class', 'zero-rate' );
    }

    Will this ever be an option in the settings we can just check a box?

    #1616255
    Bob
    Participant
    #1616460
    Sky
    Keymaster

    Hi there,

    Thanks for reaching out. I will try to help with your question.

    This code should still work, but I’m guessing it is specific to WooCommerce tickets. Our plugins do not handle any payment or tax information themselves, but since the tickets are generated as WooCommerce Products, this looks like it just updates the product meta after saving.

    As this functionality is part of the specific ecommerce solution that you use, I don’t see it being added as a feature to our plugin. However, you can always suggest this over on our User Voice Forum. If enough people vote for the suggestion, they may look into the feasibility of adding this as a feature.

    Hope that helps! Please let me know if you have any additional questions about this.

    Thanks,
    Sky

    #1619869
    Bob
    Participant

    Thanks you

    #1620808
    Sky
    Keymaster

    Hi again,

    You’re very welcome! Glad I could help.

    Please let us know if you have any questions or issues in the future.

    Thanks,
    Sky

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing sales tax from tickets using functions.php’ is closed to new replies.