
Originally Posted by
haredo
Mad,
How would I write the if statement to add $5.00 to my shipping cost??
My retail site has a flat rate of $5.00, but I charge my wholesale customers $10.00 for shipping!!!
I don't really know the inner workings of the shipping cost calculations off the top of my head. And at the moment I am fortunate enough to be one of those with too much work :) So I can't really tell you where or exactly what to use. The following is the code you place anywhere to access WS only functions. This will be a good start to your project. Cheers,
PHP Code:
if ($_SESSION['customer_id']) {
$customers_id = $_SESSION['customer_id'];
$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0") {
//your code
}
}
//note*** depending on where you use this you might have to change $db-> to $this->
Bookmarks