Thanks for all your help so far.
Ok.
I think I have it set so that the session variable changes based on whether or not the checkbox clicked. I had it set to update when any form button is pressed.
I am running into some trouble when it actually comes to making a the shipping go to 0 when pick_up is set to one. I tried to make another shipping rule and edit the code, but it's not working. I can't hide my nooness!
Below is the code. Any direction would be very much appreciated.
//Shipping
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%201"), true, "WAEC_CommonScentsCart_CandlesShipping");
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%202"), true, "WAEC_CommonScentsCart_CS2");
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%203"), true, "WAEC_CommonScentsCart_CS3");
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%204"), true, "WAEC_CommonScentsCart_CS4");
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%205"), true, "WAEC_CommonScentsCart_CS5");
$this->Shipping[] = new WA_eCart_Rule(urldecode("CS%206"), true, "WAEC_CommonScentsCart_CS6");
$this->Shipping[] = new WA_eCart_Rule(urldecode("SN%201"), true, "WAEC_CommonScentsCart_SN1");
$this->Shipping[] = new WA_eCart_Rule(urldecode("SN%202"), true, "WAEC_CommonScentsCart_SN1b");
$this->Shipping[] = new WA_eCart_Rule(urldecode("SN%203"), true, "WAEC_CommonScentsCart_SN3");
$this->Shipping[] = new WA_eCart_Rule(urldecode("SN%204"), true, "WAEC_CommonScentsCart_SN4");
$this->Shipping[] = new WA_eCart_Rule(urldecode("SN%205"), true, "WAEC_CommonScentsCart_SN5");
$this->Shipping[] = new WA_eCart_Rule(urldecode("Pickup"), true, "WAEC_CommonScentsCart_Pickup");
}
//end node
//start node
//eCart Rule
function WAEC_CommonScentsCart_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:"") == "FL"))) {
$totalTax += ($this->GetTaxableTotal() * .07);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CandlesShipping() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") <= 20.00))) {
$totalShipping += 10.50;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CS2() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") > 20.00) && ($this->TotalColumn("CDshipping") <= 40.00))) {
$totalShipping += 14.50;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CS3() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") > 40.00) && ($this->TotalColumn("CDshipping") <= 70.00))) {
$totalShipping += 21.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CS4() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") > 70.00) && ($this->TotalColumn("CDshipping") <= 100.00))) {
$totalShipping += 25.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CS5() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") > 100.00) && ($this->TotalColumn("CDshipping") <= 140.00))) {
$totalShipping += 29;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_CS6() {
$totalShipping = 0;
if (true && (($this->TotalColumn("CDshipping") > 140))) {
$totalShipping += 40.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_SN1() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "Itemtype", "SN") == 1))) {
$totalShipping += 10;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_SN1b() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "Itemtype", "SN") == 2))) {
$totalShipping += 15;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_SN3() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "Itemtype", "SN") == 3))) {
$totalShipping += 20;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_SN4() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "Itemtype", "SN") == 4))) {
$totalShipping += 25.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_SN5() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "Itemtype", "SN") >= 5))) {
$totalShipping += 30;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_CommonScentsCart_Pickup() {
$totalShipping = 0;
if (true && ((isset($_SESSION['pick_up']) == 1))) {
$totalShipping = 0;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule