Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $country_code = '{location-countrycode}';
- // route geos to different ON DONE connectors
- switch ($country_code) {
- case 'US';case 'CA';case 'GB';case 'NZ';case 'AU':
- return 2;
- break;
- case 'DE':
- return 3;
- break;
- case 'FR':
- return 4;
- break;
- default:
- return 1; //default route is always 1
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement