PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Can we calculate tax by state?

  1. matsilva

    I am attempting to calculate tax by the state which the user selects from the shipping address using your PayPal Pro add-on.

    The information here was a little vague because the merge tags may not work so well when you have multi choices items that are separate options. Or I could just have the formula incorrect.

    Is this possible? I only want to charge tax when someone's shipping address is in California.

    Posted 10 years ago on Tuesday November 6, 2012 | Permalink
  2. David Peralty

    Can you give me information on where you are getting stuck? If you create a product field that is a calculation and is conditionally displayed based on state selection, does that not work? You mentioned you wanted it for California, so can you test against that? I'm assuming the issue lies in that you are comparing against the state in a complex address field, versus a dropdown loaded with state options?

    Posted 10 years ago on Friday November 9, 2012 | Permalink
  3. i, I looked into this as well. Here is how I solved the whole tax issue without hacking at the plugin:

    I added a product, removed the quantity field and set the type to calculation. That is how I get one type of tax calculated. The formula I set is ({Select your Table:2}*{Number of Tables:4})*0.13

    In this example the table is the product and the number of tables is the quantity.
    The result is an extra item that is the tax, so you don't really need any crazy mods to the plugin.

    Also, for state specific taxes, add one such product field per state and use conditional logic to bind it to the states (such as "if state is California then display field" that would be the conditional logic for the California tax product).

    That way taxes show up as a separate entry in your DB.

    Hopefully it makes sense, it fixed my issue within 5 minutes, and didn't even have to get my hands dirty.

    Posted 10 years ago on Thursday November 15, 2012 | Permalink
  4. I need to calculate the same thing. However, I use the Advanced Address Field and state isn't an option in the drop-down menu. What are my options?
    Can you do this when you're using the Advanced Address field?

    Posted 10 years ago on Friday November 16, 2012 | Permalink
  5. From David's earlier reply, it sounds like to be available in a drop down for conditional logic that you will need to use a drop down of state values rather than the state portion of the address block.

    Posted 10 years ago on Saturday November 17, 2012 | Permalink
  6. matsilva

    I think the only issue with that is recreating the entire address block to look like the advanced address block might be difficult.

    Is there no way to pull the logic from the address field from the PayPal Pro add-on?

    Posted 10 years ago on Sunday November 18, 2012 | Permalink
  7. I'm sure there is a way but I've never looked into it. It would require custom code to do it.

    Did you see Jonathan's solution which he posted here?

    Posted 10 years ago on Sunday November 18, 2012 | Permalink
  8. Thanks! I like Jonathan's solution, but I don't think my client will go for it. For now I'll recreate the address fields. This would be a great feature improvement for the plugin.

    Posted 10 years ago on Tuesday November 20, 2012 | Permalink

This topic has been resolved and has been closed to new replies.