Total Price of Shopping Cart

I am trying to access the total price of a shopping cart so I can calculate 60% of that total. Is there a way to easily access the total price of a shopping cart?

Carrie,

There is a way to do get the total price of the shopping cart. Be sure to scroll to the top to get a better idea what is involved.

It seems like the functions onCartAbandoned() and onCartRecovered() only fire under the following circumstances…

The onCartAbandoned() event handler runs when a visitor adds an item to the shopping cart, but does not complete the purchase within 1 hour.

The onCartRecovered() event handler runs when a visitor completes a purchase more than 1 hour after items have been added to a shopping cart.

How am I suppose to access the variable “totals” at any time I want instead of under the restrictions of the functions?

1 Like

@tony-brunsman hi Anthony i want to add a percentage to the total of the cart with a check box . For ex if the cart is 1500 once the person checks the box the total increases by 10% how do i do this . Thanks

Could not find any event related to cart totals on the page you mentioned.