• Resolved Allenvik

    (@allenvik)


    Hi everyone,
    We have a woocommerce deposits plugin, and it is deducting tax from a deposit when the buyer has a valid VAT number, the problem only happens when a deposit option is used, clearly is the deposits plugin, please check the example below:

    NO Valid VAT
    Product price = $1
    Dep. = $0.50
    Vat = $0.20
    DUE today = $0.60

    With a Valid VAT
    Product price = $1
    Dep. = $0.50
    Vat = $0
    DUE today = $0.40 ???

    Any ideas?
    Thx

    • This topic was modified 6 years ago by Allenvik.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    If you are using the WooCommerce Deposits plugin ( https://www.woocommerce.com/products/woocommerce-deposits/), then please open a ticket?here: https://woocommerce.com/my-account/create-a-ticket/?form=ticket

    We will likely need to login to your site and take a look.

    If using another plugin, please contact their support, as this is not a WooCommerce issue.

    Hopefully that helps! Have a great one!

    Thread Starter Allenvik

    (@allenvik)

    Thank you Andrew!

    Thread Starter Allenvik

    (@allenvik)

    Hi Andrew,

    Thank you for your response.

    Thread Starter Allenvik

    (@allenvik)

    Hi,

    We think we were able to locate the area were the issue is being created, in fact the developer left a note regarding this exactly issue, however after trying couple of different solutions we were unable to resolve, can someone with a stronger PHP coding experience have a look at this and tell us how to remove the user tax without deducting it again from the initial price…

    Here is the set of codes regarding this exactly issue:

    /*
    * If the customer is excempt from VAT, remove the taxes here.
    * Either remove the base or the user taxes depending on woocommerce_adjust_non_base_location_prices setting.
    */

    if ( ! empty( WC()->customer ) && WC()->customer->get_is_vat_exempt() ) {

    $remove_taxes = apply_filters( ‘woocommerce_adjust_non_base_location_prices’, true ) ? WC_Tax::calc_tax( $line_price, $base_tax_rates, true ) : WC_Tax::calc_tax( $line_price, $tax_rates, true );

    $remove_tax = array_sum( $remove_taxes );

    $return_price = $line_price – $remove_tax;

    We appreciate any ideas, thx

    Thread Starter Allenvik

    (@allenvik)

    We have installed a new Woocommerce deposits from a different developer, and the problem was resolved. Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce deposits calculating vat incorrectly.’ is closed to new replies.