Methods Documentation
Edit on
Codepen.io
Codepen.io
fastspring.builder.reset()
No input, resets the cart immediately.
x
34
1
<!--
2
DEMO INFO
3
reset() empties the cart completely. If you are not passing around a session object you can call it on page load to ensure cart information is fresh.
4
-->
5
<button onclick="fastspring.builder.reset();">Empty Cart</button>
6
7
<!--
8
DEMO EFFECTS
9
-->
10
<br /><br />
11
<div>
12
phot-io-main-app in cart:
13
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selected></span>
14
</div>
15
16
<div>
17
Order Total:
18
<span data-fsc-order-total></span>
19
</div>
20
<!--
21
DEMO SETUP
22
- Initialize the Store Builder Library
23
- Add item to the cart
24
-->
25
<script
26
id="fsc-api"
27
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
28
type="text/javascript"
29
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
30
</script>
31
32
<script type="text/javascript">
33
fastspring.builder.add('phot-io-main-app');
34
</script>
1
1
1
1