Thanks very much for this module.

Can you please suggest a way that I could exclude my tax-exempt Florida customers from paying the tax?
I was looking for a way to include the surcharge in the UC Conditional Actions, but I seem to be missing something.

Thanks again.

Comments

3cwebdev’s picture

How do you handle tax exempt customer's in your UC installation? Is there a module, or did you create a mechanism for marking customer's as tax exempt?

vonn.new’s picture

I have the owner of the site assign a user role of 'wholesale-notax' to those customers.
Before I learned about Florida's surtaxes, I was handling this through a conditional action in the saletax configuration.

I worked around the issue with this code, but maybe you have a better suggestion:

function uc_taxes_floridasurtax_calculate_tax($order) {
  $state = uc_get_zone_code($order->delivery_zone);

  // This module is only for Florida sales tax, if delivery state is not FL, then exit
  if ($state != 'FL' || empty($order->delivery_postal_code)) return array();
  
  // Some wholesale and non-profits are tax-exempt.  Look for user role of wholesale-notax and then exit.
  global $user;
  if(in_array('wholesale-notax',$user->roles)){
     return array();
     }

On another note,
It looks like counties that have no surcharge get charged the default surcharge. We discovered this when my client tested the site with a delivery address in Lee County. I had used a default of 1% because she's in Pinellas, & it was charging Lee county customers 7% instead of 6% total. I got around this simply by changing the default to 0.

I'm really grateful to you for sharing this module. It saved me loads of work.