- Add the next line at the beginning of
http://www.yourdomain.com/order.php
<?PHP $anp_path="cr/"; include($anp_path."cr.php"); ?>
or (if cr/ directory is a level up)
<?PHP $anp_path="../cr/"; include($anp_path."cr.php"); ?>
- If you want Target Country by IP Address to safely redirect all visitors from country US,JP and UK and to accept all the other visitors
Edit cr/cr.php and
set :
$anp_default_reject_link="";
$anp_default_redirect_link="";
- edit the Redirection Rules file(cur_re_rules.php)
for country US uncomment the line and place an invalid url for it
($anp_rr["US"]="http://www.yourdomain.com/order_us.html") .
for country JP uncomment the line and place an invalid url for it
($anp_rr["JP"]="http://www.yourdomain.com/order_jp.html") .
Do the same for UK ($anp_rr["UK"]="http://www.yourdomain.com/order_uk.html")
- To test and debug , poin your browser to http://www.yourdomain.com/order.php
When you are satisfied, set _DEBUG_MODE to 0.
You must edit cr/cr.php and modify it.
define("_DEBUG_MODE","0");