Skip to content

Additional hooks/functions for tax calculation outside of WooCommerce #259

Description

@jordanmaurice

We are attempting to set up a Gravity Form that people can receive a quote for our products through, rather than navigating through the site. We want to include a tax amount calculated by TaxJar for the total, but we're not sure how to use the API outside of the plugin.

What I essentially want to do is have this kind of function:

function get_tax_amount($to_country, $to_zip, $to_state, $to_street, $amount, $shipping){
  $tax_amount = some_taxjar_function($to_country, $to_zip, $to_state, $to_street, $amount, $shipping); 
  return $tax_amount;
}

I'm aware there is the PHP library, but I'm not familiar with how to add that library to a WordPress website as we don't run composer or anything on our end.

Is there some kind of function that I can already access that I'm not aware of? I could not find any hooks/actions/functions documentation for the plugin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions