We answer a question about how long it will take to estimate the taxes with this function. We discuss some options and different possible iterations for this function. Rick: We’re going to go ahead and save that. Craig, I’m going to actually unmute your microphone here for a second. So does that make sense? Craig:
In this session we show how to add add error checking to the PHP function that returns the California local sales tax rate. We also try changing the cities to see if the tax rates will change. Rick: Now that we know that our thing is working right, we’re going to add the new code
In this session we test the function and get rid of special characters that might affect the tax calculation. We also clean the city names up by applying filters to eliminate some of the errors. Rick: The other iteration on this, although we should just check this, right now if there’s any typo, there’s not
In this session we show how to get the correct rate for the city using a key to take the value of the city and the shipping value of city and place it in a variable. We compare the city name with the city that is inside the city shipping address and compare the city
In this session we go through the process of obtaining and formatting the tax rates and discuss the need to be in a specific format in order to work in PHP. We show how to create a variable after a return statement and a string of cities and values. That one little part of it
In this session we discuss the use of the shopp_cart_taxrate_() filter to filter the tax rates. The filter grabs the value of the rate and lets us change the value. We create a conditional statement so that if it is California it will return a specific number otherwise it returns the default rate. This is
We discuss the different levels of taxation within the state of California. And show, step by step, how to create a function that replaces the calculated tax with the specific tax for each city. We conclude the seminar by showing how to add add error checking to the function.