Product Level Directive Documentation
Edit on
Codepen.io
Codepen.io
data-fsc-item-selected
Is this product added to Order? – Boolean
x
36
1
<!--
2
DEMO INFO
3
A product's default quantity will be what you set for it in the dashboard.
4
Selected then determines if it is in the cart. So if your product had a
5
default quantity of 5, and you simple use data-fsc-action="Add" or fastspring.builder.add('product-path'), you will have 5 of those items in
6
the cart. If your default quantity is 1, you will have 1 item after "Add" or .add()
7
-->
8
Is this item currently added to the order:
9
<span data-fsc-item-path="phot-io-main-app" data-fsc-item-selected>
10
<!--This value will be replaced-->
11
</span>
12
13
<!--
14
DEMO EXTRA INFO
15
Below is an add to cart / remove from cart button to add the product to the order or remove it.
16
-->
17
<br /><br />
18
19
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Add" data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay-inverse>
20
Add to Cart
21
</button>
22
23
<button data-fsc-item-path-value="phot-io-main-app" data-fsc-action="Remove" data-fsc-item-path="phot-io-main-app" data-fsc-item-selection-smartdisplay>
24
Remove from Cart
25
</button>
26
27
<!--
28
DEMO SETUP
29
- Initialize the Store Builder Library
30
-->
31
<script
32
id="fsc-api"
33
src="https://sbl.onfastspring.com/sbl/1.0.2/fastspring-builder.min.js"
34
type="text/javascript"
35
data-storefront="fastspringexamples.test.onfastspring.com/popup-fastspringexamples">
36
</script>
1
1
1
1