Quote:
Originally Posted by sportruck
I also made it calculate tax based on ZIP code, but I hard coded it for CA tax. I'm sure there is a better way to do this, but this is my quick hack:
Code:
if($zipcode_estimate >= 90001 && $zipcode_estimate <= 96162){
$config["General"]["default_state"] = "CA";
}
|
I did the same for pre-login shipping and tax for florida, it works great
__________________
Core version:
5.3.2.7
PHP:
5.6.29
MySQL server:
5.5.5-10.0.27-MariaDB-cll-lveĀ (InnoDB engine support enabled)
Web server:
Apache
Operating system:
Linux
XML parser:
found
GDLib:
found (0)
Translation driver:
Database
Curl version:
7.29.0
|