View Single Post
  #172  
Old 09-22-2006, 02:21 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Pre-Login Shipping Calculator

To prevent taxes from being calculated until the user logs in, perform the following (This was done on a 3.5.x store):

Open include/func.php and FIND:

Code:
function func_calculate_taxes($products, $customer_info, $shipping_cost, $provider="") {

AFTER ADD:

Code:
global $current_area;

FIND:

Code:
$return = array("tax_cost" => 0, "tax_gst" => 0, "tax_pst" => 0);

AFTER PUT:

Code:
// WebsiteCM - Don't Show Taxes in the customer area unless we have a customer login if ($current_area == "C" && $customer_info['login'] == "") { return $return; }
Reply With Quote