# shipping and discounts

Thread began 7/12/2012 11:48 am by sam308940 | Last modified 7/12/2012 4:45 pm by Jason Byrnes | 390 views | 4 replies |

## 7/12/2012 11:48 am  |  #1 sam308940

### shipping and discounts

I have a shipping rule, >\$30 shipping is free.
and i have a discount code that gives 50% off products.

however if the subtotal is \$50, and the discount is \$25, the balance is \$25, but the cart is still giving the free shipping. I realize its all based odn subtotal.

so..... how can i get the shipping to take the subtotal-discounts to determine if shipping is free?

theres no way to do this in the wizard right?

## 7/12/2012 3:16 pm  |  #2 Jason ByrnesWebAssist

In the shipping rule use the trigger "Subtotal for Any Colum":
If the Subtotal for Column "TotalPrice" < 30

to apply the shipping based on the Total Price before discounts.

## 7/12/2012 4:19 pm  |  #3 sam308940

That fix DID NOT SOLVE the problem.
the discount is 50% off the subtotal.
so its not calculating per item?

so by calculating the shipping on the column - that doesnt change anything.

is there a way to just make the shipping calculation use IF (SUBTOTAL-DISCOUNT-TOTAL) <30 ?

## 7/12/2012 4:29 pm  |  #4 sam308940

experimenting with the code, i changed
\$this->TotalColumn("TotalPrice") to \$this->GetTaxableTotal()
(full code below)
this seems to function as i want it.
any reason I should not do it this way? errors ?

//eCart Rule
function WAEC_sbd_Shipping() {
\$totalShipping = 0;
if (true && ((\$this->GetTaxableTotal() < 30))) {
\$totalShipping += 10;//Result
}
return WA_eCart_FormatNumber(\$totalShipping, \$this->ForceDecimalsC, \$this->DecimalPlacesC);
}
//eCart Rule

## 7/12/2012 4:45 pm  |  #5 Jason ByrnesWebAssist

That should be fine, that would be the same selecting to use the trigger, taxable total for the cart.

## 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.

## Everything else!

Close Window

Account or customer service questions?

Need technical support?

Content

Layout

Ease of use

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 Window

## We were unable to retrieve the attached file

Close Window

### Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

#### 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 --