Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
shipping, taxes, grand total, (help with script)
Can someone please help me with this script?
I am trying to use this script on a confirmation page
to show: shipping, taxes, grand total.
The problem i am having is: the shipping is the only part that displays
correctly, the salesTax only returns a value of $0.00 and the grandTotal
is not adding the subtotal+salesTax+Shipping but instead, is showing the
subtotal and shipping on the same line. example: subtotal=$80.00+Shipping
=$7.95 It displays as $807.95 Can any one help me out on this?
var UCCart1_subTotal = UCCart1.GetColumnTotal("Total");
var UCCart1_salesTax = 0;
var UCCart1_salesTaxRate = 0;
var TaxState = Request.Form("BillState")
if (TaxState == "NY")
UCCart1_salesTaxRate = 0.45;
var UCCart1_ShipCost = (Request.Cookies("cookieShippingCost"));
Session("grandTotal") = UCCart1_grandTotal
0 · ·