View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Shipping Pickup Option

Thread began 10/16/2009 2:04 pm by kevin347925 | Last modified 10/21/2009 4:33 pm by kevin347925 | 1676 views | 8 replies

kevin347925

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...