Callbacks Documentation
Edit on
Codepen.io
Codepen.io
data-continuous
The default is “false”. When set to “true”, the Library remembers a visitor in the browser (products currently in cart, applied discounts, etc) and keeps that data across pages of a single domain for 24 hours. This is useful if the visitor flow may be across multiple pages and you want to display the correct pricing, including discounts, across all pages of the website. Continuous data uses JavaScript’s local storage feature in the visitor’s browser, so it is not necessary for visitors to have cookies enabled.
x
32
1
<!--
2
DEMO INFO
3
If you first add to cart and then refresh the page,
4
you can click the view cart buttons and see that the
5
item persisted in your shopping cart.
6
7
-->
8
9
10
11
<!-- Configure an add button to add an item to the cart. -->
12
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Add, ViewCart">Add to Cart</button>
13
<button data-fsc-action="ViewCart">View Cart</button>
14
15
<!--
16
DEMO EFFECTS
17
-->
18
<br /><br />
19
In cart:
20
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selected></span>
21
22
<!--
23
DEMO SETUP
24
- Initialize the Store Builder Library
25
-->
26
<script
27
id="fsc-api"
28
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
29
type="text/javascript"
30
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples"
31
data-continuous=true>
32
</script>
1
1
1
1