• Resolved pandabrand

    (@pandabrand)


    Hi,
    I’m using AvaTax for calculating taxes. My client is going to use the admin dashboard to create some of their orders and send the order totals to via API endpoint for processing. I’m having a problem with getting the taxes to calculate and be available to the API (I’m building a plugin to send these values).
    When I click the ‘Recalculate’ button the taxes are generated but the only show on the dashboard edit order screen. When I try to use either the ‘get_taxes’ or ‘get_tax_totals’ method the return empty arrays. What do I need to do to make sure I have some tax information?
    Thanks.
    Here’s my system report

    
    

    ### WordPress Environment ###

    WordPress address (URL): https://tonal.test
    Site address (URL): https://tonal.test
    WC Version: 3.7.0
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: ? 5.1.3 – There is a newer version of WordPress available (5.2.4)
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache/2.4.25 (Debian)
    PHP Version: 7.2.16
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.52.1
    OpenSSL/1.0.2r

    SUHOSIN Installed: –
    MySQL Version: 5.7.25
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Your server does not have the SoapClient class enabled – some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    Zapier Integration – Active Feeds: ? 1 active Zapier Feed.
    Zapier Integration – Cron Tasks: ? 0 pending Zapier cron tasks.
    Zapier Feed #1 Name: ? No Order STOCK Zapier
    Zapier Feed #1 Webhook URL: ? https://hooks.zapier.com/hooks/catch/4210699/p8fk9m/
    Zapier Feed #1 Trigger: ? New Order
    Zapier Feed #1 Test Result: ? Successfully sent sample data to https://hooks.zapier.com/hooks/catch/4210699/p8fk9m/.

    ### Database ###

    WC Database Version: 3.7.0
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ?
    Total Database Size: 95.84MB
    Database Data Size: 49.85MB
    Database Index Size: 45.99MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 1.52MB + Index: 0.36MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 13.52MB + Index: 9.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 9.52MB + Index: 10.09MB + Engine InnoDB
    wp_EWD_OTP_Customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_EWD_OTP_Custom_Fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_EWD_OTP_Fields_Meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_EWD_OTP_Orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_EWD_OTP_Order_Statuses: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_EWD_OTP_Sales_Reps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 1.33MB + Index: 0.06MB + Engine InnoDB
    wp_pantheon_sessions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 17.55MB + Index: 22.06MB + Engine InnoDB
    wp_posts: Data: 3.52MB + Index: 1.16MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.11MB + Index: 0.16MB + Engine InnoDB
    wp_term_relationships: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.13MB + Index: 0.16MB + Engine InnoDB
    wp_usermeta: Data: 1.52MB + Index: 2.03MB + Engine InnoDB
    wp_users: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.17MB + Index: 0.00MB + Engine InnoDB
    _pantheon_heartbeat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Security ###

    Secure connection (HTTPS): ?
    Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?

    ### Active Plugins (20) ###

    Advanced Custom Fields PRO: by Elliot Condon – 5.8.5
    Duplicate Post: by Enrico Battocchi – 3.2.3
    Google Tag Manager for WordPress: by Thomas Geiger – 1.10.1 – Not tested with the active version of WooCommerce
    Members: by Justin Tadlock – 2.2.0
    Page Links To: by Mark Jaquith – 3.1.2
    Tonal Sales Tool: by – 0.0.1
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.0.3
    Woo Orders Date Range Filter: by TheWPexperts – 2.0.0
    WooCommerce Admin Custom Order Fields: by SkyVerge – 1.12.0 – 1.13.0 is available
    WooCommerce AvaTax: by SkyVerge – 1.8.2 – 1.9.0 is available
    WooCommerce Direct Checkout: by QuadLayers – 2.2.4 – Not tested with the active version of WooCommerce
    WooCommerce Affirm Gateway: by WooCommerce – 1.1.8
    WooCommerce Stripe Gateway: by WooCommerce – 4.3.0
    WooCommerce Max Quantity: by Isabel Castillo – 1.5.1 – Not tested with the active version of WooCommerce
    WooCommerce Smart Coupons: by StoreApps – 4.3.0 – 4.4.0 is available
    WooCommerce Zapier Integration: by OM4 – 1.8.2 – 1.9.5 is available – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.7.0 – 3.7.1 is available
    WordPress Importer: by wordpressdotorg – 0.6.4
    Yoast SEO Premium: by Team Yoast – 11.6
    WP Mail SMTP: by WPForms – 1.6.2

    ### Inactive Plugins (2) ###

    Akismet Anti-Spam: by Automattic – 4.1.1
    Hello Dolly: by Matt Mullenweg – 1.7.1

    ### Dropin Plugins (1) ###

    maintenance.php: maintenance.php

    ### Settings ###

    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: ?

    ### WC Pages ###

    Shop base: #14 – /buy/
    Cart: #15 – /cart/
    Checkout: #16 – /checkout/
    My account: #17 – /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: UnderStrap Child
    Version: 0.5.5
    Author URL: https://www.holgerkoenemann.de
    Child Theme: ?
    Parent Theme Name: UnderStrap
    Parent Theme Version: 0.9.1 – 0.9.4 is available
    Parent Theme Author URL: https://www.holgerkoenemann.de
    WooCommerce Support: ?

    ### Templates ###

    Overrides: understrap/woocommerce/cart/cart-empty.php
    understrap-child/woocommerce/cart/cart-shipping.php version 3.2.0 is out of date. The core version is 3.6.0
    understrap-child/woocommerce/cart/cart-totals.php
    understrap-child/woocommerce/cart/cart.php version 3.4.0 is out of date. The core version is 3.7.0
    understrap/woocommerce/cart/mini-cart.php version 3.5.1 is out of date. The core version is 3.7.0
    understrap-child/woocommerce/cart/proceed-to-checkout-button.php
    understrap-child/woocommerce/checkout/form-checkout.php version 2.3.0 is out of date. The core version is 3.5.0
    understrap-child/woocommerce/checkout/form-coupon.php
    understrap-child/woocommerce/checkout/form-login.php
    understrap/woocommerce/checkout/form-pay.php
    understrap-child/woocommerce/checkout/form-shipping.php version 3.0.9 is out of date. The core version is 3.6.0
    understrap-child/woocommerce/checkout/payment-method.php version 2.3.0 is out of date. The core version is 3.5.0
    understrap-child/woocommerce/checkout/payment.php version 3.4.0 is out of date. The core version is 3.5.3
    understrap-child/woocommerce/checkout/review-order.php
    understrap-child/woocommerce/checkout/thankyou.php version 3.2.0 is out of date. The core version is 3.7.0
    understrap-child/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0
    understrap-child/woocommerce/emails/customer-processing-order.php version 2.5.0 is out of date. The core version is 3.7.0
    understrap-child/woocommerce/emails/email-footer.php version 2.3.0 is out of date. The core version is 3.7.0
    understrap-child/woocommerce/emails/email-header.php
    understrap-child/woocommerce/emails/email-styles.php
    understrap/woocommerce/global/form-login.php version 3.3.0 is out of date. The core version is 3.6.0
    understrap-child/woocommerce/global/quantity-input.php version 3.4.0 is out of date. The core version is 3.6.0
    understrap/woocommerce/loop/add-to-cart.php
    understrap/woocommerce/loop/orderby.php version 3.3.0 is out of date. The core version is 3.6.0
    understrap/woocommerce/myaccount/downloads.php
    understrap/woocommerce/myaccount/form-edit-account.php
    understrap/woocommerce/myaccount/form-edit-address.php version 3.4.0 is out of date. The core version is 3.6.0
    understrap/woocommerce/myaccount/form-login.php version 3.5.1 is out of date. The core version is 3.6.0
    understrap/woocommerce/myaccount/form-lost-password.php
    understrap/woocommerce/myaccount/form-reset-password.php version 3.5.1 is out of date. The core version is 3.5.5
    understrap/woocommerce/myaccount/my-address.php
    understrap/woocommerce/myaccount/my-orders.php
    understrap/woocommerce/myaccount/navigation.php
    understrap/woocommerce/myaccount/orders.php version 3.2.0 is out of date. The core version is 3.7.0
    understrap/woocommerce/product-searchform.php
    understrap-child/woocommerce/single-product/add-to-cart/simple.php
    understrap-child/woocommerce/single-product/add-to-cart/variable.php version 3.4.1 is out of date. The core version is 3.5.5
    understrap-child/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    understrap-child/woocommerce/single-product/meta.php
    understrap-child/woocommerce/single-product/price.php
    understrap-child/woocommerce/single-product/product-attributes.php
    understrap-child/woocommerce/single-product/product-image.php version 3.3.2 is out of date. The core version is 3.5.1
    understrap/woocommerce/single-product/rating.php version 3.1.0 is out of date. The core version is 3.6.0
    understrap-child/woocommerce/single-product/related.php
    understrap-child/woocommerce/single-product/tabs/tabs.php
    understrap-child/single-product.php version – is out of date. The core version is 1.6.4

    Outdated Templates: ?

    Learn how to update

    ### Action Scheduler ###

    Complete: 94
    Oldest: 2019-10-09 15:59:42 +0000
    Newest: 2019-10-23 21:32:16 +0000

    Pending: 0
    Oldest: –
    Newest: –

    Canceled: 0
    Oldest: –
    Newest: –

    In-progress: 0
    Oldest: –
    Newest: –

    Failed: 0
    Oldest: –
    Newest: –

    `

Viewing 1 replies (of 1 total)
  • AJ a11n

    (@amandasjackson)

    Hi @pandabrand

    I would first recommend updating the plugin

    WooCommerce AvaTax: by SkyVerge – 1.8.2 – 1.9.0 is available

    If this doesn’t help, Please contact us at WooCommerce.com > My Account > Tickets. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

Viewing 1 replies (of 1 total)
  • The topic ‘Tax via Avatax calculates but doesn’t save’ is closed to new replies.