simpleCart(js)

items
Items:
Total:

simpleCart.tax()

returns:

  • Tax Cost for the cart
simpleCart({
  taxRate: 0.06
});

simpleCart.add({ 
  name: "Cool thing",
  price: 1.00
});

simpleCart.tax(); // 0.06


Comments

  1. Sep 11, 2012

    John  said:

    Great script!

    Documentation is a bit wrong, because for instant simpleCart.taxRate should be simpleCart_taxRate.

    At the moment I use version 3.0.5.

    I can’t get the taxRate: 0.19 working. It doesn’t give me an output with the <span class=“simpleCart_taxRate”></span>. I tried to use tax: 0.19, but no luck!

    Please adviese?

    Thanks,
    John

Commenting is not available in this channel entry.