close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

shipping and discounts

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

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?

Sign in to reply to this post

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.

Sign in to reply to this post

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 ?

Sign in to reply to this post

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

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

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