simpleCart(js)

items
Items:
Total:

simpleCart.grandTotal();

Returns the final total of the cart, including tax and shipping costs

simpleCart.add({ 
  name: "Cool Thing" ,
  price: 10.00
});

simpleCart({
  taxRate: 0.06
});

simpleCart.total(); // $10.00

simpleCart.grandTotal(); // $10.60


 

Comments

  1. Aug 13, 2012

    venkatesh  said:

    I have a query with this grand total calculation. In my section i need to get the quantity from the users and i need to give discount based on the quantity. All this i have done. but after this if i click the checkout button it’s calculating with out discount and going to paypal check out page. And one more thing is, i have shipping based on the total amount so this part also i made it work but it’s not taking by paypal. Paypal takes it’s own shipping and calculating the total amount. If you have did anything in this manner please advise me what i need to do?

Commenting is not available in this channel entry.