Enable Debug Console for Specific IP Address Only

Enable Debug Console for Specific IP Address Only

Gives you a private debug console for a specific IP address, so as not to disturb customer view...

Share

Gives you a private debug console for a specific IP address, so as not to disturb customer view...

First apply this SQL patch...

REPLACE INTO `xcart_config` ( `name` , `comment` , `value` , `category` , `orderby` , `type` , `defvalue` , `variants` )
VALUES ('enable_debug_console_ip', 'Only show debug console to this IP address', 'xx.xx.xx.xx', 'General', '611', 'text', '', '');

Then in init.php, replace...

 $smarty->debugging = true;

With...

 //$smarty->debugging = true;
 if ($config["General"]["enable_debug_console_ip"] == $_SERVER['REMOTE_ADDR']) {
 $smarty->debugging=true;
 }

Then go into General Settings and add your IP address.

: *
: *
: *
Type the characters you see in the picture:
Captcha

*
Change next order ID value

Change next order ID value

If you've just opened a new store, you may not want customers to see low order ID's.

Protect company emails from spambots

Protect company emails from spambots

This will encode your company email addresses...

Detect HTTPS mode in Smarty

Detect HTTPS mode in Smarty

If you get a security alert when in secure mode, it's usually due to offsite elements such as SSL certificate seals, images and javascript that are not secure, in which case you can fix with this code...

More...