Zen Follower
- Join Date:
- Jun 2012
- Posts:
- 481
- Plugin Contributions:
- 0
Extras folder Access to ZC functions
I've developed code in ZC to match customers names and addresses with names and addresses in a custom table so that customers who create an account and are in the custom table get a discount and access to other member benefits. There are lots of issues with matching names and addresses including first name nicknames, last name surnames, abbreviations for street, road, drive, East, etc., alias cities, and more. I'm working on a matching function that works pretty well I think, but would like to test it using a php program that reads a file of names and addresses, runs each through my matching function, and records the results.
If I develop a php program and put it in the extras folder in my development system, will it be able to access zen cart functions as well as functions in the extra_functions folder? Any other suggestions? This is kind of like a unit test without an IDE. DrByte's utilities in the extras folder gave me the idea. I wasn't sure his code accessed zen cart functions after a quick look.