close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Subtotal

Thread began 9/27/2010 7:46 pm by bjgarner241692 | Last modified 12/10/2013 7:11 am by Jason Byrnes | 3841 views | 7 replies |

bjgarner241692

Subtotal

This code includes shipping if it is set as taxable.

$eCart1->GetTaxableTotal()

what do I use to get the total before tax and shipping?

Sign in to reply to this post

Dave BuchholzBeta Tester

$eCart1->TotalColumn("TotalPrice")

Sign in to reply to this post

bjgarner241692

I have a somewhat related problem today.
I am using (WA_eCart_TotalColumn(eCart1, "TotalPrice") in a custom shipping rule. However, this value is Pre-Discount so it is not giving me the actual value I need.
I need Taxable Total so that I can base my shipping on the total paid, after discounts.
I have tried (WA_eCart_TotalColumn(eCart1, "GetTaxable Total") but I get:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'cartObj.Items(...).WA_eCart_GetTaxableTotal'

What is the correct value to request for this?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

use the following to return the taxable total:

WA_eCart_GetTaxedSubtotal(eCart1)

Sign in to reply to this post

bjgarner241692

Thanks, but I still have a syntax issue.
Here is the code:

if (true AND ((WA_eCart_TotalColumn(eCart1, "TotalPrice") > 0)) AND ((WA_eCart_TotalColumn(eCart1, "TotalPrice") < 30))) then
totalShipping = 8.00'Result

If I replace
WA_eCart_TotalColumn(eCart1, "TotalPrice")

with

WA_eCart_GetTaxedSubtotal(eCart1)

I get a stack error.

and if I replace "TotalPrice" with "GetTaxed Subtotal"

I get a vbscript error.
Object doesn't support this property or method: 'cartObj.Items(...).GetTaxedSubtotal'"

Sign in to reply to this post

Jason ByrnesWebAssist

"GetTaxed Subtotal" is not valid, so that wont work

do you have the option in the tax settings to include shipping in the tax?

you will need to uncheck that option in order to use the taxable total in the shipping.

if you set the tax to include the shipping, and use the taxable total in the shipping it causes an endless loop.

you could get the total minus discounts using:

(WA_eCart_TotalColumn(eCart1, "TotalPrice") - WA_eCart_GetDiscounts(eCart1))

Sign in to reply to this post

bjgarner241692

Yes, shipping is taxable in this jurisdiction. That explains the stack error.
Your latest suggestion worked perfectly.
thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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