• Resolved gguldens

    (@gguldens)


    Folks,
    I have a customer problem, they miss entering their tax exemption certificates on orders, but they do add the numbers to the order notes.
    The enhancements I am looking to ask for are:
    1. Allow the admin to enter tax exempt certificates for a customer to their order and to their customer record so the system will show them the certificate and ask for it.
    2. Allow the admin to view, add, edit, delete tax certificates in the customer’s account record.

    This will go far giving my company an edge by being even more customer oriented as far as supporting the customers!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Brett Porcelli

    (@bporcelli)

    Thanks for the suggestion! I think this sounds useful and should be relatively easy to implement.

    I’ve created a GitHub issue to keep track of your request and will be working on a solution in Simple Sales Tax v6.4. I don’t have an exact ETA on when that will be released but I’m aiming for next month.

    Best regards,
    Brett

    Thread Starter gguldens

    (@gguldens)

    Brett,
    THANKS!!!

    I will be watching for the update!

    Thread Starter gguldens

    (@gguldens)

    Brett,
    Any word on when the update to allow the admin to add a certificate to an order will become available?

    Plugin Author Brett Porcelli

    (@bporcelli)

    This project got delayed a bit but I will be starting development tomorrow. I expect the feature will be delivered in roughly 3 weeks.

    Thread Starter gguldens

    (@gguldens)

    Thanks for the update!

    Plugin Author Brett Porcelli

    (@bporcelli)

    I just shipped Simple Sales Tax v7, which introduces the ability for admins to change the exemption certificate for an order on the Edit Order screen and manage a customer’s exemption certificates from the Edit User screen. I hope the new features meet your needs!

    Thread Starter gguldens

    (@gguldens)

    Brett, I downloaded the update and applied it. I went vto the customer record of the customer who prompted me to suggest the ability to edit and retrieved her certificate off the order she placed. I tried to add her certificate to her customer record, and when I click the “Add Certificate” button, the certificate doesn’t add, it just sits there? Any thoughts?

    Thread Starter gguldens

    (@gguldens)

    Brett, Tried to add a certificate to the user record of one of my test accounts, and again, the add certificate seems to have just hung.

    I am in the WooCommerce Customers page, and I clicked on the test account I wanted to add the certificate to, then proceeded to try to add it.

    Since I am filling in all the various fields using Goldys Brand’s own certificate here in Georgia, I thought I would have all the correct information to get the certificate added. Looks like I am either missing something, or something is not working as expected.

    Thanks,
    Greg G.

    Thread Starter gguldens

    (@gguldens)

    Brett, Now upon checkout, my B2B customers do not get asked to choose a certificate upon checkout. So on my test B2B account that had no certificates, the sale completed and the order was charged tax. I went into the order and followed the link to add the certificate, and it took me to the edit customer page to add the certificate with the same results as my 2 previous posts.

    Thanks,
    Greg G.

    Thread Starter gguldens

    (@gguldens)

    Brett, Tried again, and this time got a “Failed to add certificate” error. The difference here is I put “Georgia Dept of Revenue” into the “issued by” optional field. It looks like the optional field is not so optional. Still do not know what caused the failure.

    Thread Starter gguldens

    (@gguldens)

    Tried again and got the following failure message:

    Failed to add certificate: [object Object]

    The [object Object] was not on the first failure message I received.

    Found these in my php-fpm error log:

    [31-Jul-2022 13:52:07 UTC] PHP Fatal error:  Uncaught Error: Undefined constant TaxCloud\State::Georgia in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php:42
    Stack trace:
    #0 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(42): constant('TaxCloud\\State:...')
    #1 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(35): TaxCloud\ExemptState->setStateAbbr('Georgia')
    #2 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/class-sst-ajax.php(192): TaxCloud\ExemptState->__construct('Georgia', 'Resale', '308753374')
    #3 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(307): SST_Ajax::add_certificate('')
    #4 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #5 /var/www/goldysbrand.com/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #6 /var/www/goldysbrand.com/wp-admin/admin-ajax.php(187): do_action('wp_ajax_sst_add...')
    #7 {main}
      thrown in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php on line 42
    [31-Jul-2022 13:52:07 UTC] PHP Fatal error:  Uncaught Error: Undefined constant TaxCloud\State::Georgia in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php:42
    Stack trace:
    #0 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(42): constant('TaxCloud\\State:...')
    #1 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(35): TaxCloud\ExemptState->setStateAbbr('Georgia')
    #2 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/class-sst-ajax.php(192): TaxCloud\ExemptState->__construct('Georgia', 'Resale', '308753374')
    #3 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(307): SST_Ajax::add_certificate('')
    #4 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #5 /var/www/goldysbrand.com/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #6 /var/www/goldysbrand.com/wp-admin/admin-ajax.php(187): do_action('wp_ajax_sst_add...')
    #7 {main}
      thrown in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php on line 42
    [31-Jul-2022 13:55:46 UTC] PHP Fatal error:  Uncaught Error: Undefined constant TaxCloud\State::Georgia in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php:42
    Stack trace:
    #0 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(42): constant('TaxCloud\\State:...')
    #1 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php(35): TaxCloud\ExemptState->setStateAbbr('Georgia')
    #2 /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/class-sst-ajax.php(192): TaxCloud\ExemptState->__construct('Georgia', 'Resale', '308753374')
    #3 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(307): SST_Ajax::add_certificate('')
    #4 /var/www/goldysbrand.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #5 /var/www/goldysbrand.com/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #6 /var/www/goldysbrand.com/wp-admin/admin-ajax.php(187): do_action('wp_ajax_sst_add...')
    #7 {main}
      thrown in /var/www/goldysbrand.com/wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php on line 42

    Hope all this helps.

    Greg G.

    Plugin Author Brett Porcelli

    (@bporcelli)

    Hi Greg,

    Thank you for the information.

    To be honest I can’t make sense of how this error is happening. It looks like the browser is sending the value of the ExemptState field in the certificate form as “Georgia” instead of “GA”, but all of the values for that form field are state abbreviations and always have been. Also, I unfortunately can’t reproduce this error on my end despite trying in two environments 😐

    By chance do you have any overrides for the SST templates in your child theme, or any other custom code that might be interfering somehow to your knowledge? If not then my first advice would be to try reinstalling the plugin files from scratch (i.e. delete the plugin files and the re-install) and then purging any hosting caches that may be enabled (including PHP opcode cache). Your web host may be able to help with that part if you don’t know how to do that.

    You can also download a copy of the previous version of the plugin here if all else fails so you can get by in the meantime: https://downloads.wordpress.org/plugin/simple-sales-tax.6.3.13.zip

    I will keep an eye out for other reports and also continue to try to reproduce on my end.

    – Brett

    Thread Starter gguldens

    (@gguldens)

    Brett, after reading your response, I tried adding a certificate again.
    This time I put the State abbreviation into all the state fields. BTW, the text for the “Where does this exemption apply” does not mention to use the state abbreviation. Perhaps you should be asking for the abbreviation. I was successful when I put the abbreviation into that VERY LONG text box. In all previous cases, I entered the full state name.

    Still the checkout is not asking for the sales tax certificate for B2B customers. Now I set the role to “Exempt Customer” to make them different from regular customers so that regular customers cannot make up a certificate and not pay taxes. I can see other admins using different role designations for business customers. I checked my settings and the “Exempt Customer” Role is listed as an “Exempt User Role”.

    OK, going to the order that was showing sales tax after getting the certificate into the data base, I was able to select the certificate and then click on recalculate and the sales tax was removed from the order.

    Something to ask you to check, I an referring to order # 29796 created 7/31/2022 09:44am. The customer is goldys3 with an email of ralph@gguldens.org Can you check to ensure that TaxCloud got an update that the sales tax was removed? I encountered this problem with the order that triggered my request, I manually removed the sales tax from the order, but TaxCloud still charged me the sales tax. Here, the sales tax was removed from the order when I selected the appropriate certificate. Since the order has to go to Taxcloud to be processed originally, it is important that when I edit the order, that Taxcloud gets notified that the tax exemption was added and the sales tax was removed. Probably should place an order note on the order telling us that Taxcloud has received the exemption status and has removed the tax from your records as well.

    These details will become important as we start selling more and more to business customers.

    Plugin Author Brett Porcelli

    (@bporcelli)

    Hi Greg,

    The state fields are supposed to be dropdowns. They should not be text inputs, so you should not have the opportunity to enter “Georgia” as a value.

    On investigation, it looks like there are conditions where the state field would be rendered as a free form text input instead of a dropdown. For what it’s worth this is an existing issue and not new to 7.0, so thank you for helping me identify it. I am working on a fix for that, plus adding better validation to ensure a fatal error doesn’t occur (and a clear message is displayed) if someone still happens to submit an invalid state value somehow.

    Nothing changed about the logic for when we show the “Tax Exempt” checkbox during checkout, and all of our automated (and manual) tests pertaining to that feature are still passing. If the customer has one of the role(s) listed in the Exempt User Roles input and the “Restrict to Exempt Roles” setting is enabled, the Tax Exempt? checkbox should still be shown to the customer on the checkout page assuming they are logged in. Note that we do not require users with exempt roles to submit a certificate if that’s what you’re expecting. If that’s something you’re interested in I can add that request to the backlog and work on it in a future release.

    I don’t have access to your TaxCloud account history, but if you calculated the sales tax with an exemption certificate applied and it was calculated as $0, TaxCloud has been properly notified. The “note” that the cert was received is that the tax is $0 for the order in WooCommerce and for the corresponding transaction in the TaxCloud dashboard.

    Best regards,
    Brett

    Thread Starter gguldens

    (@gguldens)

    Brett,
    My exempt customer roll is “Exempt Customer” I noticed that all other roles are a single word. Do you thing the ” ” in the role name is a problem? If so, I can easily fix that.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Customer not entering exemption certificates’ is closed to new replies.