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?
 
 
     9/27/2010 7:46 pm  |  #1 bjgarner241692
9/27/2010 7:46 pm  |  #1 bjgarner241692  This code includes shipping if it is set as taxable.
$eCart1->GetTaxableTotal()
what do I use to get the total before tax and shipping?
 9/28/2010 12:55 am  |  #2 Dave BuchholzBeta Tester
9/28/2010 12:55 am  |  #2 Dave BuchholzBeta Tester
        $eCart1->TotalColumn("TotalPrice")
 12/09/2013 12:26 pm  |  #3 bjgarner241692
12/09/2013 12:26 pm  |  #3 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
 12/09/2013 1:21 pm  |  #4 Jason ByrnesWebAssist
12/09/2013 1:21 pm  |  #4 Jason ByrnesWebAssist
        use the following to return the taxable total:
WA_eCart_GetTaxedSubtotal(eCart1)
 12/09/2013 1:48 pm  |  #5 bjgarner241692
12/09/2013 1:48 pm  |  #5 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'"
 12/09/2013 2:00 pm  |  #6 Jason ByrnesWebAssist
12/09/2013 2:00 pm  |  #6 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))
 12/09/2013 6:47 pm  |  #7 bjgarner241692
12/09/2013 6:47 pm  |  #7 bjgarner241692  Yes, shipping is taxable in this jurisdiction. That explains the stack error.
Your latest suggestion worked perfectly.
thank you!
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.