If you can do it by IP address, then I think it can probably be done with two edits and one admin setting change:
1. shipping_estimator.php - around line 65:
Code:
//if($cart->get_content_type() !== 'virtual') {
if ($_SESSION['customer_id'] && (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])) ) {
2. tpl_modules_shipping_estimator.php - around line 18:
Code:
if($_SESSION['cart']->count_contents()) {
if ($_SESSION['customer_id'] && (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])) ) {
?>
<h2><?php echo CART_SHIPPING_OPTIONS; ?></h2>
3. Admin->Configuration->Website Maintenance->Down For Maintenance (exclude this IP-Address)
To authorize those IP addresses, add them to this list, separated by spaces or commas.
If you wanted to use something other than IP addresses, then you would need to change the highlighted code to a different rule, such as the following:
&& (!in_array($_SESSION['customer_id'], array(1,2,3)))
... where 1,2,3 is a list of customer_id numbers that are your staff customer IDs (from the customers table).
Bookmarks