Community Forums 

Main Content

Re:View cart count and subtotals

    Jul 24 2017 17:50:00

    #1

    GT

    Join date : 2008-09-18      Posts : 3207

    Have you used my view cart script?

    If you have, the details of what can be shown....

    http://www.malsforms.com/display-cart.html

    // comment out any lines you don't need in the 'display cart contents' area.
    // a comment out is two forward slashes as at the start of this line of text.
    // for example, to comment out voucher use:
    // if (thisName == "vch"){
    // document.write("<tr><td>Vouchers:</td><td style=\"align:right\">" + "$" + thisVal + "</td></tr>");
    // }
    if (thisName == "qty"){
    document.write("<tr><td>Items:</td><td style=\"align:right\">" + Math.floor(thisVal) + "</td></tr>");
    }
    // if (thisName == "sub"){
    // document.write("<tr><td>Subtotal:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // }
    // if (thisName == "shp"){
    // document.write("<tr><td>Shipping:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // }
    // if (thisName == "dis"){
    // document.write("<tr><td>Discounts:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // }
    // if (thisName == "vch"){
    // document.write("<tr><td>Vouchers:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // }
    // if (thisName == "tax"){
    // document.write("<tr><td>Tax:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // }
    if (thisName == "tot"){
    document.write("<tr><td>Total:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    }
    }

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.