• Steve

    (@skyvergesteve)


    Hey there,

    When the Country Based Restrictions plugin is active, it removes the tax information on the Checkout page that is generated from the Avatax plugin (which gathers tax data from Avalara).

    I have tested this on a couple of sites with just WooCommerce, Avatax and Country Based Restrictions active and a default theme with the same results. The tax data does populate on the Cart page in the calculator, but gets removed from the Checkout page. Any ideas what might be conflicting on the checkout page?

    Cheers,
    Steve

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Zorem

    (@zorem)

    Hi Steve, we tried to install the Avatax plugin but we need account with them to be able to test it, can you share a link to the store where they are both active and we will try to check it from the front end? please provide a link to a product which is restricted.
    Thanks

    Thread Starter Steve

    (@skyvergesteve)

    Hey @zorem ,

    Thanks for getting back to me on this!

    The issue happens when the country based restrictions plugin is activated, regardless of the restriction set to the product by the plugin.

    Here is an example product:

    https://www.firstlinetech.com/product/decontect-short-sleeve-firefighter-shirt/

    If you add this to the Cart, on the Cart page you can change the address and see that the tax data is entered. On the Checkout page, no tax data shows is populated in the Tax section of the Order summary.

    Thanks for looking into this ??

    Cheers,
    Steve

    Plugin Author Zorem

    (@zorem)

    Hi Steve, we tried to test but we do not seem to receive the account verification email from them, if you are their customer, I suggest you to contact their support to ask to get help with that.
    Thanks

    Thread Starter Steve

    (@skyvergesteve)

    Hey @zorem,

    Thanks for checking on this. This is a merchant that I am working with. You don’t need to create the account on Checkout or complete the purchase. You would just need to fill out the billing address information with the City, State and Zip Code in place and the Tax data should calculate here:

    https://cloud.skyver.ge/5zunbbmQ

    With Country Based Restrictions deactivated, the Tax data shows as expected:

    https://cloud.skyver.ge/6quEwwxl

    Can you please let me know if this helps to test this?

    Cheers,
    Steve

    Plugin Author Zorem

    (@zorem)

    We checked but we could not test it on your website, we tried to work with their plugin but this will require to set up the sales tax and the account on Avatax and we do not have the resources to do that.

    I’m having the exact same issue, @zorem have you been able to test your side as of yet?

    if I comment out products-restriction.php:95 it works

    PHP
    add_action( 'woocommerce_review_order_before_cart_contents', array( $this, 'update_cart_and_checkout_items' ), 10 );
    
    • This reply was modified 2 years, 12 months ago by darkphoenix1.

    Current workaround is:

    
    $cbrProdResInstance = \CBR_Product_Restriction::get_instance();
    remove_action(
        'woocommerce_review_order_before_cart_contents', 
        array(
            $cbrProdResInstance, 
            'update_cart_and_checkout_items'
        )
    );
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict with Avatax’ is closed to new replies.