flexi cart - A comprehensive shopping cart library for CodeIgniter |
[eluser]haseydesign[/eluser]
@ben_co You ask a good question as I appreciate it probably isn't the best implementation of how this works, but here goes. With the location_zones() function, if you do not pass an argument to the function, then all zones will be returned. Once the zone has been related with a location as either a shipping or tax zone, it will then be able to be filtered and returned via the location_zones() function by passing the argument of either 'shipping' or 'tax'. As I say, not the most elegant feature I coded into the library, but once related to a location, it does work. HTH |
Welcome Guest, Not a member yet? Register Sign In |