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?
This code includes shipping if it is set as taxable.
$eCart1->GetTaxableTotal()
what do I use to get the total before tax and shipping?
$eCart1->TotalColumn("TotalPrice")
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
use the following to return the taxable total:
WA_eCart_GetTaxedSubtotal(eCart1)
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'"
"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))
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.