Flat Rate Shipping
Hi, thanks for the reply. I actually had that part working. The problem is only certain products are charged shipping. So I created another column in my products table called flatshipping. I set a session variable for this and added it as part of my shipping rule for Hawaii. Problem is if I add a product that does NOT get a shipping charge after adding a product the does get a shipping charge, it seems to cancel out the session variable.
Not sure how to approach this. here's my code:
function WAEC_indycart_HIShip() {
$totalShipping = 0;
if (true && (((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:"") == "HI") && ((isset($_SESSION['eCartCheckoutForm_addshipping'])?$_SESSION['eCartCheckoutForm_addshipping']:"") == "Yes"))) {
$totalShipping += 100.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}